Skip to content

fix: check SHA-256 hash of release artifact#240

Open
guidanoli wants to merge 1 commit intomainfrom
feature/sha256sum-check
Open

fix: check SHA-256 hash of release artifact#240
guidanoli wants to merge 1 commit intomainfrom
feature/sha256sum-check

Conversation

@guidanoli
Copy link
Collaborator

It's good practice to check the hash of a downloaded file, to avoid supply-chain attacks.
Besides this change, this PR also:

  • Forces wget to write the file to add-generated-files.diff by passing the -O option. Without such option, wget may avoid writing over add-generated-files.diff and instead write to add-generated-files.diff.SUFFIX where SUFFIX is some suffix added by wget to avoid collision with an already-existing file.

  • Removes the add-generated-files.diff file after applying it. This ensures the Git submodule at machine/emulator stays clean after the repository is setup.

@guidanoli guidanoli requested a review from stephenctw February 11, 2026 23:36
@guidanoli guidanoli self-assigned this Feb 11, 2026
@guidanoli guidanoli requested a review from GCdePaula February 12, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant