Repository navigation
Description
Summary
The Action's version input defaults to latest, which looks up the newest release on every run. A workflow pinned to TMHSDigital/[email protected], or to a commit SHA, still downloads whatever release is newest, so the pinned action.yml runs against a binary it was never tested with.
Where
action.yml:63(versioninput,default: latest)action.yml:125,:143(gh release view ... --jq .tagName, then download)docs/monitoring.md:101("pin a release, or its commit SHA"),docs/monitoring.md:127(input table)
Impact
After a release that changes flags, output or the state format, scheduled monitors break or behave differently with no change on the user's side. A bad release reaches every pinned user immediately. The attestation check proves the archive came from the release workflow; it does not stop a newer release from being picked. SHA pinning is meant to make the action immutable, and here it does not.
Steps to reproduce
Workflow with uses: TMHSDigital/subenum@<a v0.11.x SHA> and no version: input: the install step downloads the newest tag (v0.12.0), not v0.11.x.
Suggested fix
- When
versionis empty orlatestand$GITHUB_ACTION_REFis av*tag, install that tag. - Better: have the release job stamp a default into
action.yml(for example an env line updated alongsideCITATION.cff) so SHA pins resolve to the matching binary too. - Keep
latestas an explicit opt-in, and say indocs/monitoring.mdwhich binary a pinned action installs.
Acceptance criteria
- A tag-pinned or SHA-pinned action installs the matching release by default.
-
version: lateststill works when set explicitly. - The monitoring docs describe the behavior.
Getting started
- Relevant files:
action.yml,.github/workflows/go.yml(release job),docs/monitoring.md
Filed by repo-audit/full-audit at a45b999. Severity: medium. Effort: S. audit-key: dependencies|action.yml|inputs.version
Activity
TMHSDigital commentedon Nov 29, 2026
Fixed in 710cfa9: the version input now defaults to empty, which installs the tag in github.action_ref when the action is pinned to a v* tag, and otherwise ACTION_RELEASE, the release stamped in action.yml (v0.12.0 now). version: latest still installs the newest release, and docs/monitoring.md describes this. A new TestActionReleaseMatchesCitation keeps ACTION_RELEASE equal to CITATION.cff's version, which the release job already checks against the tag, so a release commit that bumps CITATION.cff must bump this too. The gate passes (gofmt, vet, golangci-lint v2.15.0, full suite). I added no CI step that installs the default release: on a release commit it would run before that release is published.