Skip to content

Commit 28b3165

Browse files
fix: update OIDC audience (#1675)
* dnm: whats the token * fix: show the url * fix: do the echo * fix: just echo * fix: true == true * fix get the action * fix: use audience
1 parent e8603fa commit 28b3165

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ runs:
163163
- name: Get and set token
164164
shell: bash
165165
run: |
166-
if [ ${{ inputs.use_oidc }} == 'true' ];
166+
if [ "${{ inputs.use_oidc }}" == 'true' ];
167167
then
168168
# {"count":1984,"value":"***"}
169-
CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange" | cut -d\" -f6)
169+
CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://codecov.io" | cut -d\" -f6)
170170
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
171171
else
172172
if [ -n ${{ inputs.token }} ];

0 commit comments

Comments
 (0)