ci: migrate scan-plugins.yml to Workload Identity Federation auth#248
Draft
zenexer-ant wants to merge 1 commit into
Draft
ci: migrate scan-plugins.yml to Workload Identity Federation auth#248zenexer-ant wants to merge 1 commit into
zenexer-ant wants to merge 1 commit into
Conversation
Replaces the static ANTHROPIC_API_KEY repo secret with Workload Identity Federation: the scan-plugins shared action mints a GitHub OIDC token (id-token: write) and the claude CLI exchanges it for a short-lived bearer. The federation rule is bound to this repository (repository_id-pinned). Depends on anthropics/claude-plugins-community#34 (adds the WIF inputs to the shared action). Pinned to that PR's head SHA; will re-pin to a main-branch SHA once #34 merges. Drops the 'Require ANTHROPIC_API_KEY' fail-closed guard — the WIF inputs are literal in this file, so the action's skip-if-no-auth path can't trigger. Updates the prompt-injection security comment to reflect the short-lived bearer model.
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.
Replaces the static
ANTHROPIC_API_KEYrepo secret with Workload Identity Federation inscan-plugins.yml: the sharedscan-pluginsaction mints a GitHub OIDC token and theclaudeCLI exchanges it for a short-lived bearer.Depends on anthropics/claude-plugins-community#34 (adds
anthropic-federation-rule-idetc. inputs to the shared action). Pinned to that PR's heade8411e8; will re-pin to a main-branch SHA once #34 merges. Draft until then.permissions: id-token: write.Require ANTHROPIC_API_KEYfail-closed guard — the WIF inputs are literal, so the action's skip-if-no-auth path can't trigger.sk-ant-key, bounding exfil blast radius. Thesk-ant-scrubber stays as defense-in-depth.Once #34 + this merge, the
ANTHROPIC_API_KEYrepo secret can be removed.