chore: ci: request contents read permissions explicitly in gha (#12055)
This commit is contained in:
parent
62228e1a12
commit
47fde12838
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -16,7 +16,8 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
permissions: {}
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
3
.github/workflows/builtin-actor-tests.yml
vendored
3
.github/workflows/builtin-actor-tests.yml
vendored
@ -8,7 +8,8 @@ on:
|
||||
branches:
|
||||
- release/*
|
||||
|
||||
permissions: {}
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
3
.github/workflows/check.yml
vendored
3
.github/workflows/check.yml
vendored
@ -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:
|
||||
|
3
.github/workflows/docker.yml
vendored
3
.github/workflows/docker.yml
vendored
@ -19,7 +19,8 @@ defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
permissions: {}
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
|
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -17,7 +17,8 @@ defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
permissions: {}
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
2
.github/workflows/sorted-pr-checks.yml
vendored
2
.github/workflows/sorted-pr-checks.yml
vendored
@ -17,6 +17,8 @@ on:
|
||||
- completed
|
||||
|
||||
permissions:
|
||||
actions: read
|
||||
checks: read
|
||||
pull-requests: write
|
||||
|
||||
concurrency:
|
||||
|
3
.github/workflows/stale.yml
vendored
3
.github/workflows/stale.yml
vendored
@ -4,7 +4,8 @@ on:
|
||||
schedule:
|
||||
- cron: '0 12 * * *'
|
||||
|
||||
permissions: {}
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
|
3
.github/workflows/sync-master-main.yaml
vendored
3
.github/workflows/sync-master-main.yaml
vendored
@ -5,7 +5,8 @@ on:
|
||||
branches:
|
||||
- master
|
||||
|
||||
permissions: {}
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
|
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -16,7 +16,8 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
permissions: {}
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
discover:
|
||||
|
Loading…
Reference in New Issue
Block a user