We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86a0a4e commit d898f36Copy full SHA for d898f36
.github/scripts/ppc64le/self-hosted-builder/helpers/app_token.sh
@@ -13,6 +13,7 @@ set -o pipefail
13
14
#APP_ID=$(cat $1) # Path to appid.env
15
#PRIVATE_KEY_PATH=$2 # Path to key_private.pem
16
+echo "APP_PRIVATE_KEY path: $APP_PRIVATE_KEY"
17
18
# Generate JWT
19
header='{"alg":"RS256","typ":"JWT"}'
@@ -25,6 +26,10 @@ signature=$(echo -n "${header_base64}.${payload_base64}" | \
25
26
openssl dgst -sha256 -sign "${APP_PRIVATE_KEY}" | \
27
openssl base64 | tr -d '=' | tr '/+' '_-' | tr -d '\n')
28
29
+echo "Contents of APP_PRIVATE_KEY:"
30
+cat "$APP_PRIVATE_KEY"
31
+
32
33
generated_jwt="${header_base64}.${payload_base64}.${signature}"
34
35
echo $generated_jwt
0 commit comments