{"type":"post","id":"scan-your-codebase-for-vulnerabilities-d0fdc5","slug":"scan-your-codebase-for-vulnerabilities-d0fdc5","title":"Scan your codebase for vulnerabilities","description":"Claude’s documentation says to add the plugin’s job to GitHub Actions to scan pull requests, but does not specify the job configuration or whether findings can block a merge.","retrieval_nugget":"Claude’s documentation says to add the plugin’s job to GitHub Actions to scan pull requests, but does not specify the job configuration or whether findings can block a merge.","published_at":"2026-12-02","updated_at":"2026-12-02","record_date":"2026-12-02","date_kind":"published_at","topics":["claude","github","claude-code"],"entities":["Anthropic","Claude Code","Claude Security","GitHub Actions","SARIF"],"related_patterns":["agent-security-moves-to-runtime-boundaries"],"novelty_label":"new_fact","what_changed":null,"prior_refs":[],"source_url":"https://code.claude.com/docs/en/claude-security","source_urls":["https://code.claude.com/docs/en/claude-security"],"production":{"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-12-02T18:25:22.860Z","independent_sources":1,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":null,"editorial_value":"high","human_review":"selective"},"citations":[{"claim":"","quotes":["In GitHub Actions: add the plugin’s job to scan pull requests"],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=In%20GitHub%20Actions%3A%20add%20the%20plugin%E2%80%99s%20job%20to%20scan%20pull%20requests","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"Low, medium and high effort all verify findings; medium is the default, low skips the architecture map, and high adds vulnerability hunting to the medium scan.","quotes":["The Claude Security plugin runs a multi-agent vulnerability scan of your codebase inside a Claude Code session.","By default, when you scan … diff, or a single commit."],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=The%20Claude%20Security%20plugin%20runs%20a%20multi%2Dagent%20vulnerability%20scan%20of%20your%20codebase%20inside%20a%20Claude%20Code%20session.&text=By%20default%2C%20when%20you%20scan,diff%2C%20or%20a%20single%20commit.","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"","quotes":["Scan effort sets how deep a scan goes. Your findings go through the same independent verification at low, medium, and high.","low: a quick first look. It skips the architecture map when you scan your codebase. - medium: the default. - high: what medium does, plus more hunting for vulnerabilities in the same code."],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=Scan%20effort%20sets%20how%20deep%20a%20scan%20goes.%20Your%20findings%20go%20through%20the%20same%20independent%20verification%20at%20low%2C%20medium%2C%20and%20high.&text=low%3A%20a%20quick%20first%20look.%20It%20skips%20the%20architecture%20map%20when%20you%20scan%20your%20codebase.%20%2D%20medium%3A%20the%20default.%20%2D%20high%3A%20what%20medium%20does%2C%20plus%20more%20hunting%20for%20vulnerabilities%20in%20the%20same%20code.","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"The plugin itself makes no model calls; in a session, its agents use that session’s model, while supporting steps use the sonnet alias.","quotes":["A paid plan, Anthropic API access, or a third-party provider, for the dynamic workflows the scan uses to orchestrate its agents.","On Pro, turn them on from the Dynamic workflows row in /config.","Provider: scans run on a paid plan, with Anthropic API access, or on a third-party provider such as Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry."],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=A%20paid%20plan%2C%20Anthropic%20API%20access%2C%20or%20a%20third%2Dparty%20provider%2C%20for%20the%20dynamic%20workflows%20the%20scan%20uses%20to%20orchestrate%20its%20agents.&text=On%20Pro%2C%20turn%20them%20on%20from%20the%20Dynamic%20workflows%20row%20in%20%2Fconfig.&text=Provider%3A%20scans%20run%20on%20a%20paid%20plan%2C%20with%20Anthropic%20API%20access%2C%20or%20on%20a%20third%2Dparty%20provider%20such%20as%20Amazon%20Bedrock%2C%20Google%20Cloud%E2%80%99s%20Agent%20Platform%2C%20or%20Microsoft%20Foundry.","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"A session or shell scan counts toward the user’s usage, while a GitHub Actions scan counts toward the account owning the job’s model credential.","quotes":["The plugin makes no model calls of its own, so a scan in your session needs no separate API key or provider setting.","Model: the agents that hunt for vulnerabilities, verify findings, and write and review patches run on your session’s model. To change it, run /model in your session before you start a scan. A few supporting steps use the sonnet alias instead."],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=The%20plugin%20makes%20no%20model%20calls%20of%20its%20own%2C%20so%20a%20scan%20in%20your%20session%20needs%20no%20separate%20API%20key%20or%20provider%20setting.&text=Model%3A%20the%20agents%20that%20hunt%20for%20vulnerabilities%2C%20verify%20findings%2C%20and%20write%20and%20review%20patches%20run%20on%20your%20session%E2%80%99s%20model.%20To%20change%20it%2C%20run%20%2Fmodel%20in%20your%20session%20before%20you%20start%20a%20scan.%20A%20few%20supporting%20steps%20use%20the%20sonnet%20alias%20instead.","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"","quotes":["A scan in your session or shell counts toward your usage, and a scan in GitHub Actions counts toward the account that owns the job’s model credential."],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=A%20scan%20in%20your%20session%20or%20shell%20counts%20toward%20your%20usage%2C%20and%20a%20scan%20in%20GitHub%20Actions%20counts%20toward%20the%20account%20that%20owns%20the%20job%E2%80%99s%20model%20credential.","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"Change scans and patch generation require Git, though full scans work in any directory.","quotes":["Python 3.9 or later available on your PATH as python3.","Linux, macOS, or Windows. - Git, for change scans and for turning findings into patches; those jobs don’t support other version control systems."],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=Python%203.9%20or%20later%20available%20on%20your%20PATH%20as%20python3.&text=Linux%2C%20macOS%2C%20or%20Windows.%20%2D%20Git%2C%20for%20change%20scans%20and%20for%20turning%20findings%20into%20patches%3B%20those%20jobs%20don%E2%80%99t%20support%20other%20version%20control%20systems.","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"Results go to a timestamped directory where Claude Code was started.","quotes":["Git, for change scans and for turning findings into patches; those jobs don’t support other version control systems. A full scan works in any directory, with or without version control."],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=Git%2C%20for%20change%20scans%20and%20for%20turning%20findings%20into%20patches%3B%20those%20jobs%20don%E2%80%99t%20support%20other%20version%20control%20systems.%20A%20full%20scan%20works%20in%20any%20directory%2C%20with%20or%20without%20version%20control.","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"Selected findings can be turned into reviewed patches, but you must review and apply them yourself.","quotes":["Results are written to a timestamped directory in the folder where you started Claude Code, described in Read the scan results."],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=Results%20are%20written%20to%20a%20timestamped%20directory%20in%20the%20folder%20where%20you%20started%20Claude%20Code%2C%20described%20in%20Read%20the%20scan%20results.","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"The managed Claude Security service is separate from the plugin and is available on Enterprise.","quotes":["If a command or option doesn’t work, check that you have version 0.13.1 or later of the plugin.To update the plugin yourself, see Update plugins now. Claude Code also updates the plugin automatically unless auto-update is turned off."],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=If%20a%20command%20or%20option%20doesn%E2%80%99t%20work%2C%20check%20that%20you%20have%20version%200.13.1%20or%20later%20of%20the%20plugin.To%20update%20the%20plugin%20yourself%2C%20see%20Update%20plugins%20now.%20Claude%20Code%20also%20updates%20the%20plugin%20automatically%20unless%20auto%2Dupdate%20is%20turned%20off.","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"","quotes":["If you want a managed service that monitors your repositories, or want to run scans on Claude Mythos, see the Claude Security product, available on the Enterprise plan."],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=If%20you%20want%20a%20managed%20service%20that%20monitors%20your%20repositories%2C%20or%20want%20to%20run%20scans%20on%20Claude%20Mythos%2C%20see%20the%20Claude%20Security%20product%2C%20available%20on%20the%20Enterprise%20plan.","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"Scan only code you own or have permission to test.","quotes":["A scan may take a while, may use a significant number of tokens, and needs Claude Code left open while it completes. Nothing runs until you confirm."],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=A%20scan%20may%20take%20a%20while%2C%20may%20use%20a%20significant%20number%20of%20tokens%2C%20and%20needs%20Claude%20Code%20left%20open%20while%20it%20completes.%20Nothing%20runs%20until%20you%20confirm.","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"Set the session model first with /model if needed, then use /claude-security to open the scan menu.","quotes":["The command opens the plugin’s details, where you choose an installation scope to start the install. Choose user scope to have the plugin in every project.If the install fails, match the message Claude Code reports:"],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=The%20command%20opens%20the%20plugin%E2%80%99s%20details%2C%20where%20you%20choose%20an%20installation%20scope%20to%20start%20the%20install.%20Choose%20user%20scope%20to%20have%20the%20plugin%20in%20every%20project.If%20the%20install%20fails%2C%20match%20the%20message%20Claude%20Code%20reports%3A","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"To scan a pull-request branch locally, check it out and run /claude-security scan my branch.","quotes":["To change it, run /model in your session before you start a scan.","At the Claude Code prompt, /claude-security opens a menu of jobs, such as scanning the codebase, scanning a set of changes, and suggesting patches. The happy path runs a full scan, then turns its findings into patches:"],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=To%20change%20it%2C%20run%20%2Fmodel%20in%20your%20session%20before%20you%20start%20a%20scan.&text=At%20the%20Claude%20Code%20prompt%2C%20%2Fclaude%2Dsecurity%20opens%20a%20menu%20of%20jobs%2C%20such%20as%20scanning%20the%20codebase%2C%20scanning%20a%20set%20of%20changes%2C%20and%20suggesting%20patches.%20The%20happy%20path%20runs%20a%20full%20scan%2C%20then%20turns%20its%20findings%20into%20patches%3A","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"For a change scan, commit the edits you want included and stash the rest with git stash -u; alternatively, a full scan reads the working tree.","quotes":["Pull request: run git checkout feature-auth, naming the pull request’s branch, then /claude-security scan my branch - Single commit: run git checkout abc1234, then /claude-security scan commit abc1234"],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=Pull%20request%3A%20run%20git%20checkout%20feature%2Dauth%2C%20naming%20the%20pull%20request%E2%80%99s%20branch%2C%20then%20%2Fclaude%2Dsecurity%20scan%20my%20branch%20%2D%20Single%20commit%3A%20run%20git%20checkout%20abc1234%2C%20then%20%2Fclaude%2Dsecurity%20scan%20commit%20abc1234","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"},{"claim":"","quotes":["Before a change scan, commit the edits you want scanned and stash the rest with git stash -u, or run a full scan, which reads the working tree.To scan one of your open pull requests or a single commit, check it out from your shell first, then ask at the Claude Code prompt:"],"cite_url":"https://code.claude.com/docs/en/claude-security#:~:text=Before%20a%20change%20scan%2C%20commit%20the%20edits%20you%20want%20scanned%20and%20stash%20the%20rest%20with%20git%20stash%20%2Du%2C%20or%20run%20a%20full%20scan%2C%20which%20reads%20the%20working%20tree.To%20scan%20one%20of%20your%20open%20pull%20requests%20or%20a%20single%20commit%2C%20check%20it%20out%20from%20your%20shell%20first%2C%20then%20ask%20at%20the%20Claude%20Code%20prompt%3A","source_url":"https://code.claude.com/docs/en/claude-security","publisher":"code.claude.com"}],"schema_version":"newruntime-agent-readable-v0.2","stable_id":"post:scan-your-codebase-for-vulnerabilities-d0fdc5","status":"published","visuals":[],"editor":{"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]},"routes":{"html":"https://newruntime.com/posts/scan-your-codebase-for-vulnerabilities-d0fdc5/","markdown":"https://newruntime.com/posts/scan-your-codebase-for-vulnerabilities-d0fdc5.md","json":"https://newruntime.com/posts/scan-your-codebase-for-vulnerabilities-d0fdc5.json"},"markdown_url":"https://newruntime.com/posts/scan-your-codebase-for-vulnerabilities-d0fdc5.md","next_reads":[{"type":"topic","path":"/topics/claude/","url":"https://newruntime.com/topics/claude/","title":"Claude","reason":"Explore the claude topic hub.","media_type":"text/html","markdown_url":"https://newruntime.com/topics/claude.md","json_url":"https://newruntime.com/topics/claude.json"},{"type":"topic","path":"/topics/github/","url":"https://newruntime.com/topics/github/","title":"Github","reason":"Explore the github topic hub.","media_type":"text/html","markdown_url":"https://newruntime.com/topics/github.md","json_url":"https://newruntime.com/topics/github.json"},{"type":"topic","path":"/topics/claude-code/","url":"https://newruntime.com/topics/claude-code/","title":"Claude Code","reason":"Explore the claude-code topic hub.","media_type":"text/html","markdown_url":"https://newruntime.com/topics/claude-code.md","json_url":"https://newruntime.com/topics/claude-code.json"},{"type":"collection","path":"/posts/","url":"https://newruntime.com/posts/","title":"Field Notes","reason":"Open the latest editorial analysis.","media_type":"text/html","json_url":"https://newruntime.com/posts.json"},{"type":"collection","path":"/sources/","url":"https://newruntime.com/sources/","title":"Sources","reason":"See the original sources this archive cites.","media_type":"text/html"}]}
