Which vulnerability scanner should a GitHub team use?
GitHub's own Dependabot and CodeQL against six scanners that plug into your repositories, compared on what they find, how they work in pull requests and the real monthly bill.
Start with what you already have: Dependabot alerts and security updates are free on every GitHub plan, private repositories included. They flag known vulnerable dependencies, but not flaws in your own code or leaked secrets. To scan your code on private repositories, GitHub sells Code Security at $30 per active committer per month, on top of a Team or Enterprise plan. For one tool that covers dependencies, code and containers, Snyk is our first pick, free to start, then $25 per developer a month on Team, for teams of 5 to 10 developers. Semgrep suits teams that want their own rules, Aikido a flat price for the whole team, and Trivy is the free choice for Docker images and Terraform.
We compared seven options on what a GitHub team pays for: what each one scans, how it shows up in a pull request, what is free on a private repository, and what ten developers pay in a month. All prices are in US dollars, before tax.
The ranking is editorial: a sponsored placement is always labeled on its card, and no affiliate link changes a score.
The right scanner for your GitHub setup
Dependencies, code, containers; Team $25 per developer a month.
Best for custom rulesFree to 10 contributors, then $30 per contributor per module.
Best flat price for a whole teamBasic at $350/month for 10 users.
Best native optionDependabot free; Code Security $30 per committer.
Best for code quality plus securityFree to 50k lines of code.
Best against malicious packagesFlags risky new dependencies in pull requests.
Best free scanner for containers and IaCOpen source, runs as a GitHub Action.
The 7 GitHub vulnerability scanners compared
Our score weighs what each tool scans (dependencies, your code, secrets, containers), how well it works inside GitHub (pull request checks, comments, fix pull requests), how much noise a team has to triage, and what ten developers pay once seats and modules are counted. The extra column shows how each tool plugs into GitHub. For network and server scanning rather than code, see the best vulnerability scanners.
| Best for | GitHub connection | Free plan | Team size | Visit | ||||
|---|---|---|---|---|---|---|---|---|
| 1 | Snyk | Best all-round scanner for GitHub | GitHub Cloud App opens fix pull requests | 4.1/5 | Free; Team $25/dev/mo, 5 to 10 devs | ✓ | Teams of 5 to 10 developers who want one tool | Visit → |
| 2 | Semgrep | Best for custom rules | PR comments, CI job added in bulk | 4.0/5 | Free up to 10 contributors; $30/contributor/mo | ✓ | Teams that want to write their own rules | Visit → |
| 3 | Aikido | Best flat price for a whole team | PR security checks from Basic | 3.9/5 | Free for 2 users; Basic $350/mo for 10 users | ✓ | Startups without a security engineer | Visit → |
| 4 | GitHub Advanced Security | Best native option | Built in: Dependabot, CodeQL, push protection | 3.7/5 | Dependabot free; Code Security $30/committer/mo | ✓ | Teams already on GitHub Team or Enterprise | Visit → |
| 5 | SonarQube Cloud | Best for code quality plus security | GitHub app with pull request analysis | 3.7/5 | Free to 50k lines; Team from $34/mo | ✓ | Teams that also track bugs and code smells | Visit → |
| 6 | Socket | Best against malicious packages | Comments on new dependencies in pull requests | 3.6/5 | Free (1 seat); Team $25/seat/mo, 5-seat minimum | ✓ | JavaScript and Python teams pulling many packages | Visit → |
| 7 | Trivy | Best free scanner for containers and IaC | GitHub Action with SARIF upload to code scanning | 3.6/5 | Free, open source (Apache-2.0) | ✓ | Teams shipping Docker images and Terraform | Visit → |
Prices as each vendor showed them on its pricing page in 2026, in US dollars before tax. The score is our overall judgment for a team of 2 to 50 developers whose code lives on GitHub.
Is your tool missing from this page? Email us: hello@hackceleration.com
Stay with GitHub's tools or add a scanner?
GitHub's own tools are enough if…
- Your repositories are public: CodeQL, secret scanning, push protection and Copilot Autofix are free there.
- You only need known vulnerable dependencies flagged: Dependabot alerts and security updates are free on every plan.
- You are already on GitHub Team or Enterprise and want findings in the Security tab, with no new login for developers.
- Your team is small enough that $30 per active committer for Code Security costs less than a second tool.
Add a third-party scanner if…
- You are on GitHub Free with private repositories: CodeQL and secret scanning need a paid plan plus an add-on.
- Dependabot's noise wastes your time and you want reachability, which tells you whether your code calls the vulnerable function.
- You ship container images or Terraform: Trivy or Snyk scan the image and the infrastructure files themselves.
- You want to catch malicious packages, not only known CVEs: Socket analyzes what a new package does.
Seven scanners, how they work with GitHub
For each tool: what it scans, how it connects to your GitHub organization, what the free plan really covers on private repositories, what ten developers pay, and the limit we found when we compared it.
The scanners
Snyk: dependencies, code and containers from one GitHub app
Best all-round scanner for GitHubSnyk is the scanner the guides we read cite most often, and it covers the four things a GitHub team usually needs: open source dependencies, your own code, container images and infrastructure as code. You install the Snyk GitHub Cloud App on your organization (it takes admin rights on both the GitHub organization and the Snyk organization), import repositories, and Snyk scans each pull request as soon as it is opened and opens fix pull requests itself when an upgrade closes a vulnerability. Developers also get it in the IDE and the CLI, so the same finding shows up before the push.
What it costs. The Free plan is $0 with monthly test limits per product: 200 tests for Open Source, 100 for Code, 300 for IaC and 100 for Container. Team costs $25 per contributing developer per month, with a minimum of 5 developers and a ceiling of 10: $125 a month at the minimum, $250 for ten, or $1,375 a year for five on annual billing. It adds higher test limits (1,000 Code tests a month instead of 100), Jira and next business day support. Above that, Enterprise runs on prepaid credits (1 credit = $1), with Code and Open Source each drawing 1 credit per active contributor per day. Snyk counts a contributor as someone who committed to a monitored private repository in the last 90 days, and public repositories don't count.
Who it's for: a team of five to ten developers that wants dependency, code and container scanning in one place without building a pipeline. Not for you if you have more than ten developers and no budget for an Enterprise contract: Team stops at ten. Below five, you still pay for five.
Its limit: noise. Snyk reports vulnerabilities deep in the transitive dependency tree, and some teams say they spend more time triaging those alerts than fixing real issues. Start with the dependency findings that have a fix, set an ignore policy for test folders, and only then turn on code scanning for the whole organization. If you are leaving it, our guide to switching from Snyk lists the alternatives by reason.
- Price
- Free, then Team $25/dev/month
- Team limit
- 5 to 10 developers
- Free tests
- 200 Open Source, 100 Code per month
- On GitHub
- Cloud App, fix pull requests
- Its limit
- Noisy until tuned
Semgrep: rules that look like your code
Best for custom rulesSemgrep started as an open source rule engine and is now a platform with three modules: Code (static analysis of your own code), Supply Chain (dependencies, with reachability analysis) and Secrets. Its strength is the rules: a rule looks like the code it searches for, so a developer can write one for a pattern that only exists in your codebase, such as an internal helper that must never receive user input. On GitHub, Semgrep posts comments on pull requests and can add its CI job to many repositories at once through GitHub Actions.
What it costs. The Free edition costs nothing up to 10 contributors and 10 repositories, with Code and Supply Chain included. Teams prices each module per contributor per month: Code $30, Supply Chain $30, Secrets $15. Ten developers on Code and Supply Chain pay $600 a month; add Secrets and it is $750. Enterprise is on quote, with no limit on repositories.
Who it's for: teams with someone who enjoys writing detection rules, and small teams who fit inside the free edition. Not for you if nobody will curate rules: the defaults are good, but the value comes from tuning.
Its limit: the per-module price adds up fast. Before buying all three modules, check what GitHub already gives you: Dependabot covers basic dependency alerts for free, so Supply Chain is worth it mainly for its reachability analysis, which tells you whether your code calls the vulnerable function.
- Price
- Free to 10 contributors, then $30/module
- Modules
- Code, Supply Chain, Secrets ($15)
- 10 devs
- $600/mo for Code + Supply Chain
- On GitHub
- PR comments, bulk CI setup
- Its limit
- Rules need curating
Aikido: every scanner behind one flat price
Best flat price for a whole teamAikido bundles what other vendors sell separately: dependency scanning with reachability, static analysis with AI-based autofixes, secrets detection, container and cloud scanning, and more, behind one dashboard and one price. You connect your GitHub organization, pick repositories, and Aikido uses reachability and AI-based false positive reduction to push aside findings it judges irrelevant, which is the main reason small teams pick it over running three open source scanners side by side.
What it costs. The Developer plan is free for 2 users and 10 repositories, with rescans every 3 days. Basic is $350 a month as a total fee for 10 users, or about $35 per user, with 100 repositories and security and quality checks on pull requests. Pro is $700 a month for 10 users. The price moves in steps of five users: Basic for 15 users is $525 a month. Annual billing takes 10% off: Basic for 10 users becomes $3,780 a year instead of $4,200.
Who it's for: a startup of 5 to 20 developers with no security engineer and a customer asking for a security questionnaire. Not for you if you are two or three developers: below ten users, the Basic fee still counts ten seats.
Its limit: the free plan rescans every three days, not on every push, so it is a good way to see your backlog but not a pull request gate. Pull request checks start on Basic. For a wider view, see our Aikido alternatives.
- Price
- Free for 2 users, Basic $350/mo
- Seats
- Basic includes 10 users
- Scope
- SCA, SAST, secrets, containers, cloud
- On GitHub
- PR checks from Basic
- Its limit
- Free plan rescans every 3 days
GitHub Advanced Security: Dependabot free, CodeQL paid on private repos
Best native optionBefore paying anyone, look at what GitHub already does. Dependabot alerts work on organization and user repositories, private ones included, and Dependabot security updates open pull requests that bump a vulnerable package, on the Free, Team and Enterprise plans. On public repositories, code scanning with CodeQL, secret scanning, push protection and Copilot Autofix are on by default or free to turn on. CodeQL's default setup configures the analysis for you in a few clicks.
What it costs. For private repositories, GitHub sells two add-ons, only on the Team plan ($4 per user per month) or Enterprise ($21): Code Security at $30 per active committer per month (CodeQL, Copilot Autofix, dependency review, security campaigns) and Secret Protection at $19 (secret scanning and push protection). An active committer is anyone who pushed a commit in the last 90 days to a repository where the feature is on. Ten developers on Team with both add-ons pay $530 a month, or $6,360 a year.
Who it's for: teams already paying for GitHub Team or Enterprise who want findings where developers already work, with no extra login. Not for you if you are on the Free plan with private repositories: CodeQL and secret scanning need a paid plan plus the add-on.
Its limit: Dependabot checks whether a vulnerable version is in your lockfile, not whether your code calls the vulnerable function, and maintainers have called it a noise machine for that reason. GitHub is previewing reachability for JavaScript and TypeScript, on Enterprise only, along with a package firewall that blocks malicious npm packages. If you are reconsidering GitHub itself, see our guide to leaving GitHub.
- Price
- Code Security $30, Secret Protection $19
- Billing
- Per active committer per month
- Plan needed
- GitHub Team ($4) or Enterprise
- Free
- Dependabot; CodeQL on public repos
- Its limit
- Dependabot ignores reachability
SonarQube Cloud: code quality and security on every pull request
Best for code quality plus securitySonarQube Cloud (formerly SonarCloud) is the code quality tool many teams already know, with security rules on top: it finds bugs, vulnerabilities and security hotspots in more than 35 languages on every pull request. You import your GitHub organization, install the SonarQube Cloud GitHub app and pick the repositories. For dependency scanning (CVEs, malicious packages, SBOM, licences), Sonar sells SonarQube Advanced Security as an extra subscription for Enterprise plan users; the Team plan only includes it during the trial.
What it costs. Free for private projects up to 50,000 lines of code, with no card and no expiry. The Team plan starts at $34 a month for up to 100,000 lines of code, for organizations of fewer than 50 developers. The price follows the lines of code analyzed, not the number of developers, which suits a large team on a small codebase.
Who it's for: teams that want one dashboard for code quality and code security, and agencies with many small repositories. Not for you if your main risk is in dependencies or containers: that takes the Enterprise plan plus a separate subscription.
Its limit: security hotspots are not vulnerabilities, they are code a human must review. Assign someone to review them each sprint, or they pile up and the team stops looking. For AI-assisted review on top, see how to get your code reviewed by AI.
- Price
- Free to 50k lines, Team from $34/mo
- Billed on
- Lines of code, not seats
- Languages
- 35+ on the Team plan
- On GitHub
- App with pull request analysis
- Its limit
- Dependency scanning on Enterprise only
Socket: catch malicious packages before they merge
Best against malicious packagesSocket answers a different question: not "does this package have a known CVE?" but "is this package doing something a library should not do?". It watches package manifests and lockfiles in your pull requests, and when someone adds a dependency, Socket analyzes the package's behavior (install scripts, obfuscated code, network or file system access) and leaves a comment if it looks risky. The free plan can auto-block malicious dependencies.
What it costs. Free is $0 for one developer seat, with 1,000 scans a month and unlimited private repositories. Team is $25 per developer seat per month on monthly billing, or $20 billed yearly, from 5 seats, and adds reachability analysis and Slack alerts. Business is $50 per seat monthly, $40 yearly, from 20 seats. Ten developers on Team pay $250 a month, or $200 a month on the yearly plan.
Who it's for: JavaScript and Python teams who install new packages every week. If you vet packages with an AI assistant, see what Claude can check with Socket. Not for you as your only scanner below Enterprise: static analysis of your own code (Socket Basics SAST) only comes with the Enterprise plan.
Its limit: it complements a CVE scanner, it does not replace one. The reason to add it: install scripts are rare in normal packages but present in 93.9% of malicious npm packages in the research Socket relies on, and a CVE database only lists an attack after someone has reported it.
- Price
- Free, Team $25/seat monthly
- Yearly
- $20/seat on Team
- Free scans
- 1,000 a month
- On GitHub
- Comments on new dependencies
- Its limit
- SAST on Enterprise only
Trivy: the free scanner for images and infrastructure
Best free scanner for containers and IaCTrivy is the open source scanner from Aqua Security, under the Apache-2.0 licence. One binary finds vulnerabilities and misconfigurations across code repositories, container images, binaries and Kubernetes clusters, and can also find secrets, check licences and generate an SBOM. On GitHub, the official trivy-action runs it in a workflow and can upload results in SARIF format to code scanning, so findings appear in the Security tab next to CodeQL's.
What it costs. Nothing: the open source tool is free under the Apache-2.0 licence. The real cost is the time to maintain the workflow and triage the output.
Who it's for: teams that ship Docker images or Terraform and want a free gate in CI that fails the build on a critical CVE. The trivy-action is built for GitHub Actions; if you are weighing another runner, see our GitHub Actions alternatives. Not for you if you want a dashboard, assignment and reporting without building them.
Its limit: the action is a supply chain risk itself. In 2026, attackers force-pushed 76 of the 77 version tags of aquasecurity/trivy-action and all 7 tags of setup-trivy to credential-stealing code. Pin the action to a full commit SHA, not a tag, and if a compromised version ran in your pipelines, treat their secrets as exposed and rotate them.
- Price
- Free, Apache-2.0
- Scans
- CVEs, IaC, secrets, licences, SBOM
- On GitHub
- Action with SARIF upload
- Watch out
- Pin the action to a commit SHA
- Its limit
- No dashboard of its own
What a GitHub vulnerability scanner does, and what to demand
A vulnerability scanner reads your repository and compares it with what is known to be dangerous. Four families exist, and a GitHub team usually needs at least two. Software composition analysis (SCA) reads your lockfiles and lists dependencies with a published vulnerability, which is what Dependabot does. Static analysis (SAST) reads your own code for patterns such as SQL injection, which is what CodeQL, Semgrep Code and Snyk Code do. Secret scanning looks for API keys and passwords committed by mistake. Container and infrastructure scanning checks Docker images and Terraform files. Most tools run on every pull request and report as a check, a comment or an alert in the Security tab. Large organizations with compliance teams also look at Checkmarx and Veracode, enterprise platforms sold on quote. Once the scanner runs, store the secrets it finds in a vault: see our secrets manager alternatives and the best business password managers. If you sell to companies under NIS2, our NIS2 compliance software comparison shows where code scanning fits in the evidence you will need.
One developer or an open source project
Turn on everything GitHub gives public repositories for free: CodeQL default setup, secret scanning, push protection and Dependabot. Add Trivy if you publish a Docker image.
A startup of 3 to 15 developers on private repos
Dependabot for free, then one paid tool: Snyk Team if you are 5 to 10, Aikido Basic if you want a flat fee, Semgrep Free if you fit in 10 contributors and 10 repositories.
A team already on GitHub Team or Enterprise
Price Code Security and Secret Protection first: $49 per active committer gives you findings inside GitHub with no new tool. Add Socket if you install many npm or PyPI packages.
A team shipping containers
Trivy in CI, pinned to a commit SHA, with SARIF upload to code scanning, plus a dependency scanner for the application code. If your pipelines don't run on GitHub Actions, our comparison of the best CI/CD tools covers where the same job fits.
- What it scans: dependencies, your own code, secrets, containers, IaC
- Reachability: does it tell you whether your code calls the vulnerable function?
- Pull request checks that can block a merge, not only a dashboard
- Fix pull requests or suggested patches, not only alerts
- How it counts seats: users, active committers, contributors or lines of code
- What the free plan covers on private repositories
- Ignore rules for test folders and generated files
- Licence checks on your dependencies, if customers ask for them
- Actions pinned to a commit SHA in every workflow you copy
What GitHub teams wish they'd known before buying a scanner
You won't find most of these in the usual roundups. They come from each vendor's pricing page and help center, GitHub's security advisories and developers' feedback.
The tips
What is free on a private repository, and what isn't
PricingOn a private repository with no add-on, you get Dependabot alerts, Dependabot security updates and version updates. You do not get CodeQL code scanning, secret scanning or push protection: those need GitHub Team or Enterprise plus Code Security or Secret Protection. Many guides mix the two because all of it is free on public repositories.
Count active committers, not GitHub seats
PricingGitHub bills its security add-ons per active committer: anyone who pushed a commit in the last 90 days to a repository where the feature is on. A contractor who pushed once in the quarter costs a full licence. Turn the add-on on only for the repositories that need it: the Advanced Security page of your organization settings lists the active committers, repository by repository, and GitHub App bots are not counted. Ten committers on Team with both add-ons: 10 × ($4 + $30 + $19) = $530 a month.
Reachability cuts the noise more than any setting
NoiseDependabot flags a vulnerable version in your lockfile even if your code never calls the vulnerable function. A Go maintainer called it a noise machine in 2026 after a one-line fix in his library triggered thousands of pull requests on projects that never used the affected code, and developers in a forum thread on the post described the same thing with ReDoS alerts on npm packages used only in client code. Semgrep Supply Chain, Socket Team and Aikido add reachability analysis; GitHub previews it for JavaScript and TypeScript on Enterprise only. One free setting helps today: GitHub's preset rule that auto-dismisses low impact alerts on npm development dependencies is on by default for public repositories, and you can opt in on private ones.
Pin every security action to a commit SHA
Supply chainThe scanner workflow runs with access to your repository secrets. In 2026, attackers repointed 76 of the 77 version tags of aquasecurity/trivy-action to credential-stealing code; a workflow that referenced one of those tags pulled the malware, a workflow pinned to a full commit SHA did not. The project's security advisory gives the rule: pin actions to full, immutable commit SHAs, and rotate the secrets a compromised run could read. One caveat: a pinned action can still call other actions. By default, trivy-action calls aquasecurity/setup-trivy as its first step, and setup-trivy's 7 tags were compromised too. Read what an action fetches, and update the SHA on purpose, not automatically.
Secret scanning on private repos can be free elsewhere
PricingGitHub Secret Protection costs $19 per active committer. If secrets are your main worry and your team is small, GitGuardian's Starter plan is free for up to 25 developers with real-time scanning, and Gitleaks is a free command line tool you can run as a pre-commit hook. Aikido's free plan also includes secrets detection with pre-commit blocking.
Flat fees and seat steps change the cheapest choice
PricingAikido Basic is $350 a month for 10 users whether you are 4 or 10, and goes to $525 for 15. Snyk Team and Socket Team both start at 5 seats, so four developers pay for five: $125 a month on either. Snyk Team then stops at ten developers, and Socket Business starts at 20 seats, $800 a month at the minimum on yearly billing. SonarQube Cloud ignores seats: you pay up front for a ceiling of private lines of code, $34 a month for up to 100,000. Write your head count for the next twelve months before you compare.
Send every scanner's results to one Security tab
SetupTrivy and many open source tools can write SARIF, the format GitHub's code scanning reads. Uploading it puts their findings in the Security tab next to CodeQL's, with the same dismiss and assign flow. Note that code scanning on private repositories, SARIF uploads included, requires Code Security; on public repositories it is free.
Exclude test fixtures on day one
NoiseThe fastest way to lose a team's trust is a first scan with hundreds of findings in test fixtures, sample keys and vendored code. Look for the tool's ignore file or path filter and set it before you enable pull request checks, and make the check block only on new critical and high findings, so the backlog does not stop every merge.
Your questions on scanning GitHub repositories
Does Dependabot scan my code for vulnerabilities?
No. Dependabot only reads your dependency manifests and lockfiles and compares the versions with known advisories. And only advisories reviewed by GitHub trigger an alert, so a fresh CVE can take time to show up. Flaws in code you wrote, such as an injection in a query, need static analysis: CodeQL on GitHub, or a tool like Semgrep, Snyk Code or SonarQube Cloud.Why doesn't Dependabot notify me about every vulnerable dependency?
Because GitHub only notifies you about vulnerabilities found after you turn Dependabot on. The ones already in your repository on day one are listed in the Dependabot alerts view, but no notification is sent for them. Open that view once after enabling it, sort by severity, and fix the backlog from there.Is Trivy still safe to use after the 2026 supply chain attack?
Yes, on the versions the project marks as safe: the Trivy binary v0.69.2 or v0.69.3, trivy-action v0.35.0 and setup-trivy v0.2.6. The malicious ones were Trivy v0.69.4, the Docker Hub images 0.69.5 and 0.69.6, and the force-pushed action tags. Older trivy-action versions now carry a v prefix (v0.34.0, not 0.34.0). Pin whichever you use to a commit SHA.How do I scan a GitHub repository for leaked API keys?
Turn on secret scanning: it is free on public repositories, and on private ones it comes with GitHub Secret Protection or a free tool such as Gitleaks or GitGuardian's Starter plan. Push protection for users, on by default on every GitHub.com account, already stops you from pushing known secrets to a public repository. If a key was ever committed, revoke or rotate it first: rewriting history does not remove it from other people's clones, or from forks that contain the commit.How do I block a pull request when a scanner finds a critical vulnerability?
Make the scanner's check required in a branch protection rule or ruleset on your main branch. For CodeQL and tools that upload SARIF, GitHub's code scanning merge protection blocks pull requests that fail code scanning checks. Set the scanner to fail only on new findings at your chosen severity, otherwise the existing backlog blocks every merge from day one.Can AI fix the vulnerabilities a scanner finds?
Partly. GitHub's Copilot Autofix suggests fixes, with explanations, for CodeQL alerts in pull requests, free on public repositories and included with Code Security; its agentic autofix takes up to 25 alerts at once and opens the pull request itself, drawing on AI credits. Aikido's free plan includes 10 AI AutoFixes a month and Basic has no limit. Review each fix like any other pull request: a fix that compiles is not proof the flaw is gone.Which scanners are free for open source projects?
GitHub's own: CodeQL, secret scanning, Copilot Autofix and dependency review cost nothing on public repositories. SonarQube Cloud gives public repositories under an OSI licence its SonarQube for OSS plan, with the features of a paid plan, Snyk runs an application for open source maintainers to use it at no cost, and Trivy is free under Apache-2.0 anyway.How often should I scan my repositories?
On every pull request for the code that changes, and on a schedule for everything else, because new vulnerabilities are published against code that has not moved. A daily scheduled scan of the default branch catches a new advisory on a package you added months ago.