Repository navigation
Add org-wide Claude Security scan merge gate - #5
Merged
Merged
Conversation
Runs the Claude Security plugin's GitHub Action on every pull request, enforced through the "Require org CI" ruleset like the other org gates. Based on the plugin's CI guide (pull request review sample), pinned to the v0.13.0 release commit the docs give, scanning with Opus. The key is the org secret ANTHROPIC_SECURITY_API_KEY (private repos only). Repos without it, public ones included, skip with a warning so the gate never blocks merges just for a missing key. Co-Authored-By: Claude Opus 5.5 <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.
Adds
org-claude-security.yml, the Claude Security plugin's GitHub Action, as an org-wide pull request scan. Once this is merged, it gets added to the Require org CI ruleset next to Tests and Claude Code Review, so no repo needs its own copy.What it does
opened,synchronize,reopened,ready_for_review,edited). It posts one comment review, then a second review with suggested fixes.fail_ondefault). Org admins can still bypass.d0d5142) that the docs give, and runsmodel: opus.posthog-eu[bot]is allowed, the same decision as in the Claude Code Review workflow.Auth
The action takes no subscription token, so it can't reuse
CLAUDE_CODE_OAUTH_TOKEN. It reads the org secretANTHROPIC_SECURITY_API_KEY, a Claude API key scoped to its own Console workspace with a monthly spend limit. That secret's visibility is private repos only. Akey-checkjob skips the scan with a warning when the key isn't there, which covers public repos and the time before the secret exists. So the gate never blocks a merge only because the key is missing.Not included
The scheduled whole-repo scan. Ruleset-required workflows only run on PR events, so that would need a per-repo workflow.
🤖 Generated with Claude Code