-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: github-actions <action@github.com>
- Loading branch information
1 parent
903ff8c
commit 1924b66
Showing
9 changed files
with
94 additions
and
33 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# devctl@4.24.1 | ||
# devctl@5.3.0 | ||
# | ||
version: 2 | ||
updates: | ||
|
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# devctl@4.24.1 | ||
# devctl@5.3.0 | ||
# | ||
name: gitleaks | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/bin/sh | ||
|
||
# DO NOT EDIT. Generated with: | ||
# | ||
# devctl@5.3.0 | ||
# | ||
|
||
APPLICATION=$1 | ||
VERSION=$2 | ||
|
||
SIGNCODE_UTIL=quay.io/giantswarm/signcode-util:1.1.1 | ||
|
||
echo "APPLICATION=${APPLICATION}" | ||
echo "VERSION=${VERSION}" | ||
echo "PWD=${PWD}" | ||
|
||
if [ "${CODE_SIGNING_CERT_BUNDLE_PASSWORD}" = "" ]; then | ||
echo "Variable CODE_SIGNING_CERT_BUNDLE_PASSWORD not set." | ||
exit 1 | ||
fi; | ||
|
||
if [ "${CODE_SIGNING_CERT_BUNDLE_BASE64}" = "" ]; then | ||
echo "Variable CODE_SIGNING_CERT_BUNDLE_BASE64 not set." | ||
exit 1 | ||
fi; | ||
|
||
echo "Signing the Windows binary" | ||
|
||
mkdir -p certs | ||
|
||
echo "${CODE_SIGNING_CERT_BUNDLE_BASE64}" | base64 -d > certs/code-signing.p12 | ||
|
||
mv "${APPLICATION}-v${VERSION}-windows-amd64.exe" "${APPLICATION}-v${VERSION}-windows-amd64-unsigned.exe" | ||
|
||
docker pull --quiet ${SIGNCODE_UTIL} | ||
|
||
docker run --rm \ | ||
-v "${PWD}/certs:/mnt/certs" \ | ||
-v "${PWD}:/mnt/binaries" \ | ||
${SIGNCODE_UTIL} \ | ||
sign \ | ||
-pkcs12 /mnt/certs/code-signing.p12 \ | ||
-n "Giant Swarm CLI tool ${APPLICATION}" \ | ||
-i "https://github.com/giantswarm/${APPLICATION}" \ | ||
-t http://timestamp.digicert.com -verbose \ | ||
-in "/mnt/binaries/${APPLICATION}-v${VERSION}-windows-amd64-unsigned.exe" \ | ||
-out "/mnt/binaries/${APPLICATION}-v${VERSION}-windows-amd64.exe" \ | ||
-pass "${CODE_SIGNING_CERT_BUNDLE_PASSWORD}" | ||
|
||
echo "Verifying the signed binary" | ||
|
||
docker run --rm \ | ||
-v "${PWD}:/mnt/binaries" \ | ||
${SIGNCODE_UTIL} \ | ||
verify \ | ||
"/mnt/binaries/${APPLICATION}-v${VERSION}-windows-amd64.exe" |
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# devctl@4.24.1 | ||
# devctl@5.3.0 | ||
# | ||
|
||
include Makefile.*.mk | ||
|
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