Unverified Commit 065f5ffc authored by Alex's avatar Alex Committed by GitHub

ci: harden permissions for GitHub Workflows (#11174)

* build: harden main.yml permissions Signed-off-by: 's avatarAlex <aleksandrosansan@gmail.com> * build: harden project.yml permissions Signed-off-by: 's avatarAlex <aleksandrosansan@gmail.com> * Update project.yml The permissions are not necessary, because a separate token is used `GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}`
parent f52b3c67
......@@ -14,6 +14,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
tests:
name: Run tests
......
......@@ -9,6 +9,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: {}
jobs:
add-to-project:
name: Add to project
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment