Skip to content

Commit b203f00

Browse files
fix: OIDC on forks (#1823)
1 parent ad3126e commit b203f00

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,17 @@ runs:
203203
GITHUB_REPOSITORY: ${{ github.repository }}
204204

205205
- name: Get OIDC token
206-
if: ${{ inputs.use_oidc == 'true' }}
207206
uses: actions/github-script@v7
208207
id: oidc
209208
with:
210209
script: |
211-
const id_token = await core.getIDToken(process.env.CC_OIDC_AUDIENCE)
212-
return id_token
210+
if (process.env.CC_USE_OIDC === 'true' && process.env.CC_FORK != 'true') {
211+
const id_token = await core.getIDToken(process.env.CC_OIDC_AUDIENCE)
212+
return id_token
213+
}
213214
env:
214215
CC_OIDC_AUDIENCE: ${{ inputs.url || 'https://codecov.io' }}
216+
CC_USE_OIDC: ${{ inputs.use_oidc }}
215217

216218
- name: Get and set token
217219
shell: bash

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy