Keys / Codecov
CODECOV_TOKEN
The Codecov upload token CI sends coverage reports with. Private repositories need it, unless the Codecov action uploads with OIDC instead.
- Expires
- the docs don't say
- API
- none; Codecov settings only
Get it
Create one on app.codecov.io. The steps aren't recorded yet.
Set it
CODECOV_TOKEN=...
The Codecov CLI and codecov/codecov-action read it on their own. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- Repository token: in the repository's Configuration tab, under General, regenerate the upload token.
- Global upload token: regenerate it on the Global Upload Token tab of the organization's Settings. Every repository that uses it needs the new one.
- Deploy the new token everywhere that reads
CODECOV_TOKENright away. Uploads with the old token can fail until you do.
Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.