ci(release): goreleaser + cosign signing (Scorecard Packaging + Signed-Releases)#116
Merged
Conversation
Add .github/workflows/release.yml (triggered on v* tag push) and .goreleaser.yaml (v2 schema) so OpenSSF Scorecard's Packaging and Signed-Releases checks score. - release.yml: harden-runner (egress audit), checkout tag (fetch-depth 0, persist-credentials false), setup-go from go.mod, setup-node 24, build the embedded React UI (npm ci && npm run build), then goreleaser release --clean. cosign installed for keyless signing. CGO_ENABLED=0 for the pure-Go SQLite driver. Job perms: contents: write + id-token: write; workflow default read-all. - .goreleaser.yaml: linux/darwin x amd64/arm64, binary otelcontext, -trimpath -s -w, tar.gz archives incl LICENSE.md + README.md, sha256 checksums, syft SBOMs per archive, cosign keyless signs the checksums file (.sig + .pem), release.mode append so it coexists with the GitHub release shell that release.sh --release may already have created. - Reconcile scripts/release.sh + CLAUDE.md: release.sh builds UI + pushes the tag (and with --release creates the release shell, notes only, no artifacts); release.yml owns artifacts + signing. All third-party actions SHA-pinned (pins reused from security.yml / scorecard.yml where they overlap). Validated: goreleaser check passes, actionlint clean, snapshot build compiles all 4 targets with the UI embedded and produces archives + SBOMs + checksums. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LDQVJrixs2nJoea67a8pEG
|
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.



What
Adds a GoReleaser + cosign release pipeline so tagged releases produce signed, published artifacts:
.github/workflows/release.yml— triggers onv*tag push. Hardened runner (egress audit), checkout tag (fetch-depth: 0,persist-credentials: false),setup-gofromgo.mod,setup-node24, builds the embedded React UI (npm ci && npm run build), installs cosign, thengoreleaser release --clean. Job perms scoped tocontents: write+id-token: write; workflow defaultcontents: read. All actions SHA-pinned (pins reused fromsecurity.yml/scorecard.yml)..goreleaser.yaml— v2 schema.CGO_ENABLED=0(pure-Go SQLite driver), linux/darwin × amd64/arm64,-trimpath -s -w,tar.gzarchives (incl.LICENSE.md+README.md), sha256checksums.txt, syft SBOMs per archive, cosign keyless signs the checksums file (.sig+.pem),release.mode: appendso it coexists with the release shellrelease.sh --releasemay create.scripts/release.sh+CLAUDE.md— reconcile the split of duties:release.shbuilds the UI + pushes the tag (and--releasecreates the GitHub release shell, notes only, no artifacts);release.ymlowns artifacts + signing.Why
OpenSSF Scorecard's Packaging (-1, no publishing workflow detected) and Signed-Releases (-1, no signed artifacts) checks. A publishing workflow satisfies Packaging; cosign-signed checksums satisfy Signed-Releases.
Verification
goreleaser check— config validactionlint .github/workflows/release.yml— clean (exit 0)The release workflow triggers only on
v*tag push, so it does not run in this PR's CI —build · vet · testare unaffected (no Go code changed).🤖 Generated with Claude Code