# Claude Security Can Block Your Merge From a GitHub Action: 6 Things Its Own Docs Say to Check Before You Make It a Required Check in 2026

> Source: <https://dev.to/dev_barron/claude-security-can-block-your-merge-from-a-github-action-6-things-its-own-docs-say-to-check-4d8d>
> Published: 2026-12-03 17:09:52+00:00

**Key takeaway:** Make the `claude-security` job a required status check to actually block merges, but keep scheduled and manual scans in a separate workflow with a different job name because skipped jobs report as passing.

Anthropic's Claude Security plugin can run as a GitHub Action, review a pull request for vulnerabilities, and block the merge. The block only happens when the `claude-security` job is a required status check. Until then, a failed scan is a red X that anyone can merge past.

A check that can block can also pass by accident. Anthropic's own guide lists the conditions, and each one changes how much you can trust a green check. Teams that care about secure code review should read the guide before they flip the switch.

The plugin's [CI guide](https://github.com/anthropics/claude-plugins-official/blob/main/plugins/claude-security/CI.md) describes two modes. A pull request review scans each change and posts one comment review, never an approval or a request for changes. A scheduled scan reads the whole repository and writes a report to the job summary.

The timeline matters for how you describe it. The public CI guide landed in the plugin repository in the v0.13.0 commit on 24 November 2026, and @ClaudeDevs posted about the Action on 30 November. The Action is not a launch from this week.

Three names are easy to confuse. The Action is the plugin's CI job. Claude Code's separate Code Review feature is a different tool. The managed "Claude Security" product is a third. Anthropic's February 2026 "Claude Code Security" post covered an earlier preview and did not announce the Action.

[Anthropic's plugin page](https://code.claude.com/docs/en/claude-security) also says the plugin does not replace your existing source-code security tools and should run alongside static analysis, dependency scanning, and code review. Treat the Action as one layer of a review process.

A failed job blocks the merge only if it is a required status check. In the guide's sample workflow, the first job is named `claude-security`, so that exact job name goes into your branch protection or ruleset. Without it, the scan still posts a review, and the merge button still works.

The guide also says to keep `schedule:` and `workflow_dispatch:` in a second workflow, with a different job name. Manual and scheduled runs can then never satisfy the pull request check by accident. Required checks match on name, so naming is part of the control.

[GitHub's status-check docs](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks) say a job skipped by an `if:` condition reports "Success" and will not stop a pull request from merging, even when the check is required. Anthropic's guide repeats the point: "Do not skip the job for external branches: a skipped job counts as passing."

A workflow skipped by path filters stays pending and still blocks the merge.

By default, a pull request from a fork fails the job, the safer side of that rule. The `dangerously_scan_external_branches` input lets the action continue for every external branch, and the guide says "We do not encourage it." The preferred path: read the change, then reopen it from a branch in your repository.

The sample workflow skips some pull requests on purpose. A draft pull request from a branch of your repository passes with no scan until you mark it ready for review, unless you turn on `scan_drafts`. Dependabot pull requests from your repository are skipped too, and skipped runs pass, so review those changes yourself.

Merge queues and push events are not supported. The sample comments that a job skipped in a merge queue counts as passing. If you use a merge queue, the required check cannot be your only gate there. Plan a second control for the queue path.

Anthropic's guide says plainly: "A required check can turn green on a commit whose scan failed." The examples are a manual run, a re-run, or another pull request with the same head. A passing check name can come from a run that did not scan this commit.

The guide lists follow-ups. Keep scheduled and manual scans in a separate workflow. Do not re-run an older run after a change of base branch. Run one copy of the job on pull requests. Never build a step name from pull request text. Push a commit after a force-push of the base branch.

The trust model is stated up front: use the action only where you trust everyone who can push. Text in a pull request can steer the scan, and the scan can run the pull request's code. Anyone who can push can also edit the workflow, use its model credential, and pass the check.

Public repositories add a disclosure risk, because a review or job summary can reveal a live vulnerability. Anthropic's recommendation, if that concerns you, is to scan locally instead of in CI. The guide also covers the credential: a dedicated workspace with a monthly spend limit, and workload identity federation over a long-lived key.

The action runs with `sudo`, so the guide says to pin a release's full commit, never a branch. Nothing warns you of a newer release, so the [plugin's docs page](https://code.claude.com/docs/en/claude-security) carries the latest commit. At the time of writing, the docs gave `d0d514288960e7a78e1a76e4a3ec694416458726` for version 0.13.0.

Version 0.13.1 is already on the main branch, so check the docs page for the commit it lists before you copy one.

The `fail_on` input decides which findings fail the job. The default is `high`, meaning any critical or high finding. The value `confident-high` fails only on critical or high findings of high confidence, so a real high finding of medium or low confidence can pass. Values `medium` and `any` block more merges, and `never` blocks none.

AI agents assign each severity and confidence, and both can change between runs. A scan that lost agents or returned an unverified report fails the job under every value except `never`. The guide's last word on results: "A clean review is not proof of absence."

A vendor security scan answers one question about a change: does it see a vulnerability. Teams also need a second answer: does the change follow their own rules, in the context of the whole codebase. A skipped or steered scan should never be the only line before main.

[Qodo](https://www.qodo.ai/), the AI Code Review Platform, works as that second layer. Once Rule enforcement is on, Qodo reviews pull requests in connected repositories against your team's enforceable rules with full codebase context. Qodo's review is advisory, so it works next to a required check and does not replace one. Qodo flags; your team decides.

`claude-security` job as a required status check.`fail_on` deliberately, and treat a clean review as one signal.
Qodo is the AI code review platform with high-precision PR review, full codebase context, enforceable rules, and local review inside your coding agents.
