Pass signing key via env so its value is never echoed in CI logs
This commit is contained in:
@@ -80,8 +80,12 @@ jobs:
|
|||||||
-o gpu-turnstile.exe ./cmd/gpu-turnstile
|
-o gpu-turnstile.exe ./cmd/gpu-turnstile
|
||||||
|
|
||||||
- name: Sign and checksum
|
- name: Sign and checksum
|
||||||
|
env:
|
||||||
|
RELEASE_SIGNING_KEY: ${{ secrets.RELEASE_SIGNING_KEY }}
|
||||||
run: |
|
run: |
|
||||||
printf '%s\n' "${{ secrets.RELEASE_SIGNING_KEY }}" > key.pem
|
# The key comes via the environment so its value never appears in
|
||||||
|
# the echoed command line of the run log.
|
||||||
|
printf '%s\n' "$RELEASE_SIGNING_KEY" > key.pem
|
||||||
chmod 600 key.pem
|
chmod 600 key.pem
|
||||||
openssl pkeyutl -sign -inkey key.pem -rawin \
|
openssl pkeyutl -sign -inkey key.pem -rawin \
|
||||||
-in gpu-turnstile.exe -out gpu-turnstile.exe.sig
|
-in gpu-turnstile.exe -out gpu-turnstile.exe.sig
|
||||||
|
|||||||
Reference in New Issue
Block a user