-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: add signatures to RCM executables in Ubuntu, macOS and Windows
- Loading branch information
Showing
2 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,21 +127,36 @@ jobs: | |
find . -name "RCM" -type f -exec mv '{}' RCM \; | ||
find . -name "RCM.zip" -type f -exec unzip '{}' -d ./RCM-dir \; | ||
- uses: sigstore/[email protected] | ||
|
||
- name: Sign image with a key | ||
run: | | ||
cosign sign-blob --yes --key env://COSIGN_PRIVATE_KEY --output-signature "${{ env.FILE2SIGN }}.sig" "${{ env.FILE2SIGN }}" | ||
cosign verify-blob --key env://COSIGN_PUBLIC_KEY --signature "${{ env.FILE2SIGN }}.sig" "${{ env.FILE2SIGN }}" | ||
echo "${{ env.COSIGN_PUBLIC_KEY }}" > RCM.pub | ||
env: | ||
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }} | ||
COSIGN_PUBLIC_KEY: ${{ secrets.COSIGN_PUBLIC_KEY }} | ||
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} | ||
FILE2SIGN: "RCM" | ||
|
||
- name: (GHO) Upload exe | ||
uses: actions/[email protected] | ||
with: | ||
name: RCM-client-${{ matrix.os }}-turbovnc-${{ matrix.turbovnc-version }} | ||
path: | | ||
RCM | ||
- name: (GHO) Restore git | ||
run: | | ||
mv RCM RCM.exe | ||
mv RCM.bck RCM | ||
RCM.sig | ||
RCM.pub | ||
- name: (GHO) Upload dir | ||
uses: actions/[email protected] | ||
with: | ||
name: RCM-client-${{ matrix.os }}-turbovnc-${{ matrix.turbovnc-version }}-dir | ||
path: | | ||
RCM-dir | ||
- name: (GHO) Restore git | ||
run: | | ||
mv RCM RCM.exe | ||
mv RCM.bck RCM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,12 +95,27 @@ jobs: | |
mv dist/*/*/RCM.exe . | ||
Expand-Archive -Path dist/*/*/RCM.zip -DestinationPath ./RCM-dir | ||
- uses: sigstore/[email protected] | ||
|
||
- name: Sign image with a key | ||
run: | | ||
cosign sign-blob --yes --key env://COSIGN_PRIVATE_KEY --output-signature "${{ env.FILE2SIGN }}.sig" "${{ env.FILE2SIGN }}.exe" | ||
cosign verify-blob --key env://COSIGN_PUBLIC_KEY --signature "${{ env.FILE2SIGN }}.sig" "${{ env.FILE2SIGN }}.exe" | ||
echo "${{ env.COSIGN_PUBLIC_KEY }}" > RCM.pub | ||
env: | ||
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }} | ||
COSIGN_PUBLIC_KEY: ${{ secrets.COSIGN_PUBLIC_KEY }} | ||
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} | ||
FILE2SIGN: "RCM" | ||
|
||
- name: (GHO) Upload exe | ||
uses: actions/[email protected] | ||
with: | ||
name: RCM-client-${{ runner.os }}-turbovnc-${{ matrix.turbovnc-version }} | ||
path: | | ||
RCM.exe | ||
RCM.sig | ||
RCM.pub | ||
- name: (GHO) Upload dir | ||
uses: actions/[email protected] | ||
|