Skip to content

ci: remove Codecov - #8139

Merged
deansheather merged 1 commit into
mainfrom
secrets/remove-codecov
Nov 18, 2026
Merged

deansheather merged 1 commit into
mainfrom
secrets/remove-codecov

Conversation

@deansheather

Copy link
Copy Markdown
Collaborator

Removes Codecov and both references to the CODECOV_TOKEN repository secret, so the secret can be deleted. Part of moving coder repositories off repository-level secrets.

Codecov hasn't received coverage for main in over a year, but nobody noticed:

  • The newest main commit Codecov has is b27d982c from 2025-08-04 (Codecov public API). The repository is still active there.
  • Every run of the upload step since then reported success, for example push run 43358590319 on 2026-11-13. The step has fail_ci_if_error off, so failed uploads stay hidden.
  • CODECOV_TOKEN was last updated on 2021-04-22.

Changes

  • .github/workflows/build.yaml
    • Remove the codecov/codecov-action step from test-unit. npm run test:unit still runs.
    • Remove CODECOV_TOKEN from the linux-x64 job's env. No step in that job used it, but job-level env reached every step, including npm ci and the VS Code build.
  • Delete .github/codecov.yml.
  • Remove the Codecov badge from docs/README.md.

Checks

$ git grep -n -i codecov -- . ':!CHANGELOG.md' ':!*lock*'
(no output)
$ actionlint -shellcheck= .github/workflows/build.yaml        # clean
$ zizmor .github/workflows/build.yaml                         # same 24 findings as main, none new
$ prettier --check .github/workflows/build.yaml docs/README.md
All matched files use Prettier code style!

After merging

Delete the secret: gh secret delete CODECOV_TOKEN -R coder/code-server.


AI disclosure: an AI coding agent (Xum) wrote this change and ran the checks above at my direction. It stays a draft until I've reviewed it.

Codecov has not received a coverage upload for main since 2025-08-04, although
the upload step reported success on every run: the 2021 CODECOV_TOKEN no longer
works and fail_ci_if_error is off. Remove the upload step, its config and the
README badge, and the unused CODECOV_TOKEN in the linux-x64 job's environment,
which exposed the token to every step of that job.
@deansheather
deansheather marked this pull request as ready for review November 18, 2026 04:37
@deansheather
deansheather requested a review from a team as a code owner November 18, 2026 04:37
@deansheather
deansheather enabled auto-merge (squash) November 18, 2026 04:38

@code-asher code-asher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, I should have removed this a long time ago. Thanks!

@deansheather
deansheather merged commit 452dd09 into main Nov 18, 2026
9 of 10 checks passed
@deansheather
deansheather deleted the secrets/remove-codecov branch November 18, 2026 19:09
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.

3 participants