Skip to content

chore: Action installs prebuilt binary instead of go install - #17

Merged
rostradamus merged 1 commit into
mainfrom
chore/action-prebuilt-binary
Jul 7, 2026
Merged

chore: Action installs prebuilt binary instead of go install#17
rostradamus merged 1 commit into
mainfrom
chore/action-prebuilt-binary

Conversation

@rostradamus

Copy link
Copy Markdown
Owner

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.

  • latest resolves via the releases/latest redirect (no API token or jq needed); explicit tags (v0.1.5) used directly, with a lenient v prefix.
  • Covers linux/darwin (tar.gz) and windows (zip), amd64/arm64.
  • Behaviour unchanged: scans and writes SARIF, honouring --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 latestv0.1.5 → download → extract → scan ./testdata14 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

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>
@rostradamus
rostradamus merged commit dd275d5 into main Jul 7, 2026
4 checks passed
@rostradamus
rostradamus deleted the chore/action-prebuilt-binary branch July 7, 2026 18:39
@rostradamus rostradamus mentioned this pull request Jul 7, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant