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 upload from CI is broken #3365

Open
FreezyLemon opened this issue Mar 12, 2024 · 0 comments
Open

Codecov upload from CI is broken #3365

FreezyLemon opened this issue Mar 12, 2024 · 0 comments

Comments

@FreezyLemon
Copy link
Contributor

Since #3348, CI can't upload codecov stats for the master branch:

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

example run

The codecov repo mentions this as a breaking change:

Tokenless uploading is unsupported. However, PRs made from forks to the upstream public repos will support tokenless (e.g. contributors to OS projects do not need the upstream repo's Codecov token)

This can be fixed by creating/getting an upload token on codecov, setting it as a secret (e.g. CODECOV_TOKEN) in the GitHub repo and then adding it to the CI job:

uses: codecov/codecov-action@v4
with:
    files: lcov.info
    token: ${{ secrets.CODECOV_TOKEN }} # this is new
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

1 participant