Get sha256-checksum of latest release
TuningYourCode opened this issue · comments
Hi,
in the docs (and code) i saw that there is a way to retrieve always the latest version of composer 2 and 1.
But i couldn't find something like https://getcomposer.org/composer-2.phar.sha256sum to also get the latest checksum of the latest release.
Would be quiet cool to see this implemented as we would like to pull the composer updates with our config management system (puppet) and check if the downloaded file is correct.
If i understand the code correctly it would only need some additions https://github.com/composer/getcomposer.org/blob/master/src/Controller/HomeController.php#L76-L90 to allow .sha256sum
at the routes and also put it at the end of the file destination.
best regards,
Stephan