Commit c630245
feat(release): Phase 5 — Goreleaser + Sigstore + perf gate (#131)
* feat(release): Phase 5 — Goreleaser + Sigstore + perf gate + Homebrew tap
Tag-triggered (v*.*.*) Go binary release pipeline.
## Pieces
- **.goreleaser.yml** — multi-arch build (linux/amd64, linux/arm64,
darwin/arm64) with `-trimpath -s -w` ldflags, version metadata
injected into `internal/buildinfo`. SPDX SBOMs via Syft per archive.
Checksum manifest keyless-signed via Cosign (no long-lived key).
Homebrew tap publish opt-in via $HOMEBREW_TAP_GITHUB_TOKEN — skipped
silently when absent so forks reuse the same config.
- **.github/workflows/release-go.yml** — per-target build matrix (CGO
+ native kuzudb/sqlite means we can't cross-compile from one host),
combined publish job, build-provenance attestations,
`id-token: write` permission for Sigstore keyless OIDC.
- **.github/workflows/perf-gate.yml** — regression gate on PRs and
pushes to main. Indexes fixture-multi-lang, asserts:
- wall-clock <= 8 s
- >= 40 nodes (catches detector dispatch regressions)
- <= 50% phantom-edge drop ratio (catches anchor-node anti-patterns)
Tuned so the kind of regex pathology that pushed PSA from 0.1 s →
42 s mid-port would fail the gate immediately.
- **shared/runbooks/release-go.md** — operator runbook: tag, verify
draft release, publish; user-facing checksum + cosign verify recipe;
Homebrew tap setup; local snapshot dry-run; failure recovery.
- **CHANGELOG.md [Unreleased]** updated.
## Local validation
yaml-lint of all three workflow files + .goreleaser.yml: ok. Tested
goreleaser/cosign/syft installation isn't required locally — CI does
the real release.
## Out of scope (deferred)
- Smoke test of the published artifact post-release (no canary user
yet).
- Auto-bump of version (manual decision, not automated).
- Homebrew tap repo creation itself — needs a repo admin to create
`RandomCodeSpace/homebrew-codeiq` and set the PAT secret; the
workflow gracefully no-ops until then.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* ci: SHA-pin all actions + drop ci-java path filter to unblock required check
Two fixes flagged by code review of PR #131:
1. **Pin every `uses:` to a 40-char commit SHA** (Scorecard
Pinned-Dependencies rule). New workflows landed with `@v4`/`@v5`/etc
tags. Resolved each to the latest release commit SHA via
`gh api repos/<owner>/<repo>/releases/latest`. Comments preserve
the tag for readability:
actions/checkout@de0fac2e... # v6.0.2
actions/setup-go@4a360112... # v6.4.0
actions/upload-artifact@043fb46d... # v7.0.1
actions/download-artifact@3e5f45b2... # v8.0.1
actions/attest-build-provenance@a2bbfa25... # v4.1.0
anchore/sbom-action@e22c3899... # v0.24.0
sigstore/cosign-installer@6f9f1778... # v4.1.2
goreleaser/goreleaser-action@1a80836c... # v7.2.1
2. **Remove `paths:` filter from ci-java.yml.** The `build` job
name is a required check on main's branch protection. With the
path filter, PRs that don't touch `src/**` or `pom.xml` (like the
phase-5 release PR) cause the workflow to be skipped, which never
reports a status — leaving "build" stuck at "Waiting for status
to be reported" indefinitely and blocking merge.
Java compile is ~1 minute with the Maven cache. The cost is worth
the always-on signal until Phase 6 cutover deletes the Java tree.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c363727 commit c630245
6 files changed
Lines changed: 536 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 17 | | |
22 | 18 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
0 commit comments