Repository navigation
test(validate-submission): accept a real build-module attestation from main - #59
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughThe change adds a SLSA provenance attestation fixture for a build-module ZIP. A test checks that ChangesBuild-module provenance validation
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Merge Risk: ⚪ Minimal · up to This adds regression coverage for a main-branch build attestation without changing runtime validation behavior. No actionable merge-blocking risk is apparent. Pre-merge checks |
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed the full PR: a test-only addition of the main-ref accept path for provenanceFrom, backed by a real build-module attestation fixture.
- New fixture
scripts/fixtures/attestation-build-module-main.json— a realgh attestation verify --format jsonresult signed byspicetify/actions/.github/workflows/build-module.yml@refs/heads/main, source commit91b890c761e773236bed6cb3ab78da223b83e523, digestsha256:6889aebe…aa21, run 37997562109. - New test
scripts/validate-submission.test.mts:91— assertsprovenanceFrom(released, releasedZip, "spicetify/actions")returns a provenance carrying the expectedcommit,ref, andrun, complementing the existing refusal fixtures (PR-ref builder, foreign signer).
The fixture digest matches the test's releasedZip, and every field lines up with the checks in provenanceFrom (source repository, buildSignerURI prefix plus refs/heads/main, github-hosted runner, 40-hex commit). Verified locally: node --test scripts/validate-submission.test.mts → 32 pass, pnpm fmt:check clean. The tsc errors in modules/stdlib/src/registers/* are pre-existing and untouched by this diff.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

Summary
Adds the accept-path test for attestation verification, using a real attestation: spicetify/actions
build-modulebuilding its fixture module onmain(run 37997562109).provenanceFrommust verify it and report the source commit, ref, and run. The existing fixtures already cover refusals (a pull request ref of the builder, and a different signing workflow).Validation
node --test scripts/validate-submission.test.mts: 32 passed.pnpm fmt:checkandpnpm checkpass.verifyWithGhwas run against the real zip from that run and returned the same provenance (spicetify/actions@91b890c).Summary by CodeRabbit