Skip to content

Commit bf709ab

Browse files
chore(ci): Add permissions to some workflows/jobs (#11393)
We should work towards ensuring we have the minimum permissions running for the workflows we execute. It is difficult to find good documentation on exactly what permissions are required.
1 parent 1aebcc3 commit bf709ab

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ concurrency:
2626
group: ${{ github.workflow }}-${{ github.ref }}
2727
cancel-in-progress: true
2828

29+
permissions:
30+
security-events: write
31+
2932
jobs:
3033
analyze:
3134
name: 🔬 Analyze

.github/workflows/require-milestone.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
1111
cancel-in-progress: true
1212

13+
# No top level permissions are required for this workflow
14+
permissions: {}
15+
1316
jobs:
1417
require-milestone:
1518
name: 🚩 Require milestone

.github/workflows/require-release-label.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
1111
cancel-in-progress: true
1212

13+
# No top level permissions are required for this workflow
14+
permissions: {}
15+
1316
jobs:
1417
require-release-label:
1518
name: 🏷 Require release label
1619
runs-on: ubuntu-latest
20+
permissions:
21+
issues: read
22+
pull-requests: read
1723
steps:
1824
- uses: mheap/github-action-required-labels@v5
1925
with:

0 commit comments

Comments
 (0)