You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: bind no-mistakes attestations to PR head - #3027
Switch .github/workflows/no-mistakes-required.yml from its private inline PR-body gate to the shared kunchenguid/no-mistakes/.github/actions/require-no-mistakes composite action, pinned to the immutable commit 32d396ac0f29135daf7fcb9964aba9d5f4e796d6 rather than @main. The shared action's head_sha binding must ensure an attestation from any other commit cannot satisfy the required check, including failing on a missing head_sha, while preserving signature and attestation parsing, the no-mistakes version/parseability requirement, and review, test, and document completion requirements. Preserve Firstmate's existing pull_request triggers, concurrency behavior, and github-actions[bot] and dependabot[bot] exemptions as caller configuration only. Add a real executable regression that exercises the pinned shared action behavior for matching head_sha plus completed steps, mismatched head_sha with both SHAs in the failure, and missing head_sha; do not use YAML-source assertions. Keep the change limited to this consumer-side fix, follow firstmate coding guidelines, and never weaken an existing gate requirement.
What Changed
Replace the inline PR-body gate with the shared no-mistakes action pinned to an immutable commit.
Document commit-bound attestations, required completed steps, and the no-mistakes v1.46.0 minimum.
Risk Assessment
✅ Low: The change is narrowly scoped, preserves caller triggers, concurrency, and exemptions, and delegates to an immutable action that enforces signature, parseability, required-step completion, and head SHA binding.
Testing
Validated the workflow semantics and exercised the pinned shared verifier end-to-end with realistic pull-request event payloads; all required acceptance and rejection paths behaved correctly, with transcripts captured as reviewer-visible evidence.
ok - shared action accepts a matching head_sha with completed required steps
ok - shared action rejects a mismatched head_sha and names both SHAs
ok - shared action rejects an attestation with no head_sha
CASE matching event head + review/test/document completed: PASS (exit 0) expected exit 0 => OK
Found structurally compliant pipeline step attestation.
CASE stale attestation from another commit: REJECT (exit 1) expected exit 1 => OK
::error::Pipeline attestation head_sha does not match the current PR head.
attestation.head_sha: 1111111111111111111111111111111111111111
PR head: 2222222222222222222222222222222222222222
CASE attestation missing head_sha: REJECT (exit 1) expected exit 1 => OK
::error::This PR is missing structured pipeline step attestation.
This repository requires no-mistakes >= 1.46.0 (https://github.com/kunchenguid/no-mistakes/pull/670). Older no-mistakes that only writes the signature line is not enough.
CASE required document step skipped: REJECT (exit 1) expected exit 1 => OK
::error::Required no-mistakes pipeline steps are not completed: document (status=skipped).
This repository requires review, test, document to have status=completed. Quota skips and agent skips are not compliant.
CASE unparseable v1 attestation: REJECT (exit 1) expected exit 1 => OK
::error::This PR is missing structured pipeline step attestation.
This repository requires no-mistakes >= 1.46.0 (https://github.com/kunchenguid/no-mistakes/pull/670). Older no-mistakes that only writes the signature line is not enough.
CASE signature absent: REJECT (exit 1) expected exit 1 => OK
::error::This PR was not raised through no-mistakes.
OK - pull_request trigger contract preserved
OK - concurrency behavior preserved
OK - caller bot exemptions preserved
OK - shared action is immutable and caller supplies no weakening inputs
Pinned verify.py exercised through realistic GITHUB_EVENT_PATH payloads for matching, mismatched, missing head SHA, incomplete steps, malformed attestation, and missing signature
Ruby/Psych semantic workflow comparison against base commit for triggers, concurrency, bot exemptions, immutable action reference, and absence of weakening caller inputs
Intent
Switch .github/workflows/no-mistakes-required.yml from its private inline PR-body gate to the shared kunchenguid/no-mistakes/.github/actions/require-no-mistakes composite action, pinned to the immutable commit 32d396ac0f29135daf7fcb9964aba9d5f4e796d6 rather than @main. The shared action's head_sha binding must ensure an attestation from any other commit cannot satisfy the required check, including failing on a missing head_sha, while preserving signature and attestation parsing, the no-mistakes version/parseability requirement, and review, test, and document completion requirements. Preserve Firstmate's existing pull_request triggers, concurrency behavior, and github-actions[bot] and dependabot[bot] exemptions as caller configuration only. Add a real executable regression that exercises the pinned shared action behavior for matching head_sha plus completed steps, mismatched head_sha with both SHAs in the failure, and missing head_sha; do not use YAML-source assertions. Keep the change limited to this consumer-side fix, follow firstmate coding guidelines, and never weaken an existing gate requirement.
What Changed
head_shavalues.Risk Assessment
✅ Low: The change is narrowly scoped, preserves caller triggers, concurrency, and exemptions, and delegates to an immutable action that enforces signature, parseability, required-step completion, and head SHA binding.
Testing
Validated the workflow semantics and exercised the pinned shared verifier end-to-end with realistic pull-request event payloads; all required acceptance and rejection paths behaved correctly, with transcripts captured as reviewer-visible evidence.
Evidence: Shared action regression transcript
Source: Shared action regression transcript
Evidence: End-to-end pull-request event gate transcript
Source: End-to-end pull-request event gate transcript
Evidence: Workflow semantic contract verification
Source: Workflow semantic contract verification
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
/bin/bash tests/fm-no-mistakes-required.test.shPinnedverify.pyexercised through realisticGITHUB_EVENT_PATHpayloads for matching, mismatched, missing head SHA, incomplete steps, malformed attestation, and missing signatureRuby/Psych semantic workflow comparison against base commit for triggers, concurrency, bot exemptions, immutable action reference, and absence of weakening caller inputs✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.