File tree Expand file tree Collapse file tree 1 file changed +21
-10
lines changed
Expand file tree Collapse file tree 1 file changed +21
-10
lines changed Original file line number Diff line number Diff line change 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 :
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
You can’t perform that action at this time.
0 commit comments