ci(security): add dd-octo-sts policy for Node.js base image publishing#6957
Draft
rochdev wants to merge 1 commit into
Draft
ci(security): add dd-octo-sts policy for Node.js base image publishing#6957rochdev wants to merge 1 commit into
rochdev wants to merge 1 commit into
Conversation
Restricts GHCR package writes to pushes on main via the dedicated publish-nodejs-base-images reusable workflow only. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
|
rochdev
added a commit
that referenced
this pull request
May 17, 2026
Moves the GHCR push logic to publish-nodejs-base-images.yml so it can later be protected with a dd-octo-sts claim (see PR #6957) to restrict pushes to main-branch runs only. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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
Adds a
dd-octo-stspolicy that restricts GHCR package writes to pushes onmainvia the dedicatedpublish-nodejs-base-imagesreusable workflow.This is a prerequisite for #6903, which will switch from using
GITHUB_TOKENwithpackages: writeto using a scopeddd-octo-ststoken — preventing PR branches from pushing arbitrary image tags.The claim is not wired up in #6903 yet; this policy just needs to be merged first so the token can be requested once #6903 is ready to switch over.