Skip to Content
agore-skill
How-to Guides

How to harden the OpenSSF posture

Work with the Scorecard, CodeQL, Dependabot and branch-protection controls — and the private-repo caveats.

You want to raise the repository's supply-chain security posture or act on its findings. Four mechanisms are already in place; this page is how to drive each one.

OpenSSF Scorecard

.github/workflows/scorecard.yml runs Scorecard weekly (Monday 04:40 UTC cron), on pushes to main, on branch_protection_rule changes, and on dispatch. It writes results.sarif, uploads it as an artifact, and publishes it to code scanning.

Private-repo caveat: publish_results is false because the repository is private — results must not go to the public OpenSSF API. When the repository goes public: set publish_results: true, re-run the workflow so the badge and api.securityscorecards.dev entry populate, and register the project at bestpractices.dev to link the Best Practices badge.

To raise the score: check the SARIF findings in the Security tab; typical levers are pinned actions (already done — every action pins a commit SHA), provenance (already done for releases via cosign), and branch protection.

CodeQL

.github/workflows/codeql.yml analyzes Go and javascript-typescript (the docs site) on every push/PR to main, plus a weekly cron (Monday 03:24 UTC). The Go leg builds go build ./... first. Treat new alerts as blocking for the change that introduced them.

Dependency review

.github/workflows/dependency-review.yml runs on every PR to main, comments a summary of dependency changes, and fails on high-severity vulnerabilities.

Dependabot

.github/dependabot.yml keeps three ecosystems current, all weekly on Mondays (staggered 06:00/06:15/06:30 UTC), max 5 open PRs each, minor and patch updates grouped:

  • gomod (root) — label go
  • npm (docs/) — the docs site
  • github-actions (root) — workflow action updates

Commit prefixes: chore(deps) for packages, chore(ci) for actions. Let the groups land as single PRs; review the release notes for majors.

Vulnerability scanning in CI

The CI security job runs govulncheck ./... with the pinned toolchain — this is why mise pins Go to the newest patched 1.26 release (1.26.11) despite the module's go 1.25.0 floor: reachable stdlib findings stay at zero.

Branch protection

The pull-request path (branch protection on main) is what closes most Scorecard checks. Keep it requiring: PR review, the go, quality, lint, security and docs checks green, and up-to-date branches.

On this page