Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add basic support for shasums #243

Merged
merged 5 commits into from
May 10, 2023
Merged

add basic support for shasums #243

merged 5 commits into from
May 10, 2023

Conversation

Gankra
Copy link
Member

@Gankra Gankra commented May 9, 2023

We now default generate .sha256 checksum files (one for each archive). Example:

image

A new checksum = "..." config has been added, accepting 3 values:

  • "sha256" (default)
  • "sha512"
  • "false" (disable checksumming)

All checksums are implemented with the sha2 crate and match sha256sum and sha512sum's hashes. The resulting file is just a lowercase hex string of the hash (no filename included, since each file gets its own .sha256 file). I've defaulted to sha256 since that seems to be the default other people use, and if you're really serious about hardening this stuff you probably want actual signing/pki backing this up (like #120).

I've also cleaned up the Github Release table output a bit as part of this.

@Gankra
Copy link
Member Author

Gankra commented May 9, 2023

Oh I guess this drive-by fixes #200 by just not describing the artifact anymore

@Gankra Gankra merged commit 2a219e8 into main May 10, 2023
11 checks passed
@Gankra Gankra deleted the hash branch May 10, 2023 15:07
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.

None yet

1 participant