Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codecov token not found. Please provide Codecov token with -t flag. #1637

Closed
nbari opened this issue Nov 12, 2024 · 4 comments
Closed

Codecov token not found. Please provide Codecov token with -t flag. #1637

nbari opened this issue Nov 12, 2024 · 4 comments
Assignees

Comments

@nbari
Copy link

nbari commented Nov 12, 2024

I keep getting this error:

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

https://github.com/s3m/s3m/actions/runs/11792881004/job/32847610066#step:7:35

Either using token or env this always happens:

 - name: Upload to codecov.io
        uses: codecov/codecov-action@v4
        env:
          CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
        with:
          files: coverage.lcov
          flags: rust

or with token:

- uses: codecov/codecov-action@v4
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          files: ./coverage.lcov
          flags: rust
@thomasrockhu-codecov
Copy link
Contributor

thomasrockhu-codecov commented Nov 12, 2024

@nbari have you set a CODECOV_TOKEN in your GitHub repository secrets?

Image

I'm seeing it being passed in as blank, it should look like CODECOV_TOKEN: ***

Image

@thomasrockhu-codecov thomasrockhu-codecov self-assigned this Nov 13, 2024
@nbari
Copy link
Author

nbari commented Nov 13, 2024

Hi @thomasrockhu-codecov , thanks for your time on this, indeed I do have the token, just in case I updated it with the global token from: https://app.codecov.io/account/github/s3m/org-upload-token

Image

Any idea of how to ensure it is used in the github actions ? (I think I may need to use secrets: inherit)

@nbari
Copy link
Author

nbari commented Nov 13, 2024

secrets: inherit was missing, thanks it is working now

@nbari nbari closed this as completed Nov 13, 2024
@thomasrockhu-codecov
Copy link
Contributor

@nbari ahhh got it, thanks for checking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants