Repository navigation
ci: [skip-release] analyze with CodeQL and attest the release archive - #43
Merged
Merged
Conversation
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
enabled auto-merge (squash)
September 17, 2026 00:28
|
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:
For more information about GitHub Code Scanning, check out the documentation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ymlruns it on every pull request, onmasterfor a baseline to compare those against, and weekly for queries that ship after the code stops changing.The build sits between
initandanalyzebecause CodeQL extracts Swift by watching the compiler -- a build outside that window produces nothing.build-mode: manualrather than autobuild, so it runs the sameswift buildci 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 distrepacks it with the stapled ticket, and ships the Sigstore bundle beside it asHeed-<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/heedchecks it, and the README says so.The job gains
id-token: writeandattestations: write. Job-level writes cost nothing on Token-Permissions while the top level stayscontents: read, so that check stays at 10.slsa-github-generatorwould score 10 instead of 8, but it has to be referenced by version tag rather than commit; that one unpinned third-partyuseswould 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
masterrequires an approving review, and you cannot approve your own pull request.Ceiling without a second maintainer is roughly 7.9.
Worth watching on the first run
CodeQL's Swift analysis on the
xcode-27runner -- 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