Repository navigation
fix(ci): verify the sealer copy before the implement lane runs it - #16705
Conversation
The run job copies the output sealer and its public key from the base before the head checkout. The copy step now records each file's SHA-256, and a new step between the carry and the seal checks the copy in .lane-seal against those hashes, failing with an error annotation and skipping the seal step on any mismatch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #16705, verify the sealer copy before the seal step runs itNo security issues found. I read the whole change in both files: What the change does. The copy step (now Trust-control check.
Residual risk, not counted as a finding. Head code runs in the same job, so a background process it started could still rewrite Other notes.
critical-findings: 0 |
|
claude-review reviewed Code review: no findingsThis PR hardens the What I checked (by reading the code; I ran nothing):
The author says the test suites pass and that actionlint and zizmor report nothing. I did not verify either claim. Not covered here. Whether a process left behind by head code could change Closing issue: none (the PR says it is hardening found during a workflow review), so there are no acceptance criteria to check. Spend: none beyond an existing CI job that now runs one extra short shell step. Verifier dropped 0 of 0 candidates. |
No related issue: hardening found during a workflow review
Summary
The run job in
pr-run-activity-read.ymlcopies the output sealer (action.yml,seal.mjs) and the scan-carrier public key from the base before the head checkout, then runs that copy withuses: ./.lane-seal. This PR verifies the integrity of that copy before it is used, the same way the job already checks its act-turns and merge-base script copies.Fix
id: seal-copy) records the SHA-256 of each of the three files as step outputs, before the head checkout.seal-check, sits between the carry step and the seal step. It checks each file in.lane-sealis a regular file whose SHA-256 matches the recorded value; on an empty hash, a missing or non-regular file, or a mismatch it emits an::error::annotation and fails.steps.seal-check.outcome == 'success', so it does not run on a failed check. The step comments now say the copy is verified before use.Verification
node --test --test-concurrency=4oncallers.test.mjs,seal.test.mjs,open.test.mjs,log-api-budget.test.mjs,credential-legs.test.mjsandlane-transcripts/pull.test.mjs: 425 pass, 0 fail. The new test pins the step order (copy before the head checkout; carry, check, seal adjacent), theifexpressions, and that each hash the check reads is one the copy step writes; it runs the copy step on a base, then the check on a clean copy (passes) and on each file rewritten, removed or replaced by a link, and on each empty hash (each fails with an error annotation).actionlinton the workflow: no findings.zizmor --offlineon the workflow: no findings..githubsuite (CI runs it).Related
N/A
🤖 Generated with Claude Code