Skip to content

Commit c8b1941

Browse files
authored
set minimum token permissions for github workflows (#11434)
1 parent 3577ea8 commit c8b1941

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches:
55
- main
66
pull_request:
7+
permissions:
8+
contents: read
79
concurrency:
810
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
911
cancel-in-progress: true

.github/workflows/combine-prs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
required: true
1616
default: 'combine-prs-branch'
1717

18+
permissions:
19+
pull-requests: write
20+
1821
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1922
jobs:
2023
# This workflow contains a single job called "combine-prs"

0 commit comments

Comments
 (0)