Skip to content

gh: turn on Codecov identity-token upload path - #674

Closed
xdelaruelle wants to merge 1 commit into
mainfrom
codecov-oidc-upload
Closed

gh: turn on Codecov identity-token upload path#674
xdelaruelle wants to merge 1 commit into
mainfrom
codecov-oidc-upload

Conversation

@xdelaruelle

@xdelaruelle xdelaruelle commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Codecov's no-token upload verifies a run through a GitHub Actions identity token, but codecov-action only requests it when its own opt-in input is enabled, and the job needs id-token: write to obtain the token at all. Neither was set, so uploads failed with Token required - not valid tokenless upload on every run (confirmed by rerunning the last main commit and PR ts: cover remaining tcl/ line-coverage gaps #673).
  • Grants id-token: write and turns on that opt-in input on the jobs that upload coverage in linux_tests.yaml and macos_tests.yaml.

The no-token upload path lets Codecov verify a run through a
GitHub Actions identity token, but codecov-action only requests
that token when its own opt-in input for it is enabled, and the
job running the step needs the id-token permission to obtain the
token in the first place. Neither was set, so the action fell
back to a legacy PR-label identification method that Codecov
rejects with a "Token required" error. Grant id-token: write and
turn on that opt-in input on the jobs that upload coverage.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
@xdelaruelle
xdelaruelle deleted the codecov-oidc-upload branch August 16, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant