Skip to content

Commit 9a5c0b8

Browse files
committed
fix: switch osslsigncode to use files instead of process substitution
1 parent f7aaf73 commit 9a5c0b8

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/publish.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,21 @@ jobs:
8080
CODE_SIGN_KEY: ${{ secrets.CODE_SIGN_KEY }}
8181
run: |
8282
set -ex
83-
echo "DEBUG: script $0:"
84-
cat "$0"
85-
echo "DEBUG: end"
83+
84+
# osslsigncode demands certs and key as file
85+
CERT_FILE=$(mktemp)
86+
KEY_FILE=$(mktemp)
87+
echo "${{ secrets.CODE_SIGN_CHAIN }}" > $CERT_FILE
88+
echo "${{ secrets.CODE_SIGN_KEY }}" > $KEY_FILE
89+
90+
trap 'rm $CERT_FILE $KEY_FILE' EXIT
91+
8692
mkdir signed
8793
for artifact in unsigned/azurehound-bin-*/azurehound*; do
8894
tgt=$(echo "$artifact" | sed -E 's%.*-([^-]*)/azurehound(.*)%azurehound-\1\2%')
8995
osslsigncode sign \
90-
-certs <(printenv CODE_SIGN_CHAIN) \
91-
-key <(printenv CODE_SIGN_KEY) \
96+
-certs $CERT_FILE \
97+
-key $KEY_FILE \
9298
-n AzureHound \
9399
-i https://www.specterops.io/ \
94100
-in "$artifact" \

0 commit comments

Comments
 (0)