question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Passing secrets.CODECOV_TOKEN not recognized

See original GitHub issue

Having set up the secret CODECOV_TOKEN and passing it as ${{ secrets.CODECOV_TOKEN }} the upload fails with the message:

HTTP 400
Please provide the repository token to upload reports via `-t :repository-token`

This is both for v1 and v1.0.5 of codecov-action.

It seems that the action’s environment variable CODECOV_TOKEN is not set properly or not recognized?

It should be mentioned that this has recently started failing, without changing the actions workflow otherwise, i.e., it used to work, but now throws this error.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ibrahim0814commented, Dec 18, 2019

Hi @CasperWA, thanks for bringing this up! You’re right, secrets are not available for forks of repositories, therefore the token wasn’t available when you tried to upload to Codecov from the forked repository. I’ll push an update to our readme soon because it’s definitely worth clarifying

With regards to tokenless uploads, we do plan to support them when GitHub releases an API for Actions around early 2020.

1reaction
frgfmcommented, Sep 11, 2020

@thomasrockhu Oh thanks! Reading about the issue earlier in other discussions, switching to the latest version didn’t seem to help them. But apparently I should have tried it out, because it works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Github Checks do not Show Up - Support - Codecov
Github Checks are not showing up on my pull requests (I'd expect both patch and project checks) · I see Unable to find...
Read more >
Security - Codecov
Scanning repos for secrets (API keys, passwords, etc) to ensure they are not stored or hard coded in our code base. Usage of...
Read more >
code coverage - Why is codedov not showing the report?
Run codecov/codecov-action@v2.1.0 ==> linux OS detected ... [2022-01-10T09:50:48.495Z] ['verbose'] Passed token was 36 characters long ...
Read more >
Setting up a CI/CD workflow on GitHub Actions for a React ...
You will see a token, that token will not be useful if your ... you must include the codecov token, through a secret...
Read more >
airflow-codecov-action - Git at Google
Note: This assumes that you've set your Codecov token inside Settings > Secrets as CODECOV_TOKEN . If not, you can get an upload...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found