Skip to content

Add org-wide Claude Security scan merge gate - #5

Merged
nnx0r merged 1 commit into
mainfrom
add-org-claude-security
Nov 30, 2026
Merged

nnx0r merged 1 commit into
mainfrom
add-org-claude-security

Conversation

@nnx0r

@nnx0r nnx0r commented Nov 30, 2026

Copy link
Copy Markdown
Member

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

  • Scans each PR's changes (on opened, synchronize, reopened, ready_for_review, edited). It posts one comment review, then a second review with suggested fixes.
  • Fails the check on any CRITICAL or HIGH finding (fail_on default). Org admins can still bypass.
  • Uses the CI guide's pull request sample, with its steps unchanged. It's pinned to the v0.13.0 release commit (d0d5142) that the docs give, and runs model: opus.
  • Dependabot PRs skip, as in the sample. 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 secret ANTHROPIC_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. A key-check job 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

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>
@nnx0r
nnx0r merged commit 263a268 into main Nov 30, 2026
6 checks passed
@nnx0r
nnx0r deleted the add-org-claude-security branch November 30, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant