We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad3126e commit b203f00Copy full SHA for b203f00
action.yml
@@ -203,15 +203,17 @@ runs:
203
GITHUB_REPOSITORY: ${{ github.repository }}
204
205
- name: Get OIDC token
206
- if: ${{ inputs.use_oidc == 'true' }}
207
uses: actions/github-script@v7
208
id: oidc
209
with:
210
script: |
211
- const id_token = await core.getIDToken(process.env.CC_OIDC_AUDIENCE)
212
- return id_token
+ if (process.env.CC_USE_OIDC === 'true' && process.env.CC_FORK != 'true') {
+ const id_token = await core.getIDToken(process.env.CC_OIDC_AUDIENCE)
+ return id_token
213
+ }
214
env:
215
CC_OIDC_AUDIENCE: ${{ inputs.url || 'https://codecov.io' }}
216
+ CC_USE_OIDC: ${{ inputs.use_oidc }}
217
218
- name: Get and set token
219
shell: bash
0 commit comments