Skip to content

Replace secrets.GITHUB_TOKEN with dd-octo-sts in CI workflows#11347

Draft
lloeki wants to merge 1 commit into
masterfrom
lloeki/dd-octo-sts
Draft

Replace secrets.GITHUB_TOKEN with dd-octo-sts in CI workflows#11347
lloeki wants to merge 1 commit into
masterfrom
lloeki/dd-octo-sts

Conversation

@lloeki
Copy link
Copy Markdown
Member

@lloeki lloeki commented May 12, 2026

What Does This Do

Replace all secrets.GITHUB_TOKEN usage across 5 GitHub Actions workflows with OIDC tokens obtained via DataDog/dd-octo-sts-action. Add 5 corresponding Chainguard policy files. The token is passed via the github-token parameter of actions/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

  • Format the title according to the contribution guidelines
  • Assign the type: and (comp: or inst:) labels
  • Avoid using close, fix, or any linking keywords when referencing an issue
  • Update the CODEOWNERS file on source file addition, migration, or deletion
  • Update public documentation with any new configuration flags or behaviors

Suggested labels: tag: no release note, type: chore, comp: ci

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/.
@lloeki lloeki force-pushed the lloeki/dd-octo-sts branch from 3b9c86f to 56847de Compare May 12, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant