Sign release checksums with Ed25519 and verify them in the installers

This commit is contained in:
Emil
2026-08-04 07:31:45 +03:00
parent 63c8ef0b8a
commit c2c8336438
3 changed files with 79 additions and 4 deletions
+14
View File
@@ -104,6 +104,20 @@ jobs:
working-directory: artifacts
run: sha256sum * > SHA256SUMS.txt
- name: sign the checksums (Ed25519)
env:
KEY: ${{ secrets.SCIMESH_SIGNING_KEY }}
working-directory: artifacts
run: |
if [ -n "$KEY" ]; then
printf '%s\n' "$KEY" > /tmp/scimesh-sign-key.pem
openssl pkeyutl -sign -inkey /tmp/scimesh-sign-key.pem \
-in SHA256SUMS.txt -out SHA256SUMS.txt.sig
echo "signed SHA256SUMS.txt"
else
echo "SCIMESH_SIGNING_KEY is not set; releasing without a signature"
fi
- uses: softprops/action-gh-release@v2
with:
files: |