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

Checksums and GPG Signing for Release Artifacts #126

Open
ebb-earl-co opened this issue Mar 30, 2024 · 1 comment
Open

Checksums and GPG Signing for Release Artifacts #126

ebb-earl-co opened this issue Mar 30, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request github_actions Pull requests that update GitHub Actions code

Comments

@ebb-earl-co
Copy link
Owner

Issue 1: Cryptographically Signing Release Artifacts

It seems to be rather poor practice offering release artifacts, and, in 2024, not to sign them!

Options To Solve the Issue

Consideration

I already use GnuPG to sign all of my commits, so it would be natural to use that same signing key for this project's release artifacts...

Issue 2: Providing Checksums of Release Artifacts

There must be a GitHub action that automatically creates checksums of artifacts! (The most popular one only has 8 stars!?)

Options to Solve the Issue

At the very least

Consideration

How difficult would it be to roll my own GitHub actions workflow that checksums and signs release artifacts, then adds new release artifacts containing the signatures of the binaries as well as a CHECKSUMS text file?

@ebb-earl-co ebb-earl-co added documentation Improvements or additions to documentation enhancement New feature or request github_actions Pull requests that update GitHub Actions code labels Mar 30, 2024
@ebb-earl-co ebb-earl-co self-assigned this Mar 30, 2024
@ebb-earl-co
Copy link
Owner Author

Checksums seem to be not a big problem: I just added a one-line Python "program" from shell invocation:

python3 -c "from hashlib import sha256;from pathlib import Path;Path('tidal-wave_macos_amd64.sha256').write_text(f'''{sha256(Path('./dist/tidal-wave_macos_amd64').read_bytes()).hexdigest()}\ttidal-wave_macos_amd64''')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

No branches or pull requests

1 participant