Skip to content

Commit 0d52c10

Browse files
updating logic for token
1 parent 236e391 commit 0d52c10

File tree

1 file changed

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

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ cat "$APP_PRIVATE_KEY"
3434
generated_jwt="${header_base64}.${payload_base64}.${signature}"
3535

3636
echo $generated_jwt
37-
# API_VERSION=v3
38-
# API_HEADER="Accept: application/vnd.github+json"
37+
API_VERSION=v3
38+
API_HEADER="Accept: application/vnd.github+json"
3939

40-
# auth_header="Authorization: Bearer ${generated_jwt}"
40+
auth_header="Authorization: Bearer ${generated_jwt}"
4141

42-
# app_installations_response=$(curl -sX POST \
43-
# -H "${auth_header}" \
44-
# -H "${API_HEADER}" \
45-
# --url "https://api.github.com/app/installations/${INSTALL_ID}/access_tokens" \
46-
# )
42+
app_installations_response=$(curl -sX POST \
43+
-H "${auth_header}" \
44+
-H "${API_HEADER}" \
45+
--url "https://api.github.com/app/installations/${INSTALL_ID}/access_tokens" \
46+
)
4747

48-
# echo "$app_installations_response" | jq --raw-output '.token'
48+
echo "$app_installations_response" | jq --raw-output '.token'
4949

5050
#echo "ACCESS_TOKEN=${jwt}" > "${DST_FILE}"

0 commit comments

Comments
 (0)