fix: use dd-octo-sts token for tag creation in release workflow#511
Open
michael-richey wants to merge 3 commits intomainfrom
Open
fix: use dd-octo-sts token for tag creation in release workflow#511michael-richey wants to merge 3 commits intomainfrom
michael-richey wants to merge 3 commits intomainfrom
Conversation
The GITHUB_TOKEN is blocked by the org-level "Global Tag Protection (public repos)" ruleset. Switch to dd-octo-sts so the workflow runs with a token that has tag bypass rights. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- OIDC subject for pull_request[closed] event uses base branch ref, not pull_request literal — align with prepare_release policy pattern - Add explicit contents: write to build_artifacts job so artifact uploads still work after removing top-level permissions block Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
heyronhay
previously approved these changes
Apr 6, 2026
- Add ref: refs/heads/main constraint to claim_pattern for defense-in-depth (consistent with prepare_release policy) - Add comment explaining OIDC subject derivation for pull_request events - Quote $RELEASE_BRANCH in shell to prevent word splitting Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GITHUB_TOKEN(github-actions[bot]) from creating tagscreate_releasejob to usedd-octo-sts(same pattern asprepare_release.yml), which issues a token with tag bypass rights.github/chainguard/self.release.create-release.sts.yamlTest plan
Create releasejob succeeds and creates the tag + GitHub release🤖 Generated with Claude Code