Skip to content

fix: fix release workflow permissions for devcontainers tagging - #7

Merged
nozaq merged 2 commits into
mainfrom
claude/release-workflow-tagging-error-xzhszr
Aug 11, 2026
Merged

fix: fix release workflow permissions for devcontainers tagging#7
nozaq merged 2 commits into
mainfrom
claude/release-workflow-tagging-error-xzhszr

Conversation

@nozaq

@nozaq nozaq commented Aug 11, 2026

Copy link
Copy Markdown
Member

Summary

Update the release workflow to grant write permissions for repository contents, allowing the devcontainers action to properly tag released commits.

Changes

  • Changed contents permission from read to write in the release workflow
  • This enables the devcontainers/action to successfully create git tags (format: feature_<id>_<version>) via the GitHub API
  • Previously, the read-only token would cause tagging to fail silently with a warning instead of properly completing the release process

Details

The devcontainers/action requires write access to repository contents to tag the released commit through the git refs API. Without this permission, the action would log a "Failed to automatically add repo tag" warning but continue execution, leaving releases untagged.

https://claude.ai/code/session_017wvd5GPvBZVEU8QgkPkNQb

claude added 2 commits August 11, 2026 22:53
devcontainers/action creates the `feature_<id>_<version>` tag through the
git refs API using GITHUB_TOKEN. With `contents: read` the call is
rejected and the action downgrades the failure to a warning, so releases
succeeded while silently skipping every tag.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017wvd5GPvBZVEU8QgkPkNQb
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017wvd5GPvBZVEU8QgkPkNQb
@nozaq nozaq changed the title Fix release workflow permissions for devcontainers tagging fix: fix release workflow permissions for devcontainers tagging Aug 11, 2026
@nozaq nozaq closed this Aug 11, 2026
@nozaq nozaq reopened this Aug 11, 2026
@nozaq
nozaq merged commit c5b3f9e into main Aug 11, 2026
13 of 14 checks passed
@nozaq
nozaq deleted the claude/release-workflow-tagging-error-xzhszr branch August 11, 2026 23:00
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.

2 participants