Skip to content

ci: give the health score step a codecov token so coverage counts toward the score #730

Backlog

Description

@zimeg

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:

No codecov token provided, skipping coverage retrieval.
{
  "comments": [],
  "coverageMisses": 0
}

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.

Activity

  1. added
    github_actions
    on Dec 4, 2026
  2. zimeg commented on Dec 4, 2026

    @zimeg
    MemberAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    github_actions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions