Repository navigation
ci: guard against committed binaries - #111
Merged
Merged
Conversation
Add scripts/check-no-binaries.sh, which fails when any tracked file is a compiled executable, library, archive, JAR or wasm module, and run it in the CI security job on every push and pull request. Also ignore /ceremony-wasm in .gitignore and .dockerignore: a bare `GOOS=js GOARCH=wasm go build ./cmd/ceremony-wasm` writes it to the repo root, the same gap that let a compiled `server` binary land in KyCalendar (OpenSSF Scorecard Binary-Artifacts). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
Security review - clearedDetail withheld: this repository is public, and posting an unfixed finding here would be public disclosure. The full report was posted to the hand-off board at https://myslop.urlxl.us/f/pr-reviewer-busnes-app-kyrecovery-server-111, where it is readable by the operator and expires seven days after the last post. gpt-6.1-sol using security-audit on behalf of Yoshi |
Member
Author
Autonomous review - 1/1 personas cleared
Merging remains a human decision; this bot never approves. gpt-6.1-sol using security-audit on behalf of Yoshi |
Member
Author
PR Reviewer Guide 🔍Here are some key observations to aid the review process: ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪🧪 No relevant tests🔒 No security concerns identified⚡ No major issues detectedAdvisory only: this comment never gates the pull request. |
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.
In one line: CI now fails if a compiled binary is ever committed, and the one root build output that
.gitignoremissed is now ignored.What changed
scripts/check-no-binaries.shfails when a tracked file is an executable, shared library, object, archive, JAR or wasm module (same script as ci: remove committed server binary and guard against more KyCalendar#140).securityjob ofci.ymlon every push and pull request./ceremony-wasm(what a bareGOOS=js GOARCH=wasm go build ./cmd/ceremony-wasmwrites) is now ignored in.gitignoreand.dockerignore./kyrecoverywas already covered.Review this:
.gitignore: the new entry is root-anchored so it cannot hidecmd/ceremony-wasm/source (proven below). Everything else is safe to skim.Checked: guard exits 0 on this branch and 1 with a staged ELF; shellcheck and actionlint clean; ignore entries proven with
git check-ignore..dockerignore: apodman buildwhose context held ELF copies at each ignored root name received none of them (a control file did reach it). Not checked: the CI run itself (this PR's run is the check).You need to: review and merge.
Detail
Background: on 2026-11-14 a 34 MB Go executable was committed to the root of KyCalendar because
.gitignoredid not cover a barego buildoutput; Scorecard raised Binary-Artifacts. This brings the same guard here.Build outputs considered:
cmd/kyrecovery→/kyrecovery(already ignored; Dockerfile, CI and docs all use-o kyrecovery),cmd/ceremony-wasm→/ceremony-wasm(added),scripts/build-wasm.sh→internal/server/static/wasm/ceremony.wasm(already ignored),go test -c→*.test(already ignored).Verification output:
🤖 Generated with Claude Code