Skip to content

Commit 693a395

Browse files
committed
fix: add contents:write permission to release job to fix 403 error
The release job was failing with 'Error 403: Resource not accessible by integration' because it lacked permissions to create releases and generate release notes. This adds the required 'contents: write' permission to allow the ncipollo/release-action to successfully create GitHub releases and generate release notes via the API.
1 parent e9d68d8 commit 693a395

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/main-ci-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ jobs:
117117
needs: build
118118
runs-on: ubuntu-latest
119119
if: startsWith(github.ref, 'refs/tags/v')
120+
permissions:
121+
contents: write
120122
steps:
121123
- name: Download all artifacts
122124
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)