codetruss 0.2.51 - #17
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Points the formula at the
v0.2.51release archive.That digest was measured off the downloaded release asset, not copied from the release notes. The asset
cmps byte-identical topublic/downloads/codetruss-cli-0.2.51.tgzin the monorepo, to the bytes codetruss.com serves, and to the archive rebuilt independently in the mirror from its own lockfile.gh attestation verify codetruss-cli-0.2.51.tgz --repo CodeTruss/codetruss-clipasses, and the release carries all three attestations: SLSA provenance v1, CycloneDX, and the in-toto release predicate — the last confirmed through the attestations API, sincegh2.85 cannot verify a predicate signed by GitHub's release identity under--repo.The same
cmpagainst 0.2.50 — the version this formula pointed at until now — exits 1, so the comparison is capable of failing.gh attestation verifywas likewise checked against a tampered copy of the archive and against a wrong--repo; both exit 1, so its exit 0 above is not vacuous.Nothing else changes.
.github/workflows/test.ymlderives the expected version frombrew inforather than a literal, so it needs no edit; the version assertion in CI is what proves the installed binary matches the formula.Why this bump matters more than the last few
0.2.50 and earlier are unusable on large real TypeScript repositories. Appending a single comment line to
sindresorhus/kyreturnsFAILED, exit 2 — because our own bundled grammar cannot parse aunique symboldeclaration insource/utils/merge.ts, and the receipt named no file. Reproduced identically onhonojs/honoandcolinhacks/zod; on zod the analyzer never finished at all, spending minutes at full CPU on catastrophic backtracking in our own literal-stripping regex, reachable from a commented-out line in any user's file. Becausecodetruss setupinstalls a pre-commit hook, an affected user also had every commit blocked.0.2.51 reclassifies "we could not read this file" as
REVIEW_REQUIRED(exit 1, which the hook allows) rather thanFAILED, names the file it could not read, and makes the regex alternatives disjoint. Verified against the published 0.2.51 archive on a freshkyclone: the same one-line comment change now returnsREVIEW_REQUIRED, exit 1, namingsource/utils/merge.ts— while a synthetic committed credential in the same tree still returns exit 2, so real failures remain reachable.🤖 Generated with Claude Code