Skip to content

Commit e0fc307

Browse files
fixing post request body issue
1 parent 7802e22 commit e0fc307

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

.github/workflows/checkDataConnector.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,26 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21+
22+
23+
24+
# 1. Fetch OIDC token in trusted context
25+
- name: 🔐 Request OIDC token from GitHub
26+
id: oidc
27+
run: |
28+
echo "🌐 Fetching OIDC token for audience: api://${CLIENT_ID}"
29+
raw=$(curl -s \
30+
-H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
31+
"${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=api://${CLIENT_ID}")
32+
token=$(echo "$raw" | jq -r '.value')
33+
echo "TOKEN=$token" >> $GITHUB_ENV
34+
35+
36+
37+
38+
39+
40+
2141
- name: Checkout PR code
2242
uses: actions/checkout@v3
2343
with:
@@ -52,17 +72,8 @@ jobs:
5272
5373
echo "$json_array" > files_payload.json
5474
echo "JSON_PAYLOAD_PATH=files_payload.json" >> $GITHUB_ENV
75+
cat files_payload.json
5576
56-
# 1. Fetch OIDC token in trusted context
57-
- name: 🔐 Request OIDC token from GitHub
58-
id: oidc
59-
run: |
60-
echo "🌐 Fetching OIDC token for audience: api://${CLIENT_ID}"
61-
raw=$(curl -s \
62-
-H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
63-
"${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=api://${CLIENT_ID}")
64-
token=$(echo "$raw" | jq -r '.value')
65-
echo "TOKEN=$token" >> $GITHUB_ENV
6677
6778
6879
- name: Send JSON files to API and check response

0 commit comments

Comments
 (0)