Skip to content

Commit

Permalink
🧪🐛 Fix post-publish job permissions @ CI/CD
Browse files Browse the repository at this point in the history
Declaring permissions explicitly takes away all the unlisted ones.
This patch fixes `git push` in the post-publish job by declaring
`contents: write` in it.
  • Loading branch information
webknjaz committed Apr 9, 2024
1 parent a78cefe commit 01f6505
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,7 @@ jobs:
pull_request_url: ${{ steps.pr.outputs.pull_request_url }}

permissions:
contents: write # Mandatory for `git push` to work
pull-requests: write

steps:
Expand Down

0 comments on commit 01f6505

Please sign in to comment.