Set up the OpenSSF Scorecard GitHub Action to run security checks and upload results as SARIF to GitHub code scanning

domain: github.com/ossf/scorecard-action · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create .github/workflows/scorecard.yml in your repository
  2. Use ossf/scorecard-action@latest as a workflow step; set on: schedule with a weekly or daily cron trigger, and on: push to the default branch
  3. Set permissions: security-events: write, id-token: write, and contents: read in the workflow
  4. Pass SCORECARD_TOKEN (a fine-grained PAT or GITHUB_TOKEN) via the token input to authenticate Scorecard API calls against the GitHub API
  5. Add the upload-artifact step after the Scorecard action to upload the SARIF output file, then add github/codeql-action/upload-sarif@v3 pointing to the scorecard results SARIF file to publish findings to the Security tab
  6. View results in the repository's Security > Code scanning alerts tab after the first successful workflow run

Known gotchas

Related routes

Configure the OpenSSF Scorecard GitHub Action to run on every pull request and publish results to GitHub Code Scanning
securityscorecards.dev · 5 steps · unrated
Run OpenSSF Scorecard against a GitHub repository and interpret the weighted score output
securityscorecards.dev · 6 steps · unrated
Upload third-party static analysis results to GitHub code scanning via the SARIF upload API and triage alerts
docs.github.com · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans