Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,17 @@ runs:
GITHUB_REPOSITORY: ${{ github.repository }}

- name: Get OIDC token
if: ${{ inputs.use_oidc == 'true' }}
uses: actions/github-script@v7
id: oidc
with:
script: |
const id_token = await core.getIDToken(process.env.CC_OIDC_AUDIENCE)
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
}
env:
CC_OIDC_AUDIENCE: ${{ inputs.url || 'https://codecov.io' }}
CC_USE_OIDC: ${{ inputs.use_oidc }}

- name: Get and set token
shell: bash
Expand Down
Loading