ci: keep contents read permissions in jobs

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-10-29 18:48:42 +01:00
parent cd8d61a9d7
commit e26911f403
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4
3 changed files with 8 additions and 0 deletions

View File

@ -227,6 +227,8 @@ jobs:
govulncheck:
runs-on: ubuntu-24.04
permissions:
# same as global permission
contents: read
# required to write sarif report
security-events: write
steps:
@ -372,6 +374,8 @@ jobs:
runs-on: ubuntu-24.04
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'docker/buildx' }}
permissions:
# same as global permission
contents: read
# required to write sarif report
security-events: write
needs:

View File

@ -23,6 +23,7 @@ jobs:
codeql:
runs-on: ubuntu-24.04
permissions:
contents: read
actions: read
security-events: write
steps:

View File

@ -20,6 +20,9 @@ jobs:
labeler:
runs-on: ubuntu-latest
permissions:
# same as global permission
contents: read
# required for writing labels
pull-requests: write
steps:
-