Skip to content

Release guards: Casks CODEOWNERS + goreleaser hook hardening #140

Description

@yorkable

Release/repo guardrails.

a. Casks/syllable.rb is unprotected from hand-edits

Auto-generated by GoReleaser, but there's no CODEOWNERS (root or .github/) and no CI check — only a header comment and a CONTRIBUTING note.
Fix: add .github/CODEOWNERS (/Casks/ @joshyork) and/or a small PR check that fails when Casks/** changes unless the head branch matches the goreleaser branch pattern.

b. goreleaser pre-release hook mutates the module graph

.goreleaser.yaml:7 runs go mod tidy in the before hook, which can rewrite go.mod/go.sum on the release runner — the shipped binary may build against an uncommitted, never-CI-tested dependency state. Line 8's go test ./... also includes integration/ (benign only because the runner lacks creds — see the integration build-tag issue).
Fix: replace go mod tidy with go mod verify (or go mod tidy -diff, which fails instead of mutating); rely on the build-tag fix for the test hook.

Effort: S.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Hardening / polishepic:testing-ciEpic — test coverage, CI gates, release engineering

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions