Skip to content

An OpenSSF Scorecard workflow publishes the repository's score, and the README shows it with a CI badge - #652

Merged
zlareb1 merged 8 commits into
mainfrom
ci/openssf-scorecard
Nov 13, 2026
Merged

zlareb1 merged 8 commits into
mainfrom
ci/openssf-scorecard

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

The repository runs the OpenSSF Scorecard checks and publishes the score. The README shows it next to a CI badge for main.

Why

The Scorecard score is a trust signal that people, package directories and agents read when they judge an open-source project. It checks practices such as pinned actions, least-privilege tokens, signed releases and branch protection. The score makes Loom's practices visible, and its findings go to code scanning beside CodeQL's. Some checks may score low with the default token; Branch-Protection may not be able to read the repository's rulesets. The first run on main will show which checks score low.

Scope and risk

  • .github/workflows/scorecard.yml is new. It runs on pushes to main, weekly and on demand, never on pull requests. It has no branch_protection_rule trigger: main is protected by rulesets, which that event does not cover. A newer run on the same ref cancels an older one.
    • The workflow and the job grant contents: read. The job adds only security-events: write, to upload the SARIF, and id-token: write, the OIDC token publishing needs.
    • Every action is pinned by commit SHA. Checkout and codeql-action/upload-sarif use the SHAs the other workflows already pin. ossf/scorecard-action is v2.5.0 (fa7117db8…, the commit its annotated tag points to).
  • README.md gets two badges in the header.
    • The CI badge shows the state of ci.yml push runs on main, so a fork's pull request from its own main does not change it.
    • The Scorecard badge shows a score after this workflow's first run on main publishes one. Until then it shows no score.
  • docs/development/testing.md describes the workflow beside CodeQL's.
  • The translated READMEs pick up the badges when the i18n workflow regenerates them after the merge.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none. The first push to main runs it.
  • Rollback: revert. The last published score stays on scorecard.dev and no longer updates.

Tests

  • actionlint on the new workflow: clean.
  • pytest tests/unit/test_published_links.py tests/unit/test_public_copy.py tests/unit/test_doc_links.py tests/unit/test_i18n.py tests/unit/test_agent_instructions.py: 508 passed.
  • Prettier and check_prose.py: clean.
  • The CI badge URL answers 200.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. The workflow follows Scorecard's own analysis workflow. The action SHAs were resolved from the tags.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

zlareb1 and others added 8 commits November 13, 2026 21:43
…he README shows it with a CI badge

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…der names the manual run

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ter header

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…sets), say why runs cancel, no unused SARIF artifact

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 merged commit 78053ee into main Nov 13, 2026
44 checks passed
@zlareb1
zlareb1 deleted the ci/openssf-scorecard branch November 13, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant