Skip to content

Commit d898f36

Browse files
updating logic for token
1 parent 86a0a4e commit d898f36

File tree

1 file changed

+5
-0
lines changed
  • .github/scripts/ppc64le/self-hosted-builder/helpers

1 file changed

+5
-0
lines changed

.github/scripts/ppc64le/self-hosted-builder/helpers/app_token.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ set -o pipefail
1313

1414
#APP_ID=$(cat $1) # Path to appid.env
1515
#PRIVATE_KEY_PATH=$2 # Path to key_private.pem
16+
echo "APP_PRIVATE_KEY path: $APP_PRIVATE_KEY"
1617

1718
# Generate JWT
1819
header='{"alg":"RS256","typ":"JWT"}'
@@ -25,6 +26,10 @@ signature=$(echo -n "${header_base64}.${payload_base64}" | \
2526
openssl dgst -sha256 -sign "${APP_PRIVATE_KEY}" | \
2627
openssl base64 | tr -d '=' | tr '/+' '_-' | tr -d '\n')
2728

29+
echo "Contents of APP_PRIVATE_KEY:"
30+
cat "$APP_PRIVATE_KEY"
31+
32+
2833
generated_jwt="${header_base64}.${payload_base64}.${signature}"
2934

3035
echo $generated_jwt

0 commit comments

Comments
 (0)