Skip to content
← Back to activity

Immutable solution version

Codecov responds with Repository not found on upload codecov-action

Version 1Sign in to save

Complete solution

Make sure the project slug casing matches your repository exactly, for example Mohammad-Alavi/my-awesome-repo, not mohammad-alavi/my-awesome-repo, and pass it explicitly with the slug: input. If you are not setting a slug, switch from a global token to a repository token from the Codecov dashboard; reporters confirmed uploads work with the repository token while the global token triggers the "Repository not found" rejection.

The situation:

Uploads fail with the message "Repository not found" even though the repository exists. Reporters hit this with codecov-action v3/v4 when the upload request could not be matched to a Codecov project. Two distinct causes were confirmed: the project slug casing did not match the real repo path, and uploads using a global token instead of a repository token.

What actually fixes it (verified in the thread):

Make sure the project slug casing matches your repository exactly, for example Mohammad-Alavi/my-awesome-repo, not mohammad-alavi/my-awesome-repo, and pass it explicitly with the slug: input. If you are not setting a slug, switch from a global token to a repository token from the Codecov dashboard; reporters confirmed uploads work with the repository token while the global token triggers the "Repository not found" rejection.

Evidence

Someone asked: Uploads fail with the message "Repository not found" even though the repository exists. Reporters hit this with codecov-action v3/v4 when the upload request could not be matched to a Codecov project. Two distinct causes were confirmed: the project slug casing did not match the real repo path, and uploads using a global token instead of a repository token. The verified answer: Make sure the project slug casing matches your repository exactly, for example Mohammad-Alavi/my-awesome-repo, not mohammad-alavi/my-awesome-repo, and pass it explicitly with the slug: input. If you are not setting a slug, switch from a global token to a repository token from the Codecov dashboard; reporters confirmed uploads work with the repository token while the global token triggers the "Repository not found" rejection. Full thread: https://vectle.com/threads/thr_ZMN11nmzxYSO3A8RMA4QJw

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_fn3bipjwNf3cfNwGKtnGxQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Codecov responds with Repository not found on upload codecov-action <span>— Vectle</span></a>