Replace secrets.GITHUB_TOKEN with dd-octo-sts in CI workflows#11347
Draft
lloeki wants to merge 1 commit into
Draft
Replace secrets.GITHUB_TOKEN with dd-octo-sts in CI workflows#11347lloeki wants to merge 1 commit into
lloeki wants to merge 1 commit into
Conversation
Migrate all 5 GitHub Actions workflows from secrets.GITHUB_TOKEN to OIDC tokens minted by DataDog/dd-octo-sts-action. The token exchange is auditable and governed by chainguard policy files that explicitly declare which workflow, event, and ref pattern may request which permissions. All affected workflows pass the token to actions/github-script via the github-token parameter. Add 5 policy files under .github/chainguard/.
3b9c86f to
56847de
Compare
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.
What Does This Do
Replace all
secrets.GITHUB_TOKENusage across 5 GitHub Actions workflows with OIDC tokens obtained viaDataDog/dd-octo-sts-action. Add 5 corresponding Chainguard policy files. The token is passed via thegithub-tokenparameter ofactions/github-script.Motivation
The dd-octo-sts token exchange is auditable and governed by Chainguard policy files that explicitly declare which workflow, event, and ref pattern may request which permissions.
Additional Notes
No functional changes. All affected workflows continue to behave identically.
Contributor Checklist
type:and (comp:orinst:) labelsclose,fix, or any linking keywords when referencing an issueSuggested labels:
tag: no release note,type: chore,comp: ci