Skip to content

Commit

Permalink
chore: ci: request contents read permissions explicitly in gha (#12055)
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh authored May 28, 2024
1 parent 62228e1 commit 47fde12
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions: {}
permissions:
contents: read

jobs:
build:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/builtin-actor-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
branches:
- release/*

permissions: {}
permissions:
contents: read

jobs:
release:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ defaults:
run:
shell: bash

permissions: {}
permissions:
contents: read

jobs:
docker:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ defaults:
run:
shell: bash

permissions: {}
permissions:
contents: read

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sorted-pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
- completed

permissions:
actions: read
checks: read
pull-requests: write

concurrency:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
schedule:
- cron: '0 12 * * *'

permissions: {}
permissions:
contents: read

jobs:
stale:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sync-master-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- master

permissions: {}
permissions:
contents: read

jobs:
sync:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions: {}
permissions:
contents: read

jobs:
discover:
Expand Down

0 comments on commit 47fde12

Please sign in to comment.