Security health metrics for open source
open sourceApache-2.0self-hostablefreeMCP
OpenSSF Scorecard is an OpenSSF project that rates the security practices of an open source repository: 19 automated checks (branch protection, code review, signed releases, pinned dependencies, token permissions, dangerous GitHub Actions workflows, fuzzing, SAST, a security policy, known vulnerabilities from OSV, whether it's still maintained) each score 0 to 10, with an aggregate score. Maintainers run it as a GitHub Action that reports to the repository's Security tab and can publish a README badge; consumers run the CLI against any GitHub, GitLab or GitHub Enterprise repository (or an npm, PyPI, RubyGems or NuGet package's repository), or query precomputed results for more than 1.3 million repositories scanned weekly through the free REST API at api.scorecard.dev. scorecard mcp serves those published results to AI agents. Results are heuristics, and its own README says they're not a definitive verdict.
Ways to install
Package managers
Problems it solves
- check whether an open source dependency follows basic security practices before we adopt it
- score a GitHub repository on branch protection, code review, signed releases and pinned dependencies
- find out if an open source project is still actively maintained before depending on it
- add a security score badge to my open source project's README
- get warnings in the GitHub Security tab when our workflows use dangerous patterns or write-all tokens
- a free API with precomputed security health scores for over a million open source repositories
- check whether a library has known unfixed vulnerabilities using OSV data
- assess the security posture of GitLab projects or GitHub Enterprise repositories from the command line
- let my AI coding agent check a dependency's security health score before it adds the package
- compare the security practices of several candidate libraries side by side
- run security health checks on an npm, PyPI, RubyGems or NuGet package by its name
- measure our own repos against a supply chain security baseline in CI
Features
- checks: Binary-Artifacts, Branch-Protection, CI-Tests, CII-Best-Practices, Code-Review, Contributors
- checks: Dangerous-Workflow, Dependency-Update-Tool, Fuzzing, License, Maintained, Pinned-Dependencies, Packaging
- checks: SAST, Security-Policy, Signed-Releases, Token-Permissions, Vulnerabilities (OSV), Webhooks (experimental)
- 0-10 score per check plus an aggregate score; structured results and probes (v5)
- GitHub Action that reports to the Security tab and publishes results
- REST API with precomputed results from a weekly scan of 1.3 million+ repositories
- README badges
- CLI for GitHub, GitLab (including self-hosted) and GitHub Enterprise Server
- package flags (--npm, --pypi, --rubygems, --nuget) to find a package's repository
- scorecard mcp: read-only MCP tools get_repo_score, get_check_result, compare_repos, list_checks, explain_check
View 1 more
- web viewer at scorecard.dev
Limitations
- No public BigQuery dataset any more: precomputed results are available through the REST API only3
- Doesn't officially support Windows: the CLI supports macOS and Linux, and Windows users may have issues3
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
Alternatives
The same job
These do what OpenSSF Scorecard does.
- Socket Software supply chain security that catches malicious and risky dependencies