# Semgrep vs GitHub Advanced Security

- Semgrep: Fast, customisable static code analysis, with dependency and secrets scanning on the platform.
- GitHub Advanced Security: Code scanning, secret protection and dependency review built directly into GitHub.

## Choose Semgrep if…
- You prefer open source or hosting it yourself

Stands out for:
- Easy-to-write custom rules.
- Low noise and fast CI scans.

## GitHub Advanced Security stands out for
- No extra tool for developers to learn.
- Push protection blocks secrets before they are committed.

## Quick facts
| | Semgrep | GitHub Advanced Security |
|---|---|---|
| Price | Mid-range: Free up to 10 contributors; Teams from $30 per contributor/month. Semgrep CE is LGPL-2.1. | Mid-range: Secret Protection $19 and Code Security $30 per active committer/month; free on public repos. |
| Headquarters | USA | USA |
| Free tier | Yes | No |
| Open source | Yes | No |
| Can be run for you | No | No |

## Coverage
| Building block | Semgrep | GitHub Advanced Security |
|---|---|---|
| App & code security | Core strength | Core strength |

## Pros and cons
### Semgrep
- Pro: Easy-to-write custom rules.
- Pro: Low noise and fast CI scans.
- Pro: Free for small teams; open-source engine.
- Con: Most value comes from tuning rules to your code.
- Con: Platform features are paid beyond small teams.

### GitHub Advanced Security
- Pro: No extra tool for developers to learn.
- Pro: Push protection blocks secrets before they are committed.
- Pro: Copilot Autofix suggests fixes.
- Con: Only for GitHub and Azure DevOps repositories.
- Con: Priced per active committer.

Full comparison: https://securitystackcompare.com/en/compare/semgrep-vs-github-advanced-security

---
Security Stack Compare scores declared capabilities (0–3 per building block, assuming each feature works as described). Published by Shielda, which is also listed. Methodology: https://securitystackcompare.com/en/about
