Skip to content

Commit ed0d056

Browse files
updating logic for token
1 parent a44bfbd commit ed0d056

File tree

1 file changed

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

1 file changed

+10
-9
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,18 @@ signature=$(echo -n "${header_base64}.${payload_base64}" | \
2727

2828
generated_jwt="${header_base64}.${payload_base64}.${signature}"
2929

30-
API_VERSION=v3
31-
API_HEADER="Accept: application/vnd.github+json"
30+
echo $generated_jwt
31+
# API_VERSION=v3
32+
# API_HEADER="Accept: application/vnd.github+json"
3233

33-
auth_header="Authorization: Bearer ${generated_jwt}"
34+
# auth_header="Authorization: Bearer ${generated_jwt}"
3435

35-
app_installations_response=$(curl -sX POST \
36-
-H "${auth_header}" \
37-
-H "${API_HEADER}" \
38-
--url "https://api.github.com/app/installations/${INSTALL_ID}/access_tokens" \
39-
)
36+
# app_installations_response=$(curl -sX POST \
37+
# -H "${auth_header}" \
38+
# -H "${API_HEADER}" \
39+
# --url "https://api.github.com/app/installations/${INSTALL_ID}/access_tokens" \
40+
# )
4041

41-
echo "$app_installations_response" | jq --raw-output '.token'
42+
# echo "$app_installations_response" | jq --raw-output '.token'
4243

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

0 commit comments

Comments
 (0)