Skip to content

Action installs the newest subenum release even when the action is pinned #462

Done

Description

@TMHSDigital

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 (version input, 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 version is empty or latest and $GITHUB_ACTION_REF is a v* tag, install that tag.
  • Better: have the release job stamp a default into action.yml (for example an env line updated alongside CITATION.cff) so SHA pins resolve to the matching binary too.
  • Keep latest as an explicit opt-in, and say in docs/monitoring.md which binary a pinned action installs.

Acceptance criteria

  • A tag-pinned or SHA-pinned action installs the matching release by default.
  • version: latest still 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

  1. added
    good first issue
    dependencies
    github-actions
    severity: medium
    on Nov 29, 2026
  2. TMHSDigital commented on Nov 29, 2026

    @TMHSDigital
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesgithub-actionsgood first issueseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions