Repository navigation
Description
Context
ADR-0023
("External downloads are version-pinned and checksum-verified") sets three
requirements for external downloads:
- No build or workflow fetches an external artifact directly. Every
download resolves through a pinned URL and an expected SHA256, and a
mismatch deletes the file and fails loudly.- URLs are pinned to a version or commit — never
latest, never a branch.- Adding a pinned download requires adding a matching update-check (a
scheduled workflow that flags new upstream versions), so pinning doesn't
quietly become staleness.
It doesn't say whether this covers action-managed tool installs — where
a GitHub Action itself resolves and fetches a versioned tool, rather than the
workflow curling a URL directly. goreleaser/goreleaser-action is a live
example, and the fleet is inconsistent about how it's configured.
Fleet occurrences
All six repos pin goreleaser-action itself to a commit SHA
(f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 = v7.2.3), but the version:
input passed to the action varies:
| Repo | Workflow | Line | version: |
|---|---|---|---|
| updex | .github/workflows/release.yml |
37 | "~> v2" |
| updex | .github/workflows/snapshot.yml |
42 | "~> v2" |
| chairlift | .github/workflows/release.yml |
36 | "~> v2" |
| chairlift | .github/workflows/snapshot.yml |
41 | "~> v2" |
| firn | .github/workflows/release.yml |
37 | "~> v2" |
| firn | .github/workflows/snapshot.yml |
42 | "~> v2" |
| std | .github/workflows/release.yml |
38 | "~> v2" |
| clix | .github/workflows/release.yml |
35 | "~> v2" |
| repogen | .github/workflows/goreleaser.yml |
29 | latest (action itself unpinned at @v6, not a SHA) |
(Verified by reading each file at origin/main via gh api repos/frostyard/<repo>/contents/<path> on 2026-08-19.)
How the action resolves and verifies a range
Read from goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94:
-
src/github.ts,getReleaseTag: whenversionisn't an exact semver
(e.g."~> v2"orlatest), the action resolves it at run time against
https://goreleaser.com/releases[-pro].json— an upstream index the
workflow doesn't pin and Snowcat's fleet has no visibility into. -
src/goreleaser.ts,verifyChecksum: the action downloads
checksums.txtfrom the same release it just resolved
(https://github.com/goreleaser/<distribution>/releases/download/<tag>/checksums.txt)
and compares SHA256 — but on a fetch failure it skips verification and
only logs a warning, rather than failing closed:try { checksumsPath = await tc.downloadTool(`${baseUrl}/checksums.txt`); } catch (e) { core.warning(`Skipping checksum verification: unable to download checksums.txt: ${e.message}`); return; }
So the actual pin is the action's SHA, not the tool version; the tool
version floats within the declared range, resolved from an unpinned upstream
JSON index; and the checksum check that ADR-0023 requires to be fail-closed
is fail-open on network failure.
This isn't hypothetical drift: updex's v2.0.0 release
(run 32180669714)
resolved "~> v2" to goreleaser-pro v2.17.1 — nine minor versions above
the floor the range name suggests, entirely inside the action's own runtime
resolution.
Decision needed
Neither of the following is something this item should decide — ADR-0023
doesn't currently say which applies to action-managed installs like this
one:
- Amend ADR-0023 to name action-managed installs explicitly, requiring
an exact pin (e.g.version: vX.Y.Zinstead of a range) per repo, plus a
named update-check mechanism that keeps the pin fresh. (Note: Dependabot
cannot bump an action'swith.versioninput, only theuses:ref — so
the update-check would need to be something else, e.g. a scheduled
workflow diffing againstgoreleaser.com/releases[-pro].jsonor the
GitHub releases API.) - Amend ADR-0023 to exempt action-managed installs whose checksum is
verified by the action itself, with the rationale for the exemption
(and the fail-open checksum gap above) recorded explicitly.
Please pick one — by amending ADR-0023 directly or by writing a superseding
ADR — and record the required shape so updex, chairlift, firn, std, and clix
(and repogen's separate latest/unpinned-action gap) have a concrete target.
This issue does not change any workflow or ADR itself.
🤖 Generated with Claude Code
Activity