Written and maintained by CASRAI Editorial Board
Published
On this page
OpenSSF Scorecard is an automated tool that checks open source repositories for security practices and assigns individual scores from 0 to 10. Researchers can use it to examine a software dependency or improve a repository they maintain. Read the individual findings, their evidence and the scan context before drawing conclusions from the aggregate score.
What it is used for in research
Scorecard helps maintainers identify security practices to improve and helps software consumers investigate dependencies. Its checks examine signals such as human review of changes, branch protection, workflow permissions, dependency updates and vulnerability reporting. For a research software team, these are questions about the software supply chain: who can change the code, what controls surround those changes and what evidence a dependency exposes.
This belongs within the broader work of software engineering for research. A repository security assessment addresses a different question from whether an algorithm implements the intended scientific method. The project’s own non-goals explicitly reject a definitive, universal requirement for every repository: checks are opinionated heuristics, with false positives and false negatives. Treat a result as evidence for review rather than certification of scientific correctness or freedom from vulnerabilities.
The useful unit of review is a finding with its explanation. A dependency update tool may be detected, for example, without establishing whether anyone merges the updates it proposes. A release signature file may be present without Scorecard verifying the signature. These distinctions make a review record more informative than a badge alone. The walkthrough below separates finding the result, understanding its coverage and recording a defensible interpretation.
Install or access
Choose between reading an existing result and running a scan. The official Scorecard web viewer displays published results for a repository. Replace the repository portion of that URL with the project you want to inspect. The official documentation also gives GitLab examples. A project absent from the viewer can still be examined through the CLI; absence from the published collection is not a security finding.
For a local installation, the Scorecard README installation section lists standalone release downloads, a container and package manager options. Its Homebrew command is:
brew install scorecard
Alternatively, obtain the appropriate standalone archive from the project’s official release page. The README also documents release provenance verification. Keep the selected scanner version with your review record, especially when comparing results over time: the project explains that changes to heuristics can change scores.
The CLI documentation supports authentication through a GitHub personal access token or a GitHub App installation. It recommends the public_repo scope for a classic personal access token and recognizes GITHUB_AUTH_TOKEN, GITHUB_TOKEN, GH_AUTH_TOKEN and GH_TOKEN. Configure the appropriate variable using your usual secret management method; the commands below assume authentication is already configured. Unauthenticated GitHub API requests have more restrictive rate limits.
For a repository you maintain, the official Scorecard GitHub Action provides recurring analysis and integration with code scanning. Its current instructions recommend the workflow’s default GITHUB_TOKEN. Additional permission requirements depend on the repository and protection mechanism. The Action and CLI are separate execution routes, so their support limitations should not be assumed identical.
Step-by-step task
Use this sequence to inspect a GitHub-hosted dependency and retain the evidence behind your interpretation. The repository below is an official documentation example, not a claim about the security of your own project.
- Identify the repository. Confirm the source repository you intend to assess. Scorecard’s package ecosystem flags resolve a package to its corresponding GitHub source repository; they do not change the checks into an assessment of the particular environment where you installed that package. Use the repository identity deliberately.
- Run a baseline scan. With the installed binary available, the README’s repository example is
scorecard --repo=github.com/ossf-tests/scorecard-check-branch-protection-e2e. Substitute the repository you actually want to inspect. This produces an aggregate result and individual check findings. - Inspect a specific finding. The documented detailed example is
./scorecard --repo=github.com/ossf-tests/scorecard-check-branch-protection-e2e --checks Branch-Protection --show-details. Here./scorecarddenotes a standalone binary in the current directory; with a package manager installation, invokescorecardfrom your path. Preserve the check name exactly. The details explain which settings were observed, rather than leaving you with only the number. - Read the linked check documentation. Follow the finding’s documentation link for its scoring criteria, detection limits and remediation. For Branch-Protection, distinguish repository settings the credential can read from settings that need additional access. For Code-Review, investigate the human review evidence rather than equating automated comments with review.
- Retain machine-readable output. The CLI supports
--format=json. For example,scorecard --repo=github.com/ossf/scorecard --format=jsoncombines the documented repository and format flags. Save the output with the review record and note whether you ran all checks or selected checks. Do not substitute a screenshot of the aggregate for the underlying findings. - Record the decision separately. As an editorial recommendation, note the dependency’s role, the findings requiring follow-up and who will resolve them. The tool reports repository evidence; the research team owns the decision about its intended use. Record a follow-up question when a control is outside the scanner’s visibility.
Set up recurring analysis for a maintained repository
The Action README describes this interface path: open the repository’s Security tab, select Code scanning, then choose Add tool or Configure scanning tool. In the latter route, use Explore workflows under Other tools. Find OSSF Scorecard, select Configure and commit the generated workflow. Use the maintained official workflow example when adapting the configuration.
The documented supported triggers are push and schedule, with scheduled runs on the default branch. The Action describes pull_request and workflow_dispatch as experimental. Results for code scanning use SARIF. Publishing results for the public API and badge requires publish_results: true and the job’s id-token: write permission; the publishing workflow also has integrity restrictions. Decide deliberately whether public result publication is appropriate for your repository.
Output and how to read it
Start with the individual check name, score, reason and available details. The aggregate is a risk-weighted average, so a higher number alone does not identify which controls were observed. Different sets of findings can produce the same aggregate. The project’s README also warns that scores can change as its heuristics evolve.
The published result schema distinguishes the repository’s commit from the scanner’s commit. It includes date, repo.name, repo.commit, scorecard.version, scorecard.commit, score and a checks array. Each check can carry its name, score, reason, documentation and details. Keep these distinctions in a saved record: the version identifies the analysis tool, while the repository commit identifies what it analyzed.
Coverage also depends on the route. The current README says the weekly public scans omit CI-Tests, Contributors and Dependency-Update-Tool because of API costs. An omitted check is not a failed check. Compare the actual check lists before interpreting differences between a hosted result and a local run. The access-mode data table below brings together these coverage and output differences.
Worked example: turn findings into review questions
Illustrative composite: a researcher is reviewing an analysis library whose report detects an update tool and release signature files, while a Code-Review finding needs investigation. These are hypothetical findings, not measurements of a named package.
For the update tool, record that an integration was detected, then ask whether proposed updates are actually reviewed and merged. The check documentation explicitly says detection does not establish that the tool runs or its pull requests are merged. For signed releases, record the detected assets separately from any independent signature verification: Scorecard does not verify those signatures.
For human code review in research software, examine what evidence supported the finding. The documentation excludes bot review, including AI review, from the human review criterion. It also recognizes practical constraints in projects with few active participants. Describe the observed practice and the unresolved question without inventing a universal score cutoff or labelling the dependency acceptable solely because its aggregate is high.
As a recordkeeping recommendation, preserve the scan output alongside the software version information used in the analysis. If you archive a release or accompanying research materials, distinguish that deposit from the changing upstream repository; the Zenodo research repository guide explains that separate preservation context. A future viewer result can change, so it should not replace the particular evidence considered at review time.
Troubleshooting
The CLI encounters authentication or rate-limit problems. Check which supported token variable is configured and whether the credential remains valid. The README documents personal access tokens and GitHub App installations as authentication routes. For Action failures, inspect the workflow logs in the Actions tab rather than assuming that no displayed alert means the scan completed.
Branch protection appears incompletely assessed. The Action documentation distinguishes classic Branch Protection settings, which can need extra permissions, from Repository Rules accessible to its default token. The check documentation similarly identifies visibility limits. Establish the authentication context and inspect details before changing protection settings merely to raise a score.
A scan succeeds but the badge or API result does not update. The Action README says to inspect the job summary and annotations for a publication rejection. Public result publication is separate from analysis. The API enforces workflow restrictions, including an approved list of actions and restrictions on the analysis job; arbitrary run steps are not permitted in that job when publishing. Consult those requirements before modifying the workflow.
A result appears missing or incomparable. The viewer displays published data, and public scans have different coverage from some local runs. Check the date, repository identity, scanner version and check names first. The README states that the former public BigQuery dataset is no longer available and directs users to REST results. Avoid building a new review process around old BigQuery examples.
The chosen execution route is unsupported. The Action README excludes fork repositories and GitHub Enterprise repositories. The CLI README separately documents GitHub Enterprise Server and GitLab configurations. Follow the documentation for the route you are using; changing the host in an Action example does not establish support.
Free alternatives
These open source tools and community services address related review tasks. Their evidence differs from Scorecard’s repository practice checks. Choose the task first, and retain the distinction between automated findings and a project’s own explanations.
| Option | Documented task | Difference in evidence | Official source |
|---|---|---|---|
| OSV-Scanner | Find known vulnerabilities affecting dependencies, using the OSV database and supported dependency files or artifacts. | Connects dependency information with vulnerability records rather than summarizing repository security practices. | Google OSV-Scanner README |
| OpenSSF Best Practices Badge | Explain how an open source project meets a published set of best practices through voluntary self-certification. | Includes project-supplied answers and some automated assistance; a badge is distinct from a Scorecard numeric result. | OpenSSF Best Practices Badge |
The distinction matters when assigning work. Investigating vulnerable dependencies, documenting project practices and examining repository controls produce different records. They can complement one another without being interchangeable. Scorecard itself includes a check for the Best Practices Badge, which further illustrates that the two mechanisms have separate roles.
Sources
- OpenSSF Scorecard README: goals, installation, authentication, CLI, public data and scoring. Checked 2026-11-16.
- OpenSSF Scorecard check documentation: criteria, limitations and remediation. Checked 2026-11-16.
- Official Scorecard GitHub Action README: setup, outputs and workflow restrictions. Checked 2026-11-16.
- OpenSSF Scorecard REST API schema. Checked 2026-11-16.
- Google OSV-Scanner README. Checked 2026-11-16.
- OpenSSF Best Practices Badge overview. Checked 2026-11-16.
Data: OpenSSF Scorecard access modes and evidence coverage
Original comparison compiled from the official Scorecard README, Action README and REST API schema. It distinguishes previously published results from new scans, authentication context, output forms and documented coverage limitations. It reports access modes, not measurements of repository security.
| Access mode | Analysis source | Authentication context | Output or record | Documented limitation | Source URL |
|---|---|---|---|---|---|
| Web viewer | Previously published repository result | View a published result | Repository score and individual check results | Use CLI for repositories absent from the viewer | https://github.com/ossf/scorecard |
| Command line | New scan of the selected repository | GitHub personal access token or GitHub App installation | Text or JSON; optional detailed findings | Visibility of some branch protection settings depends on token permissions | https://github.com/ossf/scorecard |
| GitHub Action | Workflow-triggered repository analysis | Default GITHUB_TOKEN recommended; public publishing requires id-token: write | JSON, SARIF or intoto results; code scanning uses SARIF | Fork repositories and GitHub Enterprise repositories unsupported by Action | https://github.com/ossf/scorecard-action |
| REST API | Previously published repository result | Read published results through GET | Date, repository commit, scanner version, score and check findings | Weekly public scans omit CI-Tests, Contributors and Dependency-Update-Tool | https://github.com/ossf/scorecard; https://api.scorecard.dev/swagger.json |
Sources
- OpenSSF Scorecard README (accessed 2026-11-16)
- Official Scorecard GitHub Action README (accessed 2026-11-16)
- OpenSSF Scorecard API schema (accessed 2026-11-16)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







