Skip to content

ci: [skip-release] analyze with CodeQL and attest the release archive - #43

Merged
rbstp merged 3 commits into
masterfrom
claude/openssf-scorecard-integration-8hw48u
Sep 17, 2026
Merged

rbstp merged 3 commits into
masterfrom
claude/openssf-scorecard-integration-8hw48u

Conversation

@rbstp

@rbstp rbstp commented Sep 17, 2026

Copy link
Copy Markdown
Owner

The first Scorecard run came back at 5.9 (run 35164653331). These are the two checks the repo can still move on its own; the rest of the zeros need either a second person or the calendar.

SAST: 0 → 7, then 10

There was no static analysis at all. CodeQL covers Swift, so .github/workflows/codeql.yml runs it on every pull request, on master for a baseline to compare those against, and weekly for queries that ship after the code stops changing.

The build sits between init and analyze because CodeQL extracts Swift by watching the compiler -- a build outside that window produces nothing. build-mode: manual rather than autobuild, so it runs the same swift build ci does instead of guessing at xcodebuild.

Scorecard weights a detected CodeQL workflow at 7 of 10; the last three points arrive as pull requests accumulate CodeQL check runs.

Signed-Releases: 0 → 8, ramping

Every archive was already signed with the Developer ID and notarized, and the check still scored 0: it reads release assets, and Apple's signature is inside the app where it cannot see it.

The release job now attests the archive after make dist repacks it with the stapled ticket, and ships the Sigstore bundle beside it as Heed-<version>.zip.sigstore.json. That is also the more useful of the two claims -- the Developer ID says who built it, the attestation says from which commit and which workflow run. gh attestation verify Heed-0.12.3.zip --repo rbstp/heed checks it, and the README says so.

The job gains id-token: write and attestations: write. Job-level writes cost nothing on Token-Permissions while the top level stays contents: read, so that check stays at 10.

slsa-github-generator would score 10 instead of 8, but it has to be referenced by version tag rather than commit; that one unpinned third-party uses would drop Pinned-Dependencies from 10 to about 6, which is a net loss.

Both checks read the last few releases, so they climb as releases ship rather than on the next scan.

Still zero, and why

  • Maintained is "repo created within the last 90 days". It flips on its own around 29 November -- the largest single item left, and free.
  • Code-Review and Branch-Protection (4) both need a second human. The branch-protection tiers are gated: nothing above the basic tier counts until master requires an approving review, and you cannot approve your own pull request.
  • Contributors (3) wants three companies in the last 30 commits.
  • Fuzzing has no Swift path Scorecard detects short of ClusterFuzzLite.
  • CII-Best-Practices is a questionnaire at bestpractices.dev: 2 for in progress, 5 for passing.

Ceiling without a second maintainer is roughly 7.9.

Worth watching on the first run

CodeQL's Swift analysis on the xcode-27 runner -- it should be fine, but this is the first time that runner pulls the CodeQL bundle.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L4DC49ZQ1Hhvt9tLcPsvyi


Generated by Claude Code

The two remaining Scorecard checks the repo can move on its own:

SAST scored 0 with no static analysis at all. CodeQL covers Swift, so it
now runs on every pull request, on master for a baseline to compare those
against, and weekly for queries that ship after the code stops changing.
It builds between init and analyze because CodeQL extracts Swift by
watching the compiler, and `manual` rather than autobuild so it runs the
same `swift build` ci does.

Signed-Releases scored 0 despite every archive being signed and notarized:
the check reads release assets, and Apple's signature is inside the app,
where it cannot see it. The release now attests the archive after `make
dist` repacks it with the stapled ticket, and ships the Sigstore bundle
next to it as Heed-<version>.zip.sigstore.json. That is also the more
useful claim of the two -- the Developer ID says who built it, the
attestation says from which commit and which workflow run. Both checks
read the last few releases, so they climb as releases ship rather than on
the next run.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01L4DC49ZQ1Hhvt9tLcPsvyi
Kept the three that stop someone breaking something silently -- the
publishing API's constraints on the scorecard workflow, why the build sits
between CodeQL's init and analyze, and that the release zip is final by the
time it is attested. The rest restated what the line below them already
said.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01L4DC49ZQ1Hhvt9tLcPsvyi
@rbstp
rbstp enabled auto-merge (squash) September 17, 2026 00:28
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@rbstp
rbstp merged commit d80ff74 into master Sep 17, 2026
2 checks passed
@rbstp
rbstp deleted the claude/openssf-scorecard-integration-8hw48u branch September 17, 2026 00: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.

3 participants