File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
.github/scripts/ppc64le/self-hosted-builder/helpers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1111
1212set -o pipefail
1313
14- APP_ID=$( cat $1 ) # Path to appid.env
15- PRIVATE_KEY_PATH=$2 # Path to key_private.pem
14+ # APP_ID=$(cat $1) # Path to appid.env
15+ # PRIVATE_KEY_PATH=$2 # Path to key_private.pem
1616
1717# Generate JWT
1818header=' {"alg":"RS256","typ":"JWT"}'
@@ -22,7 +22,7 @@ header_base64=$(echo -n "$header" | openssl base64 | tr -d '=' | tr '/+' '_-' |
2222payload_base64=$( echo -n " $payload " | openssl base64 | tr -d ' =' | tr ' /+' ' _-' | tr -d ' \n' )
2323
2424signature=$( echo -n " ${header_base64} .${payload_base64} " | \
25- openssl dgst -sha256 -sign " $PRIVATE_KEY_PATH " | \
25+ openssl dgst -sha256 -sign " $APP_PRIVATE_KEY " | \
2626 openssl base64 | tr -d ' =' | tr ' /+' ' _-' | tr -d ' \n' )
2727
2828generated_jwt=" ${header_base64} .${payload_base64} .${signature} "
You can’t perform that action at this time.
0 commit comments