Skip to content

[SDTEST-3585] Migrate release workflows from GITHUB_TOKEN to dd-octo-sts#41

Merged
anmarchenko merged 1 commit intomainfrom
anmarchenko/migrate_to_dd_octo_sts
Mar 18, 2026
Merged

[SDTEST-3585] Migrate release workflows from GITHUB_TOKEN to dd-octo-sts#41
anmarchenko merged 1 commit intomainfrom
anmarchenko/migrate_to_dd_octo_sts

Conversation

@anmarchenko
Copy link
Member

@anmarchenko anmarchenko commented Mar 18, 2026

Summary

  • Replace github.token with dd-octo-sts short-lived tokens in prerelease.yml and release.yml workflows
  • Add trust policies (.github/chainguard/) scoping contents: write to protected refs (main branch and v* tags)
  • Pin dd-octo-sts-action to v1.0.3 by full commit SHA

Changes

  • prerelease.yml: Uses self.github.release.prerelease policy, scoped to push on main
  • release.yml: Uses self.github.release.tags policy, scoped to push on v* tags
  • Both workflows: contents: write replaced with contents: read + id-token: write at job level

Deployment

  1. Merge this PR first (policies must be on default branch)
  2. Pre-release workflow will self-test on merge to main
  3. Tag a version to test the release workflow

Note

Tag protection ruleset (org-wide, 13532795) will be enforced on 2026-04-01, restricting tag push to maintainer+ roles.

Test plan

  • Verify Trust Policy Validation check passes on this PR
  • After merge, confirm pre-release workflow succeeds on main
  • Tag a test version to confirm release workflow succeeds

🤖 Generated with Claude Code

@anmarchenko anmarchenko requested a review from a team as a code owner March 18, 2026 10:30
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 868bc5d103

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@anmarchenko anmarchenko changed the title Migrate release workflows from GITHUB_TOKEN to dd-octo-sts [SDTEST-3585] Migrate release workflows from GITHUB_TOKEN to dd-octo-sts Mar 18, 2026
@anmarchenko anmarchenko merged commit 9440271 into main Mar 18, 2026
4 checks passed
@anmarchenko anmarchenko deleted the anmarchenko/migrate_to_dd_octo_sts branch March 18, 2026 11:38
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.

2 participants