Skip to content

ci(release): grant contents:write to the release job - #72

Merged
mscasso-scanoss merged 1 commit into
crc64from
ci/release-contents-write
Oct 28, 2026
Merged

mscasso-scanoss merged 1 commit into
crc64from
ci/release-contents-write

Conversation

@mscasso-scanoss

Copy link
Copy Markdown
Collaborator

Why

Pushing v5.0.3-crc64 ran tagged-release (run 40695807634): build, tar, deb and rpm passed, but Create Draft Release failed with 403 on every retry, so no draft release was created.

The job declares no permissions, so it depends on the default GITHUB_TOKEN permission of the repo/org. That default worked for v5.0.2-crc64 and v4.1.12 on 2026-09-30 and is now read-only. The engine release workflow declares contents: write explicitly and kept working (v6.0.1-crc64 on 2026-10-13).

Change

Add permissions: contents: write to the tagged-release job, the minimum scope softprops/action-gh-release needs to create the release and upload assets.

After merge

Move the v5.0.3-crc64 tag to the merge commit (only this CI file differs from the current tag commit; LDB_VERSION is unchanged) so the workflow creates the draft.

master (4.x line) has the same workflow and will need the same change.

🤖 Generated with Claude Code

The job relied on the default GITHUB_TOKEN permission, which is now
read-only: creating the v5.0.3-crc64 draft release failed with 403.
Declare the permission explicitly, as the engine release workflow does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mscasso-scanoss
mscasso-scanoss merged commit 4d587d6 into crc64 Oct 28, 2026
1 check passed
@mscasso-scanoss
mscasso-scanoss deleted the ci/release-contents-write branch October 28, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant