codecov-action: Not valid tokenless upload

I believe this has been happening for a few weeks now, but many of our PRs using tokenless upload (they are PRs from open source forks) fail with Report creating failed: {"detail":"Not valid tokenless upload"}

Here is an example: https://github.com/doctrine/dbal/actions/runs/9554014292/job/26334506168

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 29 (8 by maintainers)

Commits related to this issue

Most upvoted comments

@joseph-sentry Unfortunately, the problem doesn’t seem to be resolved. 😢

Error: Codecov token not found. Please provide Codecov token with -t flag.

https://github.com/stylelint/stylelint/actions/runs/9617068584/job/26528019385?pr=7783#step:7:44

PR: https://github.com/stylelint/stylelint/pull/7783


EDIT: I confirmed v0.7.1 was used:

==> Running version v0.7.1

https://github.com/stylelint/stylelint/actions/runs/9617068584/job/26528019385?pr=7783#step:7:33

@greg0ire I actually need to dig in and figure it out for myself, but it smelled like an empty string vs null value thing. I would assume somewhere (probably CLI), we take “” to mean you want to use that as the token. That’s probably a bug on our side, but I wanted to unblock you quickly.

@joseph-sentry Thanks for the quick patch! I’ll try it soon. 👍🏼

By the way, the release notes and the changelog link seem incorrect to me in https://github.com/codecov/codecov-cli/releases/tag/v0.7.1 because of too many items. 👀

@greg0ire I think you need to remove the double-quotes from this line

Hi all, indeed tokenless uploads were broken for v0.7.0 of the CLI, we just released v0.7.1 which should fix that bug. If you’ve already versioned to v0.6.0, that should work fine as well.