Skip to content

ci: pass the Codecov upload its files input and its token - #311

Merged
petercorke merged 6 commits into
mainfrom
ci/codecov-files-token
Nov 26, 2026
Merged

petercorke merged 6 commits into
mainfrom
ci/codecov-files-token

Conversation

@petercorke

Copy link
Copy Markdown
Owner

The codecov job in ci.yml had two problems, seen in the log of the run for the last push to main:

  • It passed file: ./coverage.xml, but the action's input is files. The run warned "Unexpected input(s) 'file'" and only worked because the action finds coverage.xml by itself.
  • It passed no token (the log says "Token length: 0"), though the repository has a CODECOV_TOKEN secret. The upload worked tokenless, which Codecov may refuse or rate-limit.

This changes the input to files and passes token: ${{ secrets.CODECOV_TOKEN }}. The job runs only on pushes to main, so this PR cannot exercise it. After it merges, the upload log for the push should show a token length above 0 and no warning.

Separately, Codecov's default branch for this repository is master, so its overview page shows stale data (38%) while main is at about 73%. That is a setting in Codecov, not in this repository.

An AI assistant (Claude Code) wrote this change.

🤖 Generated with Claude Code

The action's input is files, not file, so the run warned about an unexpected
input.  The upload also went tokenless because CODECOV_TOKEN was not passed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit 27bea31 into main Nov 26, 2026
32 checks passed
@petercorke
petercorke deleted the ci/codecov-files-token branch November 26, 2026 02:25
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