## 事象
[[action-gh-release]]の結果が以下のようにエラーになる。
```
Run softprops/action-gh-release@v1
with:
draft: true
files: main.js
styles.css
manifest.json
manifest-beta.json
token: ***
env:
GITHUB_TOKEN: ***
👩🏭 Creating new GitHub release for tag 0.1.0...
⚠️ GitHub release failed with status: 403
undefined
retrying... (2 retries remaining)
👩🏭 Creating new GitHub release for tag 0.1.0...
⚠️ GitHub release failed with status: 403
undefined
retrying... (1 retries remaining)
👩🏭 Creating new GitHub release for tag 0.1.0...
⚠️ GitHub release failed with status: 403
undefined
retrying... (0 retries remaining)
❌ Too many retries. Aborting...
```
## 原因
`GITHUB_TOKEN`に必要なパーミッションがないから。
## 解決方法
[[GITHUB _TOKENのアクセス許可の変更]]をする。`permissions`キーを用いて、現在の[[ワークフロー (GitHub Actions)|ワークフロー]]のみ許可するのがよさそう。
```yaml
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
```
## 参考
- [GitHub release failed with status: 403 · Issue \#236 · softprops/action\-gh\-release](https://github.com/softprops/action-gh-release/issues/236)