Skip to content

Authenticate Codecov upload with OIDC - #159

Merged
nebhale merged 1 commit into
mainfrom
codecov-oidc
Nov 16, 2026
Merged

nebhale merged 1 commit into
mainfrom
codecov-oidc

Conversation

@nebhale

@nebhale nebhale commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Authenticate the Codecov upload with OIDC: set use_oidc: true on codecov/codecov-action@v7 and grant the job id-token: write (plus contents: read, needed once permissions is specified explicitly).

Why

Matches the other client-* repos (nebhale/client-nodejs#404, nebhale/client-go#29, nebhale/client-jvm#106). Uploads currently succeed without a token or OIDC, which relies on tokenless access being allowed; OIDC authenticates explicitly and needs no stored secret.

Notes

  • OIDC is unavailable on fork and Dependabot PRs; the upload step does not fail CI there (fail_ci_if_error defaults to false).
  • To use a token instead, add CODECOV_TOKEN and swap use_oidc: true for token: ${{ secrets.CODECOV_TOKEN }}.

🤖 Generated with Claude Code

Authenticate the codecov-action upload with the workflow's OIDC token
instead of relying on tokenless access, matching the other client-*
repositories. No stored secret is needed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.70%. Comparing base (774384f) to head (4918250).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #159   +/-   ##
=======================================
  Coverage   97.70%   97.70%           
=======================================
  Files           3        3           
  Lines          87       87           
=======================================
  Hits           85       85           
  Misses          2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nebhale
nebhale merged commit 76f7770 into main Nov 16, 2026
3 checks passed
@nebhale
nebhale deleted the codecov-oidc branch November 16, 2026 21:31
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