Replace secrets.GITHUB_TOKEN with dd-octo-sts in CI workflows#11347
Conversation
3b9c86f to
56847de
Compare
Add 5 policy files under .github/chainguard/ declaring the issuer, subject, event, and permission constraints for every workflow that will be migrated from secrets.GITHUB_TOKEN to DataDog/dd-octo-sts-action. These policies must be on the default branch before the corresponding workflow changes can use them.
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.
56847de to
e24c687
Compare
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
sarah.chen@datadoghq.com unqueued this merge request |
|
/merge -c |
|
View all feedbacks in Devflow UI.
|
|
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
sarahchen6
left a comment
There was a problem hiding this comment.
Confirmed on this branch that the PR check workflows are successful.
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
2877227
into
master
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 issue