Skip to content

ci(#1025): OpenSSF Scorecard workflow + README badge - #1041

Merged
admarble merged 1 commit into
mainfrom
feature/1025-ci-trust-openssf-scorecard-workflow-readme-badge-i
Sep 11, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/1025-ci-trust-openssf-scorecard-workflow-readme-badge-i

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/scorecard.yml: runs OpenSSF Scorecard on push to main and weekly (30 4 * * 1), permissions: read-all at workflow level with narrowed job permissions (security-events: write, id-token: write), and every action (actions/checkout, ossf/scorecard-action, actions/upload-artifact, github/codeql-action/upload-sarif) pinned by 40-hex commit SHA (resolved live via gh api, not from memory), matching the pinning convention already used in ci.yml.
  • Adds the OpenSSF Scorecard badge to README.md immediately after the CI badge (the single line this node owns per the README serialization plan — node 03's link line and node 07's section are untouched).
  • Adds one CHANGELOG.md bullet under [Unreleased] > ### Security (same heading docs+ci(trust): public threat model with OWASP agentic mapping, SECURITY.md, recurring injection eval, and supply-chain trust signals #980 used).

Scope

Per issue #1025: workflow file, one README badge line, one CHANGELOG bullet. No remediation of findings, no other workflow touched, no SECURITY.md/threat-model changes.

Pre-PR AC Verification

AC Description Status Evidence
AC-1 Workflow runs on push(main) + weekly schedule, scoped permissions, action pinned by 40-hex SHA; run concludes success ⚠️ Partial grep -c "ossf/scorecard-action@[0-9a-f]\{40\}" .github/workflows/scorecard.yml → 1 (verified). The "run concludes success" half is structurally post-merge — the workflow only triggers on push to main/schedule, so it cannot run inside this PR. Per the spec's plan (comment 2), this is an explicit stop-at-PR follow-up.
AC-2 README badge renders (resolves HTTP 200) 🔄 Deferred (post-merge) Badge line added; api.securityscorecards.dev returns 404 until the workflow's first publish_results: true run completes on main, which requires merge. Per spec open questions, a pre-first-run 404 is expected, not a bug.
AC-3 Initial score + top-3 remediations posted as an issue comment 🔄 Deferred (post-merge) Cannot be produced before the workflow has run once on main. Will be posted as a follow-up comment on #1025 after merge and first run, per the spec's plan step 5.

Why AC-1/2/3 aren't fully closed pre-merge: the spec (issue #1025 comment) calls this out explicitly — the run-success check and the score/remediation comment are structurally post-merge actions requiring a push to main, which cannot happen from inside an open PR. Stop-at-PR policy applies; a human merges and a follow-up comment records AC-3 once the workflow has executed.

Checks

  • npm run build: ✅ pass
  • npm run lint: ✅ pass
  • npm test: 3 pre-existing failures unrelated to this change (batch-executor.test.ts, relay-hook.integration.test.ts, prompt-wait.test.ts) — none touch .github/workflows/, README.md, or CHANGELOG.md. 6277 passed / 4 skipped otherwise.
  • No unit-testable code in this change (mechanical CI/docs tier per spec); testgen/security-review phases skipped as planned.

Pre-PR Confidence Check

  • Weakest part: The workflow's actual success conclusion (AC-1's second half) is unverified until it runs on main post-merge — YAML validated for syntax but not exercised in CI as part of this PR.
  • Coverage gaps: No test files — this is a workflow/docs-only change with no application code to unit test.

Test plan

  • After merge, confirm gh run list --workflow scorecard.yml --limit 1 --json conclusion --jq '.[0].conclusion' → success
  • After first run, confirm badge resolves 200: curl -sI "https://api.securityscorecards.dev/projects/github.com/sequant-io/sequant/badge"
  • Post initial score + top-3 remediations as a comment on ci(trust): OpenSSF Scorecard workflow + README badge; initial score recorded (#980 P1b) #1025

Closes #1025

Adds .github/workflows/scorecard.yml (push to main + weekly schedule,
scoped permissions, actions pinned by commit SHA) that runs the OpenSSF
Scorecard analysis, publishes results, and uploads the SARIF to code
scanning. Adds the Scorecard badge to README.md after the CI badge, and
a CHANGELOG entry under Unreleased > Security.

Findings are recorded, not remediated or gated on, per scope (#980 AC-5,
#1025). The initial score and top remediations will be posted as a
follow-up comment on the issue once the workflow has run on main.

Entire-Checkpoint: 46aecea0ce5c
@admarble
admarble merged commit 2d8f17a into main Sep 11, 2026
6 checks passed
@admarble
admarble deleted the feature/1025-ci-trust-openssf-scorecard-workflow-readme-badge-i branch September 11, 2026 01:38
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.

ci(trust): OpenSSF Scorecard workflow + README badge; initial score recorded (#980 P1b)

1 participant