chore: add dd-octo-sts trust policies for workflow automation#815
Merged
eliottness merged 1 commit intomainfrom Apr 3, 2026
Merged
chore: add dd-octo-sts trust policies for workflow automation#815eliottness merged 1 commit intomainfrom
eliottness merged 1 commit intomainfrom
Conversation
|
🎯 Code Coverage (details) 🔗 Commit SHA: 9a1b086 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback! |
Add trust policies to prepare for migrating deps-update and validate workflows from DD_K9_LIBRARY_GO_APP_PRIVATE_KEY to dd-octo-sts. These policies must be on the default branch before the consuming workflow changes can work, since dd-octo-sts reads policies from the target repo's default branch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ebe859a to
9a1b086
Compare
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
2 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #815 +/- ##
==========================================
+ Coverage 65.72% 69.52% +3.80%
==========================================
Files 113 116 +3
Lines 7926 6900 -1026
==========================================
- Hits 5209 4797 -412
+ Misses 2192 1554 -638
- Partials 525 549 +24
🚀 New features to boost your workflow:
|
Contributor
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9a1b086be8
ℹ️ 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".
eliottness
approved these changes
Apr 3, 2026
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
Part 1 of 2 — adds trust policies only. Merge this first.
Adds dd-octo-sts trust policies to prepare for migrating
deps-update.ymlandvalidate.ymlworkflows fromDD_K9_LIBRARY_GO_APP_PRIVATE_KEYto OIDC-federated tokens.Why split into two PRs?
dd-octo-sts reads trust policies from the target repo's default branch. If we ship the policies and workflow changes together, the workflow changes can't be tested on the PR itself — the policies aren't on
mainyet. By merging policies first, the second PR's CI can exercise the new dd-octo-sts token exchange.Policies added
self.github.deps-update.schedule.sts.yamldeps-update.yml/ create-prcontents: write,pull_requests: writeself.github.validate.self-mutation.sts.yamlvalidate.yml/ self-mutationcontents: writeBoth are self-referential policies (orchestrion writing to itself). These are needed because:
deps-updatecreates PRs — disallowed forGITHUB_TOKENper org policyself-mutationpushes commits that must re-trigger CI —GITHUB_TOKENpushes don't trigger workflow runsNext step
After this merges → #816 migrates the workflows.
Test plan
🤖 Generated with Claude Code
Jira: APPSEC-62083