Conversation
feat: improve typescript
…ralizing to other configurations
Feat/add coverage
…nseeFr/Pearl-Jam into feat-individual-phone-tracking
Feat/migrate typescript
fix test fix fix fix fix fix disable test wait fix fix fix fix fix fix fix fix fix fix fix fix fix feat: add unit test fix fix fix fix fix fix fix fix fix fix fix fix fix fix fix fix fix fix fix fix feat: test
Feat/docker manu
| timeout-minutes: 60 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Pearl | ||
| uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: lts/* | ||
| - name: Run Docker Compose | ||
| run: | | ||
| docker compose --env-file ./.env.docker up -d | ||
| yarn | ||
| npx playwright install --with-deps chromium | ||
| npx playwright test | ||
| - uses: actions/upload-artifact@v4 | ||
| if: ${{ !cancelled() }} | ||
| with: | ||
| name: playwright-report | ||
| path: playwright-report/ | ||
| retention-days: 7 |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 9 months ago
The solution is to add a permissions block that restricts the GITHUB_TOKEN permissions to the least privileges required. In this case, as the workflow checks out code but does not need to write to the repository, the minimal permissions contents: read is sufficient. The permissions block can be added either at the root of the workflow or within the specific job. Since there's a single job, placing it at the job level is fine, but placing it at the root level ensures expansion to future jobs. The recommended best practice is to add it at the root, right below the workflow name/on trigger, so it applies globally to all jobs that do not specify their own permissions.
Edit .github/workflows/playwright.yml by inserting the following block after the name (and before on:):
permissions:
contents: readNo changes to imports or functionality are needed—just the addition of this YAML block.
| @@ -1,4 +1,6 @@ | ||
| name: Playwright Tests | ||
| permissions: | ||
| contents: read | ||
| on: | ||
| pull_request: | ||
| branches: |
* fix: transmissions * fix : updated tests * fix: update callback dep * fix: simplified code for useIdentificationQuestion.ts
fix: remove typescript errors
* feat: migration to Orval + compose/ci/playwright update --------- Co-authored-by: Pierre-Raphaël Wozny <pierre-raphael.wozny@insee.fr>
* fix: house tel identification update * fix: stubing role env var * fix: typo
* fix: version bump
No description provided.