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?
| Product | Key features | Details |
|---|---|---|
| ๐ Secret Protection | Secret scanning ยท Push protection (org/repo level) ยท Custom patterns ยท AI detection ยท Validity checks | Secret Scanning โ |
| ๐ Code Security | Code scanning (CodeQL) ยท Copilot Autofix ยท Security campaigns ยท Dependency review (PR enforcement) ยท Security overview | Code Scanning โ |
Pricing (from April 2025)
| Product | Price | Billing unit |
|---|---|---|
| ๐ GitHub Secret Protection | $19 / month | active committer |
| ๐ GitHub Code Security | $30 / month | active committer |
| ๐ฆ Both together | $49 / month | active 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
- ๐ Public repos only? Do nothing โ everything is free
- ๐ Enable free features for private repos first โ Dependabot (alerts / updates), user-level push protection, and Secret Risk Assessment (one-time inventory)
- ๐ Want org-level enforcement against secret leaks? โ Buy Secret Protection
- ๐ 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.
| Assessment | What it shows | Scope | Frequency | Details |
|---|---|---|---|---|
| ๐ Secret Risk Assessment | Types and count of secrets hiding in org repos | All repos (public / private / internal / archived) | Once | Secret Scanning โ |
| ๐ Code Security Risk Assessment | Code vulnerabilities detected by CodeQL (severity / language / Autofix-eligible count) | Up to 20 most active repos | Once every 90 days | Code 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:
- Enabling Secret Risk Assessment โ
- Code security risk assessment (GitHub Docs) โ
- Code Security Risk Assessment GA (2026/04) โ
๐ GHAS general: