fix: update trust policy event_name to match push trigger in release workflow#516
Merged
michael-richey merged 2 commits intomainfrom Apr 7, 2026
Merged
fix: update trust policy event_name to match push trigger in release workflow#516michael-richey merged 2 commits intomainfrom
michael-richey merged 2 commits intomainfrom
Conversation
…ject mismatch The pull_request trigger sets OIDC sub to repo:DataDog/datadog-sync-cli:pull_request, which does not match the self.release.create-release trust policy requiring ref:refs/heads/main. Switching to a push trigger fixes the subject. A detect_release step recovers the PR context (branch name, release guard) lost by moving away from the pull_request event. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…workflow The release workflow was switched from pull_request to push trigger, but the trust policy still required event_name: pull_request, causing OIDC subject mismatch on every token exchange. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
heyronhay
approved these changes
Apr 7, 2026
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
pull_requesttopushtrigger (fix: use dd-octo-sts token for tag creation in release workflow #511) to fix an OIDC subject mismatchself.release.create-release.sts.yaml) was not updated to match, causingevent_nameclaim mismatch on every token exchangeevent_name: pull_request→event_name: pushinclaim_patternrepositoryclaim for defense in depthjob_workflow_refregex patternclaim_patternkeys alphabetically and updated header commentTest plan
mainrelease/vX.Y.Zbranch PR tomainGet access tokenstep succeeds in the release workflow🤖 Generated with Claude Code