Skip to content

Commit

Permalink
ci: add write permissions for the snap release job
Browse files Browse the repository at this point in the history
For pull requests raised from forked repositories, the `GITHUB_TOKEN`
only comes with `read` permissions by default. This PR adds `write`
permissions for the repository contents, so that the job can
create/modify the release branch.
  • Loading branch information
d-loose committed Nov 20, 2024
1 parent 816fdcd commit 33d0234
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/snap-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
release-snaps:
runs-on: ubuntu-latest
permissions:
contents: write
needs: get-snap-branches
if: ${{ github.event.pull_request.merged && needs.get-snap-branches.outputs.branches != '[]' }}
strategy:
Expand Down

0 comments on commit 33d0234

Please sign in to comment.