File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ runs:
192
192
then
193
193
# {"count":1984,"value":"***"}
194
194
echo -e "\033[0;32m==>\033[0m Requesting OIDC token from '$ACTIONS_ID_TOKEN_REQUEST_URL'"
195
- CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://codecov.io " | cut -d\" -f6)
195
+ CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=$CC_OIDC_AUDIENCE " | cut -d\" -f6)
196
196
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
197
197
elif [ -n "${{ env.CODECOV_TOKEN }}" ];
198
198
then
@@ -206,6 +206,8 @@ runs:
206
206
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
207
207
fi
208
208
fi
209
+ env :
210
+ CC_OIDC_AUDIENCE : ${{ inputs.url || 'https://codecov.io' }}
209
211
210
212
- name : Override branch for forks
211
213
shell : bash
You can’t perform that action at this time.
0 commit comments