Before submitting a topic, please confirm the following
I have searched for similar issues before creating this topic.
I have verified that my repository is using the Codecov GitHub app, if using GitHub
I have validated my codecov.yaml
configuration file.
I have filled out the below sections to the best of my ability.
I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.
Description
I cannot use codecov for private repositories. The workflow runs fail, and in codecov I am unable to use the “Not yet enabled setup repo” link because it leads to a 403 page.
CI/CD URL
n/a
Codecov Output
[2023-03-24T18:24:45.667Z] ['verbose'] Start of uploader: 1679682285667...
[2023-03-24T18:24:45.670Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.4.0
[2023-03-24T18:24:45.676Z] ['info'] => Project root located at: /home/runner/work/always/always
[2023-03-24T18:24:45.676Z] ['info'] -> Token found by environment variables
[2023-03-24T18:24:45.677Z] ['verbose'] Start of network processing...
[2023-03-24T18:24:45.677Z] ['verbose'] Searching for files in /home/runner/work/always/always
[2023-03-24T18:24:45.684Z] ['verbose'] coveragepy is not installed
[2023-03-24T18:24:45.684Z] ['info'] Searching for coverage files...
[2023-03-24T18:24:45.770Z] ['verbose'] Preparing to clean the following coverage paths: ./coverage.txt
[2023-03-24T18:24:45.770Z] ['info'] => Found 1 possible coverage files:
./coverage.txt
[2023-03-24T18:24:45.770Z] ['verbose'] End of network processing
[2023-03-24T18:24:45.771Z] ['info'] Processing ./coverage.txt...
[2023-03-24T18:24:45.774Z] ['info'] Using manual override from args.
[2023-03-24T18:24:45.774Z] ['info'] Detected GitHub Actions as the CI provider.
[2023-03-24T18:24:45.774Z] ['verbose'] -> Using the following env variables:
[2023-03-24T18:24:45.775Z] ['verbose'] GITHUB_ACTION: __codecov_codecov-action
[2023-03-24T18:24:45.775Z] ['verbose'] GITHUB_HEAD_REF: add-must
[2023-03-24T18:24:45.775Z] ['verbose'] GITHUB_REF: refs/pull/1/merge
[2023-03-24T18:24:45.775Z] ['verbose'] GITHUB_REPOSITORY: wafer-bw/always
[2023-03-24T18:24:45.775Z] ['verbose'] GITHUB_RUN_ID: 4514239443
[2023-03-24T18:24:45.775Z] ['verbose'] GITHUB_SERVER_URL: https://github.com
[2023-03-24T18:24:45.775Z] ['verbose'] GITHUB_SHA: 88cd2ca89cae1528f2d2a920e1e80d00a716a1e1
[2023-03-24T18:24:45.776Z] ['verbose'] GITHUB_WORKFLOW: go
[2023-03-24T18:24:45.776Z] ['verbose'] Using the following upload parameters:
[2023-03-24T18:24:45.776Z] ['verbose'] branch
[2023-03-24T18:24:45.776Z] ['verbose'] build
[2023-03-24T18:24:45.776Z] ['verbose'] buildURL
[2023-03-24T18:24:45.777Z] ['verbose'] commit
[2023-03-24T18:24:45.777Z] ['verbose'] job
[2023-03-24T18:24:45.777Z] ['verbose'] pr
[2023-03-24T18:24:45.777Z] ['verbose'] service
[2023-03-24T18:24:45.777Z] ['verbose'] slug
[2023-03-24T18:24:45.777Z] ['verbose'] name
[2023-03-24T18:24:45.777Z] ['verbose'] tag
[2023-03-24T18:24:45.778Z] ['verbose'] flags
[2023-03-24T18:24:45.778Z] ['verbose'] parent
[2023-03-24T18:24:45.779Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.1-uploader-0.4.0&token=*******&branch=add-must&build=4514239443&build_url=https%3A%2F%2Fgithub.com%2Fwafer-bw%2Falways%2Factions%2Fruns%2F4514239443&commit=7dd097ca2d718f836b69137cd67e5c8e2f98f23a&job=go&pr=1&service=github-actions&slug=wafer-bw%2Falways&name=&tag=&flags=&parent=
[2023-03-24T18:24:45.779Z] ['verbose'] Passed token was 36 characters long
[2023-03-24T18:24:45.779Z] ['verbose'] https://codecov.io/upload/v4?package=github-action-3.1.1-uploader-0.4.0&branch=add-must&build=4514239443&build_url=https%3A%2F%2Fgithub.com%2Fwafer-bw%2Falways%2Factions%2Fruns%2F4514239443&commit=7dd097ca2d718f836b69137cd67e5c8e2f98f23a&job=go&pr=1&service=github-actions&slug=wafer-bw%2Falways&name=&tag=&flags=&parent=
Content-Type: 'text/plain'
Content-Encoding: 'gzip'
X-Reduced-Redundancy: 'false'
[2023-03-24T18:24:46.032Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Could not find a repository associated with upload token ***', code='not_found')}
[2023-03-24T18:24:46.033Z] ['verbose'] The error stack is: Error: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Could not find a repository associated with upload token ***', code='not_found')}
at main (/snapshot/repo/dist/src/index.js)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-03-24T18:24:46.033Z] ['verbose'] End of uploader: 366 milliseconds
Expected Results
- Clicking on the “Not yet enabled setup repo” link should allow me to set up my private repository.
- Code Coverage should be uploaded according to the codecov docs:
Actual Results
- Clicking on the “Not yet enabled setup repo” link leads to an “Unauthorized” page with text:
Unauthorized
Activation is required to view this repo, please click here to activate your account.
Check on Codecov’s status or see our docs for common support.
Error 403- Following the “click here” link leads to my “members” page which says I have 0 of 5 available seats and lists no members.
- This does not make sense, this is a personal github account I am logging into codecov through, my username should be listed as a member here, correct?
- Since my username is not listed I’m not able to activate myself as a member.
- I cannot manually add my username as a member.
- Why does the link lead me here if my account is activated?
- Following the “click here” link leads to my “members” page which says I have 0 of 5 available seats and lists no members.
- Code Coverage is not uploaded according to the codecov docs, instead it reports the “Could not find a repository associated with upload token” message despite…
- my plan including private repositories
- my token being freshly generated & provided within the workflow run
- granting codecov access to all repositories on my github account
Additional Information
- Codecov plan: Basic Free w/ Unlimited private repositories
- Things I have tried already
- Uninstalling & revoking codecov from my github account then readding it
- Running the workflow with & without a token
- Uninstalling & revoking codecov from my github account, deleting my entire codecov account and logging back in through github
- Generating a fresh codecov token
- Resyncing my repos
- I am not using a codecov yaml which is perfectly fine according to the docs here