Skip to content

Commit

Permalink
Fix missing permissions in GitHub Actions (#19115)
Browse files Browse the repository at this point in the history
* Add "contents: write" permission for pr-quick-check.

* Add checks/pull-requests/contents write permissions to master.yml.
  • Loading branch information
nubtron authored Nov 22, 2024
1 parent fc8bd07 commit d1b738d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,19 @@ jobs:
secrets: inherit

publish-test-results:

needs:
- test

if: success() || failure()
concurrency:
group: test-results

permissions:
checks: write
pull-requests: write
contents: write

uses: ./.github/workflows/test-results-master.yml
secrets: inherit

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-quick-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:

permissions:
pull-requests: write

contents: read

steps:
# Uncomment for testing purposes
# - uses: actions/checkout@v4
Expand Down

0 comments on commit d1b738d

Please sign in to comment.