Skip to content

Commit

Permalink
[goreleaser] add packages: write permissions
Browse files Browse the repository at this point in the history
I believe this is the last permission needed to allow `goreleaser` to
upload the artifacts needed to create a release.

This PR should fix this error message found in this workflow run: https://github.com/mercari/hcledit/actions/runs/10054218246/job/27788393692
```
 ⨯ release failed after 1m8s                error=scm releases: failed to publish artifacts: failed to upload hcledit_0.0.15_Linux_x86_64.tar.gz after 1 tries: POST https://uploads.github.com/repos/mercari/hcledit/releases/166614281/assets?name=hcledit_0.0.15_Linux_x86_64.tar.gz: 422 Validation Failed [{Resource:ReleaseAsset Field:name Code:already_exists Message:}]
```
  • Loading branch information
ryan-ph committed Jul 23, 2024
1 parent 97f21f7 commit 3b1f027
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
permissions:
contents: write
pull-requests: write
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 3b1f027

Please sign in to comment.