⚙️

[GitHub Actions] Error: Resource not accessible by integration

2024/02/03に公開1

Run softprops/action-gh-release@v1
Unexpected error fetching GitHub release for tag refs/tags/v0.1: HttpError: Resource not accessible by integration
Error: Resource not accessible by integration

が出た時

jobs:
  permissions:
    contents: write

を追加すれば解消した。

Release にファイルを追加しているので
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
の Contents > allows the action to create a release に該当してそう。

Discussion