Skip to content

Commit

Permalink
ci: add the permission to release assets (#160)
Browse files Browse the repository at this point in the history
The release v1.7.0 failed due to the permission error.

https://github.com/Boeing/config-file-validator/actions/runs/10362649156/job/28684983356#step:6:284

```
+ github-assets-uploader -logtostderr -f ../validator-v1.7.0-linux-amd64.tar.gz -mediatype application/gzip -repo Boeing/config-file-validator -token *** -tag=v1.7.0 -releasename= -retry 3
W0813 02:34:38.260789    1654 main.go:48] Upload asset error, will retry in 4s: POST https://uploads.github.com/repos/Boeing/config-file-validator/releases/169879682/assets?name=validator-v1.7.0-linux-amd64.tar.gz: 403 Resource not accessible by integration []
W0813 02:34:42.775738    1654 main.go:48] Upload asset error, will retry in 9s: POST https://uploads.github.com/repos/Boeing/config-file-validator/releases/169879682/assets?name=validator-v1.7.0-linux-amd64.tar.gz: 403 Resource not accessible by integration []
E0813 02:34:52.242572    1654 err_exit.go:11] POST https://uploads.github.com/repos/Boeing/config-file-validator/releases/169879682/assets?name=validator-v1.7.0-linux-amd64.tar.gz: 403 Resource not accessible by integration []
```

The permission `contents: write` is required, but it was removed by f28a04d#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34 .
So this commit adds the permission.
  • Loading branch information
suzuki-shunsuke authored Aug 13, 2024
1 parent c502b13 commit 10a6def
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 @@ -27,6 +27,7 @@ jobs:

permissions:
packages: write
contents: write

steps:
- name: Harden Runner
Expand Down

0 comments on commit 10a6def

Please sign in to comment.