codecov / codecov-action

GitHub Action that uploads coverage to Codecov :open_umbrella:
https://www.codecov.io
MIT License
1.45k stars 202 forks source link

Codecov token provided but not found #1340

Closed dwisiswant0 closed 6 months ago

dwisiswant0 commented 6 months ago

Just got this error today, never happened before:

Error: Codecov token not found. Please provide Codecov token with -t flag.
Error: Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1

Workflow file:

      - name: Upload coverage to Codecov
        uses: codecov/codecov-action@v4
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          file: coverage.txt
          verbose: true
          fail_ci_if_error: true

https://github.com/kitabisa/teler-waf/actions/runs/8384025562/workflow#L46-L52

dwisiswant0 commented 6 months ago

Solved. Workaround: https://github.com/codecov/codecov-action/issues/1292#issuecomment-1960681670.