fix: migrate Docker build workflow to octo-sts and push trigger#514
Closed
michael-richey wants to merge 1 commit intofix/release-workflow-oidcfrom
Closed
fix: migrate Docker build workflow to octo-sts and push trigger#514michael-richey wants to merge 1 commit intofix/release-workflow-oidcfrom
michael-richey wants to merge 1 commit intofix/release-workflow-oidcfrom
Conversation
Switches build_publish_docker.yml from pull_request: closed to push: branches: [main] for consistency with the release workflow, and replaces secrets.GITHUB_TOKEN with an octo-sts-issued token for container registry authentication. Requires a new self.release.publish-docker policy granting packages:write to be created in the octo-sts config repo before merging. 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
Stacked on #513. Migrates
build_publish_docker.ymlto use octo-sts for container registry authentication and aligns it with thepush: branches: [main]trigger pattern from PR #513.pull_request: types: [closed]topush: branches: [main]Detect releasestep (same pattern as fix: switch release workflow trigger to push to fix octo-sts OIDC mismatch #513) to skip Docker builds on non-release pushessecrets.GITHUB_TOKENwith scoped octo-sts token (self.release.publish-dockerpolicy) fordocker/login-actionusernamefromgithub.actortox-access-token(correct for GitHub App installation tokens with ghcr.io)actions/attest-build-provenanceis unchanged — it uses its own OIDC flowPrerequisites
Before merging this PR, a new octo-sts policy must be created in the octo-sts config repo:
self.release.publish-dockerrepo:DataDog/datadog-sync-cli:ref:refs/heads/mainpackages: writeonDataDog/datadog-sync-cliTest plan
self.release.publish-dockerocto-sts policy created🤖 Generated with Claude Code