Skip to content

Develop#218

Closed
SimonDmz wants to merge 401 commits into
masterfrom
develop
Closed

Develop#218
SimonDmz wants to merge 401 commits into
masterfrom
develop

Conversation

@SimonDmz
Copy link
Copy Markdown
Contributor

No description provided.

pierreraphaelwozny and others added 30 commits December 9, 2024 17:08
Comment on lines +8 to +27
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

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

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: read

No changes to imports or functionality are needed—just the addition of this YAML block.


Suggested changeset 1
.github/workflows/playwright.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml
--- a/.github/workflows/playwright.yml
+++ b/.github/workflows/playwright.yml
@@ -1,4 +1,6 @@
 name: Playwright Tests
+permissions:
+  contents: read
 on:
   pull_request:
     branches:
EOF
@@ -1,4 +1,6 @@
name: Playwright Tests
permissions:
contents: read
on:
pull_request:
branches:
Copilot is powered by AI and may make mistakes. Always verify output.
Unable to commit as this autofix suggestion is now outdated
pierreraphaelwozny and others added 8 commits April 1, 2025 14:59
* fix: transmissions

* fix : updated tests

* fix: update callback dep

* fix: simplified code for useIdentificationQuestion.ts
* 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
@SimonDmz SimonDmz closed this Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants