chore: ci: request contents read permissions explicitly in gha (#12055)

This commit is contained in:
Piotr Galar 2024-05-28 11:51:05 +01:00 committed by GitHub
parent 62228e1a12
commit 47fde12838
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 18 additions and 8 deletions

View File

@ -16,7 +16,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: {}
permissions:
contents: read
jobs:
build:

View File

@ -8,7 +8,8 @@ on:
branches:
- release/*
permissions: {}
permissions:
contents: read
jobs:
release:

View File

@ -16,7 +16,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: {}
permissions:
contents: read
jobs:
check-docsgen:

View File

@ -19,7 +19,8 @@ defaults:
run:
shell: bash
permissions: {}
permissions:
contents: read
jobs:
docker:

View File

@ -17,7 +17,8 @@ defaults:
run:
shell: bash
permissions: {}
permissions:
contents: read
jobs:
build:

View File

@ -17,6 +17,8 @@ on:
- completed
permissions:
actions: read
checks: read
pull-requests: write
concurrency:

View File

@ -4,7 +4,8 @@ on:
schedule:
- cron: '0 12 * * *'
permissions: {}
permissions:
contents: read
jobs:
stale:

View File

@ -5,7 +5,8 @@ on:
branches:
- master
permissions: {}
permissions:
contents: read
jobs:
sync:

View File

@ -16,7 +16,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: {}
permissions:
contents: read
jobs:
discover: