Skip to content

Commit

Permalink
set minimum token permissions for github workflows (#11434)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin authored May 21, 2022
1 parent 3577ea8 commit c8b1941
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- main
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/combine-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
required: true
default: 'combine-prs-branch'

permissions:
pull-requests: write

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "combine-prs"
Expand Down

0 comments on commit c8b1941

Please sign in to comment.