Skip to content

chore: Resolve zizmor findings - #346

Merged
masutaka merged 4 commits into
mainfrom
zizmor-findings
Aug 12, 2026
Merged

masutaka merged 4 commits into
mainfrom
zizmor-findings

Conversation

@masutaka

@masutaka masutaka commented Aug 12, 2026 •

Copy link
Copy Markdown
Owner

Detected 10 high findings: unpinned-uses 8, dangerous-triggers 1, cache-poisoning 1.

  • Move .ghalint.yaml to .github/ghalint.yml
  • Exclude masutaka/actions/* from unpinned-uses in .github/zizmor.yml
  • Exclude the workflow_run trigger in release.yml from dangerous-triggers with an inline comment
  • Disable the setup-go cache in the release job to resolve cache-poisoning

- Checks out only the default branch, since workflow_run sets GITHUB_SHA to the last commit on it
- Reads nothing from the workflow_run payload other than conclusion
Restoring a Go build cache that a pull request can write would let a poisoned
cache reach the binaries goreleaser publishes.
@masutaka
masutaka marked this pull request as ready for review August 12, 2026 10:07
@masutaka
masutaka merged commit 7f6e990 into main Aug 12, 2026
9 checks passed
@masutaka
masutaka deleted the zizmor-findings branch August 12, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant