chore: Action installs prebuilt binary instead of go install - #17
Merged
Conversation
The composite Action previously ran actions/setup-go + 'go install', compiling klaws from source on every run (~30-40s + toolchain). Switch to downloading the prebuilt release binary matching the runner's OS/arch, which removes the Go dependency and is much faster. - 'latest' resolves via the releases/latest redirect (no API token/jq). - Supports linux/darwin (tar.gz) and windows (zip), amd64/arm64. - Behaviour unchanged: scans and writes SARIF, honouring --fail-on. Verified end-to-end against the v0.1.5 release (download -> extract -> scan testdata -> 14 SARIF results). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Merged
rostradamus
added a commit
that referenced
this pull request
Jul 8, 2026
Ships everything since v0.1.5: - action installs prebuilt binary instead of go install (#17) - read-only tools report destructive=false (#16) - release version-sync automation (#18) Bumps via scripts/release.sh: server.json version + OCI identifier and the pinned-docker example. MCP serverInfo version comes from ldflags. Co-authored-by: Claude Opus 4.8 (1M context) <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.
Speeds up the published Marketplace Action for everyone who adopts it.
Before
The composite action ran
actions/setup-go@v5+go install …@<version>, compiling klaws from source on every run — the Go toolchain download + build added ~30–40s to each job.After
Downloads the prebuilt release binary matching the runner's OS/arch. No Go toolchain, much faster.
latestresolves via thereleases/latestredirect (no API token orjqneeded); explicit tags (v0.1.5) used directly, with a lenientvprefix.tar.gz) and windows (zip), amd64/arm64.--fail-on(still exits non-zero to gate the step).Verification
Ran the new logic end-to-end against the real v0.1.5 release on darwin/arm64: resolve
latest→v0.1.5→ download → extract →scan ./testdata→ 14 SARIF results. ✅Note: repo CI (Build/Format/Test/Vet) is Go-only and doesn't exercise
action.yml; validated locally instead. A CI self-test of the action (uses: ./) could be a good follow-up.🤖 Generated with Claude Code