Repository navigation
Releases
v2.6.0
This release moves the action to Scorecard v5.7.0, built with Go 1.27.4. For changes to checks and results, and the security fixes in this Scorecard release, see the Scorecard v5.7.0 release notes.
Getting started
This is the first release with ready-to-use workflows in this repository. To add Scorecard to a repository, copy one
into .github/workflows/scorecard.yml:
examples/scorecard.ymlfor public repositories. It publishes results to the Scorecard API, which enables the badge and the REST API, and fails the step if the API rejects them.examples/scorecard-private.ymlfor private repositories. It doesn't publish.
Both pin every action to a full commit SHA, set cache-mode: none, and upload results even when an earlier step fails.
CI lints them with zizmor, actionlint and yamllint. If your linter reports cache-mode as unknown, see Workflow Linters.
Copy the examples from main, which pins this release. A tagged commit can't pin its own SHA, so the copies at the v2.6.0 tag still name v2.5.0.
To add the workflow to many repositories at once, the installer opens a pull request in each one.
See docs/installer.md.
What's Changed
- New
fail_on_publish_errorinput (defaultfalse): when set, the step fails if the Scorecard API rejects the results. Network errors and HTTP 408, 429 and 5xx stay warnings. New outputsresults_publishedandpublication_statusreport whether publishing worked, and the job summary says so. A rejected (4xx) publish is now sent once instead of three times, and the publish error and warning show as annotations. by @justaugustus in #1721 - Example workflows for public and private repositories in
examples/, with every action pinned to a full SHA. by @justaugustus in #1722 - The examples set
cache-mode: noneand upload results even when an earlier step fails. The README's new Workflow Linters section lists which linter versions recognizecache-mode. by @justaugustus in #1727 - The installer (
cmd/installer) adds the generated example workflow with the repository's default branch, and no longer needs a starter-workflows checkout. Usage is indocs/installer.md. by @justaugustus in #1728
Other
- Point getting started at the v2.6.0 example workflows by @justaugustus in #1750
- Lint the example workflows in CI by @justaugustus in #1724
- Move CI to golangci-lint v2 by @justaugustus in #1725
- Read
publish_resultsinto the options struct by @arpitjain099 in #1731 - Bump Scorecard to main ahead of v5.7.0 by @justaugustus in #1744
- Bump Scorecard to v5.7.0 by @justaugustus in #1746
Full Changelog: v2.5.0...v2.6.0
v2.5.0
What's Changed
This release moves the action to Scorecard v5.6.0, the first Scorecard release since its hosted
services moved to new infrastructure.
For changes to checks and results, and what the infrastructure move means for you, see the
Scorecard v5.6.0 release notes.
- The action's container image is built with Go 1.27.2 on a refreshed distroless base. by
@justaugustus in #1716 - The installer (
cmd/installer) now creates.github/workflows/scorecard.yml, and still
recognizes existingscorecards.ymlandscorecards-analysis.ymlworkflows. by @justaugustus in #1716 - The Scorecard version in results now always matches the Scorecard release the action is built
with. by @justaugustus in #1718 - The action no longer prints the GitHub token variable while validating its options. by
@arpitjain099 in #1709 results_formatacceptsintoto, which wraps the JSON results in an in-toto attestation
statement. by @puerco in #1702
Other
- Add a daily canary against Scorecard main by @justaugustus in #1711
- Bump Scorecard to the v5.6.0 candidate and fix the canary toolchain by @justaugustus in #1714
- Run Scorecard on every merge, add a zizmor presubmit, analyze workflows with CodeQL, and update
RELEASE.md by @justaugustus in #1716 - Bump Scorecard to v5.6.0 by @justaugustus in #1719
New Contributors
- @arpitjain099 made their first contribution in #1709
- @puerco made their first contribution in #1702
Full Changelog: v2.4.4...v2.5.0
v2.4.4
What's Changed
This update bumps the Scorecard version to the v5.5.0 release. For a complete list of changes, please refer to the Scorecard v5.4.0 release notes and the Scorecard v5.5.0 release notes.
- log POST failures instead of failing entire action by @spencerschrock in #1625
Full Changelog: v2.4.3...v2.4.4
v2.4.3
What's Changed
This update bumps the Scorecard version to the v5.3.0 release. For a complete list of changes, please refer to the Scorecard v5.3.0 release notes.
Documentation
- docs: clarify
GITHUB_TOKENpermissions needed for private repos by @pankajtaneja5 in #1574 - 📖 Fix recommended command to test the image in development by @deivid-rodriguez in #1583
Other
- add missing top-level token permissions to workflows by @timothyklee in #1566
- setup codeowners for requesting reviews by @spencerschrock in #1576
- 🌱 Improve printing options by @deivid-rodriguez in #1584
New Contributors
- @timothyklee made their first contribution in #1566
- @pankajtaneja5 made their first contribution in #1574
- @deivid-rodriguez made their first contribution in #1584
Full Changelog: v2.4.2...v2.4.3
v2.4.2
What's Changed
This update bumps the Scorecard version to the v5.2.1 release. For a complete list of changes, please refer to the Scorecard v5.2.0 and v5.2.1 release notes.
Full Changelog: v2.4.1...v2.4.2
v2.4.1
What's Changed
- This update bumps the Scorecard version to the v5.1.1 release. For a complete list of changes, please refer to the v5.1.0 and v5.1.1 release notes.
- Publishing results now uses half the API quota as before. The exact savings depends on the repository in question.
- use Scorecard library entrypoint instead of Cobra hooking by @spencerschrock in #1423
- Some errors were made into annotations to make them more visible
- There is now an optional
file_modeinput which controls how repository files are fetched from GitHub. The default isarchive, butgitproduces the most accurate results for repositories with.gitattributesfiles at the cost of analysis speed.- add input for specifying
--file-modeby @spencerschrock in #1509
- add input for specifying
- The underlying container for the action is now hosted on GitHub Container Registry. There should be no functional changes.
- 🌱 publish docker images to GitHub Container Registry by @spencerschrock in #1453
Docs
- Installation docs update by @JeremiahAHoward in #1416
New Contributors
- @JeremiahAHoward made their first contribution in #1416
- @jsoref made their first contribution in #1459
Full Changelog: v2.4.0...v2.4.1
v2.4.0
What's Changed
This update bumps the Scorecard version to the v5 release. For a complete list of changes, please refer to the v5.0.0 release notes. Of special note to Scorecard Action is the Maintainer Annotation feature, which can be used to suppress some Code Scanning false positives. Alerts will not be generated for any Scorecard Check with an annotation.
- 🌱 Bump github.com/ossf/scorecard/v5 from v5.0.0-rc2 to v5.0.0 by @spencerschrock in #1410
- 🐛 lower license sarif alert threshold to 9 by @spencerschrock in #1411
Documentation
- docs: dogfooding badge by @jkowalleck in #1399
New Contributors
- @jkowalleck made their first contribution in #1399
Full Changelog: v2.3.3...v2.4.0
v2.3.3
Note
There is no v2.3.2 release as a step was skipped in the release process. This was fixed and re-released under the v2.3.3 tag
What's Changed
- 🌱 Bump github.com/ossf/scorecard/v4 (v4.13.1) to github.com/ossf/scorecard/v5 (v5.0.0-rc1) by @spencerschrock in #1366
- 🌱 Bump github.com/ossf/scorecard/v5 from v5.0.0-rc1 to v5.0.0-rc2 by @spencerschrock in #1374
- 🌱 Bump github.com/ossf/scorecard/v5 from v5.0.0-rc2 to v5.0.0-rc2.0.20240509182734-7ce860946928 by @spencerschrock in #1377
For a full changelist of what these include, see the v5.0.0-rc1 and v5.0.0-rc2 release notes.
Documentation
- 📖 Move token discussion out of main README. by @spencerschrock in #1279
- 📖 link to
ossf/scorecardworkflow instead of maintaining an example by @spencerschrock in #1352 - 📖 update api links to new scorecard.dev site by @spencerschrock in #1376
Full Changelog: v2.3.1...v2.3.3
v2.3.1
What's Changed
- 🌱 Bump github.com/ossf/scorecard/v4 from v4.13.0 to v4.13.1 by @spencerschrock in #1282
- Adds additional Fuzzing detection and fixes a SAST bug related to detecting CodeQL. For a full changelist of what this includes, see the v4.13.1 release notes
Full Changelog: v2.3.0...v2.3.1
v2.3.0
What's Changed
- 🌱 Bump github.com/ossf/scorecard/v4 from v4.11.0 to v4.13.0 by @spencerschrock in #1270
- ✨ Send rekor tlog index to webapp when publishing results by @spencerschrock in #1169
- 🐛 Prevent url clipping for GHES instances by @rajbos in #1225
Documentation
- 📖 Update access rights needed to see the results in code scanning by @rajbos in #1229
- 📖 Add package comments. by @spencerschrock in #1221
- 📖 Add SECURITY.md file by @david-a-wheeler in #1250
- 📖 Fix typo in token input docs by @aabouzaid in #1258
New Contributors
- @david-a-wheeler made their first contribution in #1250
- @aabouzaid made their first contribution in #1258
Full Changelog: v2.2.0...v2.3.0