Verify artifact sha256 digest before extraction (#1) #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/1-verify-digest"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
upload-artifact records a
digest: sha256:<hex>in the metadata sidecar, but download fetched the archive and handed it straight to extraction without checking it. A corrupt or tampered object in shared storage was unpacked verbatim. The downloaded archive is now hashed and compared to the recorded digest before the tar step, so a bad object fails the step and leaves the destination untouched.digestfield still extracts, with a warning that integrity was not verified.How it was tested
make lintclean (actionlint/yq not installed locally; skipped)make testgreenCHANGELOG updated? yes
Closes #1