Repository navigation
Conversation
nc9
marked this pull request as ready for review
November 13, 2026 02:51
….ps1 and self update #169 Signed-off-by: Nik Cubrilovic <[email protected]>
…to github.com #169 gh probes get 15s and verify 120s in install.sh, install.ps1 and the CLI. A probe timeout is a skip with a warning, a verify timeout fails closed. self update prints the verified line, and the docs section moves below the GitHub-blocked body. Signed-off-by: Nik Cubrilovic <[email protected]>
…elf-hosted runners #169 --repo alone accepts attestations from any workflow on any branch. Add --cert-identity for release.yml@refs/heads/main and --deny-self-hosted-runners in install.sh, install.ps1 and the CLI, and in the manual command in docs/quickstart.mdx. Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
r3/release-attestation-169
branch
from
November 13, 2026 04:39
aedbe0d to
dfe1fb0
Compare
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.
Soft-verify per maintainer decision A5. Part of #164. Closes #169.
What
install.sh,install.ps1,squirrel self update: after the sha256 check, whenghis present, new enough and logged in, rungh attestation verify <file> --repo squirrelscan/squirrelscan. A mismatch fails, nothing is installed or run.ghabsent, too old, or not logged in: visible warning, sha256 alone decides. (A logged-out gh cannot verify, so it counts as absent, never as a pass.)release-assets/*(binaries and manifest.json) withactions/attest-build-provenance, so no workflow change.Acceptance criteria
.github/workflows/release.ymlgithub-release job (existing, subject-pathrelease-assets/*).scripts/install-attestation-169.test.ts(match, mismatch, not logged in, too old, gh absent),apps/cli/tests/self/attestation.test.ts(7 tests incl. absent gh on an empty PATH),updater.test.ts"a mismatching attestation fails the auto-update before anything is installed".Test-ReleaseAttestationwith match, mismatch, not-logged-in, too-old and absent checks inscripts/install-ps-contract.test.ps1. pwsh is not available in the authoring sandbox, so these were NOT run locally; CI's installer job runs them.Review fixes (lead review)
--helpandauth status, 120s for verify. install.sh usestimeout/gtimeout, else a background process with a kill watchdog (macOS). install.ps1 usesStart-Process -PassThruwith redirected output,WaitForExit(ms), thenKill.SQUIRREL_TEST_GH_TIMEOUT_SECSoverrides the deadlines as a test seam only.gh attestation verify timed out after 120s, nothing was installed.In attestation.ts,code === nullgives that on verify and a 'timed out' skip reason on a probe.gh auth status --hostname github.comin all three paths.self updateprintsAttestation verified: built by squirrelscan/squirrelscanon a pass. self.mdx says background auto-updates skip the check silently when gh is unusable.download_and_install.timeoutwatchdog), CLI runner returning{code: null}, interactive verified line. The new install.ps1 timeout checks were NOT run (no pwsh here); CI runs them.Gates
bun test scripts/install-attestation-169.test.ts apps/cli/tests/self/attestation.test.ts apps/cli/tests/self/updater.test.ts: 120 pass;make validatein docs: all checks pass; oxfmt clean.bun test scripts/install-attestation-169.test.ts: 6 pass. install-contract 188 pass. install-path-setup + hardening-168 + install-test-env: 80 pass (with the new file).bun test apps/cli/tests/self/updater.test.ts apps/cli/tests/self/attestation.test.ts: 104 pass.bash -n install.shok; apps/cli tsgo clean, lint clean, format:check clean;cd docs && make validate: 62 pass.Notes
--repoalone does not pin the signer workflow; a follow-up could add--signer-workflow.🤖 Generated with Claude Code