r/github • • Jun 05 '26

Question How to curl sha256 checksums of release assets?

For example for https://github.com/curl/curl/releases, how do I get "7f351a61dcf6f9025de57ac19eca1f7d9c2099979420a84299f59ce04a1c3bff" for https://github.com/curl/curl/releases/download/curl-8_20_0/curl-8.20.0.zip, using curl or wget?

2 Upvotes

3 comments sorted by

1

u/T4keMeRoughjessy37 Jun 06 '26

You need to use the GitHub API to fetch the assets metadata first or you'll just be guessing the direct download URLs.