You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: give the health score step a codecov token so coverage counts toward the score #730
The chore(health) step in .github/workflows/test.yml passes codecov_token: ${{ secrets.CODECOV_API_TOKEN }}, but the unit job doesn't get that secret, so the score never includes code coverage. Runs on main with v0.2.1 and on v0.2.2 both log:
CODECOV_API_TOKEN is only set on the staging environment, and the unit job doesn't use an environment. Some options:
Add CODECOV_API_TOKEN as a repository secret, so the step reads it the way slack-health-score reads its own token.
Point the input at a secret the job already has. The CODECOV_TOKEN org secret is the upload token, though, and the health score needs an API token with read access (see the slack-health-score README).
Either way, the next run should log Pinging codecov API for coverage data... and report a nonzero coverageMisses wherever lines are uncovered.
📝 Other consumers of the health score show which setup works:
slackapi/python-slack-hooks and slackapi/deno-slack-api pass secrets.FILS_CODECOV_API_TOKEN, a repository secret, and their runs log Pinging codecov API for coverage data... (python-slack-hooks reported "coverageMisses": 11).
slackapi/slack-cli passes secrets.ELAINES_CODECOV_API_TOKEN and logs No codecov token provided, skipping coverage retrieval., the same as this repo.
So this needs a repository secret with a Codecov API token rather than a workflow change.
Activity
zimeg commentedon Dec 4, 2026
📝 Other consumers of the health score show which setup works:
slackapi/python-slack-hooksandslackapi/deno-slack-apipasssecrets.FILS_CODECOV_API_TOKEN, a repository secret, and their runs logPinging codecov API for coverage data...(python-slack-hooks reported"coverageMisses": 11).slackapi/slack-clipassessecrets.ELAINES_CODECOV_API_TOKENand logsNo codecov token provided, skipping coverage retrieval., the same as this repo.So this needs a repository secret with a Codecov API token rather than a workflow change.