Skip to content

Authenticate coverage uploads with GitHub OIDC - #27

Merged
Kyle-Ye merged 1 commit into
mainfrom
fix/codecov-oidc
Sep 27, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
fix/codecov-oidc

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Codecov rejects unauthenticated coverage uploads from protected branches, but the CI jobs still pass because upload errors are non-fatal.

Use GitHub OIDC to authenticate coverage uploads on macOS and Ubuntu. Limit the new permission to those jobs and fail CI when a coverage upload fails.

Validation:

  • actionlint passes for both workflows, and git diff --check passes.
  • All six GitHub Actions jobs pass on e34d96a.
  • The macOS, Ubuntu 22.04, and Ubuntu 24.04 logs confirm successful OIDC authentication and coverage uploads with HTTP 200.
  • codecov/patch passes. codecov/project reports 96.32% against the old 96.58% baseline at d81fffe, which is four commits behind main. This PR changes only the two workflows; the current main branch needs a fresh coverage report.

@codecov

codecov Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.32%. Comparing base (d81fffe) to head (e34d96a).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
- Coverage   96.58%   96.32%   -0.26%     
==========================================
  Files         107      108       +1     
  Lines        8311     8080     -231     
==========================================
- Hits         8027     7783     -244     
- Misses        284      297      +13     

☔ 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.

@Kyle-Ye
Kyle-Ye merged commit 710ffc9 into main Sep 27, 2026
7 of 8 checks passed
@Kyle-Ye
Kyle-Ye deleted the fix/codecov-oidc branch September 27, 2026 13:35
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