Skip to content

Commit

Permalink
Fix Permissions on Publish Release Artifacts Job
Browse files Browse the repository at this point in the history
Publishing release artifacts requires the `contents` permission, as documented
by: https://docs.github.com/en/rest/overview/permissions-required-for-github-apps.
  • Loading branch information
felixhandte committed Feb 15, 2023
1 parent 6a86db1 commit d54ad3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ permissions: read-all
jobs:
publish-release-artifacts:
permissions:
contents: read # to fetch code (actions/checkout)
actions: write # to attach binaries to release artifacts (skx/github-action-publish-binaries)
contents: write # to fetch code and upload artifacts

runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit d54ad3c

Please sign in to comment.