LV.1
EXP 0/1000
โ—€ Playbook index
NO.19.8

GHAS

In one sentence

GitHub Advanced Security (GHAS) is GitHub's paid add-on that bundles security features. It was the license needed to enable code scanning and secret scanning on private repos.

In April 2025, it was split into GitHub Secret Protection and GitHub Code Security โ€” you can now buy only the features you need.

๐ŸŒ Public repos continue to get everything for free. A GHAS / Secret Protection / Code Security license is only required when you want to enable features on private / internal repos. ๐Ÿค– Dependabot itself (alerts / security updates / version updates / dependency graph) is completely free on every plan โ€” no GHAS required. See Dependabot โ†—.

Whatโ€™s included?

ProductKey featuresDetails
๐Ÿ”‘ Secret ProtectionSecret scanning ยท Push protection (org/repo level) ยท Custom patterns ยท AI detection ยท Validity checksSecret Scanning โ†—
๐Ÿ” Code SecurityCode scanning (CodeQL) ยท Copilot Autofix ยท Security campaigns ยท Dependency review (PR enforcement) ยท Security overviewCode Scanning โ†—

Pricing (from April 2025)

ProductPriceBilling unit
๐Ÿ”‘ GitHub Secret Protection$19 / monthactive committer
๐Ÿ” GitHub Code Security$30 / monthactive committer
๐Ÿ“ฆ Both together$49 / monthactive committer
  • ๐Ÿ‘ฅ Active committer = a unique committer who pushed to a repository with the feature enabled during the past 90 days. The same person counts as one across any number of repositories
  • ๐Ÿ’ณ Metered (pay-as-you-go) model โ€” no need to reserve license seats upfront; youโ€™re billed only for the people who actually push
  • ๐Ÿท๏ธ Available on GitHub Team plan too (previously Enterprise-only)
  • ๐Ÿ†“ Public repos are completely free โ€” open source projects need no license

๐Ÿ’ก If you only need secret scanning, Secret Protection alone ($19) is enough. Add Code Security ($30) when you also want CodeQL โ€” the split model lets you adopt incrementally.

How to think about licensing

  1. ๐ŸŒ Public repos only? Do nothing โ€” everything is free
  2. ๐Ÿ†“ Enable free features for private repos first โ€” Dependabot (alerts / updates), user-level push protection, and Secret Risk Assessment (one-time inventory)
  3. ๐Ÿ”‘ Want org-level enforcement against secret leaks? โ†’ Buy Secret Protection
  4. ๐Ÿ” Want code vulnerability scanning (CodeQL) and Autofix too? โ†’ Add Code Security

๐ŸŽฏ Start with a Risk Assessment (below) to visualize how many secrets and vulnerabilities are hiding in your org โ€” then evaluate the cost-effectiveness of Secret Protection / Code Security.

Pre-purchase inventory โ€” Risk Assessments

GitHub provides two Risk Assessments to visualize your organization's security posture โ€” no license required, completely free.

Both can be triggered with a single click from Org โ†’ Security โ†’ Assessments, and you can review the results before deciding to purchase Secret Protection / Code Security.

AssessmentWhat it showsScopeFrequencyDetails
๐Ÿ”‘ Secret Risk AssessmentTypes and count of secrets hiding in org reposAll repos (public / private / internal / archived)OnceSecret Scanning โ†—
๐Ÿ” Code Security Risk AssessmentCode vulnerabilities detected by CodeQL (severity / language / Autofix-eligible count)Up to 20 most active reposOnce every 90 daysCode Scanning โ†—
  • ๐Ÿ†“ Completely free โ€” no GHAS / Secret Protection / Code Security license required
  • ๐Ÿ›‚ Permissions โ€” only Organization owners or security managers can run them
  • ๐Ÿ“Š Output โ€” aggregated reports (individual secret values and code are not stored on GitHub servers)
  • ๐Ÿท๏ธ Eligible plans โ€” GitHub Team and GitHub Enterprise Cloud (Server support expected in 3.22)
  • โš™๏ธ Actions minutes โ€” Code Security Risk Assessment does not consume your regular Actions quota

๐Ÿ’ก Use these first when you โ€œneed numbers for a budget proposalโ€ or โ€œwant to see the impact before buying.โ€ Running both on the same day gives you a complete view of your organizationโ€™s security posture in hours.

๐Ÿ“˜ Risk Assessment references:

๐Ÿ“˜ GHAS general: