[bug] Sidecar-less artifacts are permanently un-downloadable (digest fallback is dead code) #10

Closed
opened 2026-06-23 20:14:55 +00:00 by stephen · 0 comments
Owner

Autonomous audit finding (needs triage — possibly intended fail-closed).

src/lib/download-impl.js:97-100 returns a meta object with no digest for sidecar-less artifacts, but verifyDigest (:161-166) throws when the digest is absent. So the documented sidecar-less fallback path always throws → dead code. If fail-closed-on-missing-digest is intended (per the #9 hardening), remove/relabel the fallback so it isn't presented as supported; if sidecar-less downloads should work, the fallback must skip verification explicitly.

Autonomous audit finding (needs triage — possibly intended fail-closed). `src/lib/download-impl.js:97-100` returns a meta object with no `digest` for sidecar-less artifacts, but `verifyDigest` (:161-166) throws when the digest is absent. So the documented sidecar-less fallback path always throws → dead code. If fail-closed-on-missing-digest is intended (per the #9 hardening), remove/relabel the fallback so it isn't presented as supported; if sidecar-less downloads should work, the fallback must skip verification explicitly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/download-artifact-action#10
No description provided.