CODECOV_TOKEN secret for the https://github.com/eclipse-che/che-dashboard
Summary
After upgrading the codecov/codecov-action
to v4 it became mandatory to have the CODECOV_TOKEN secret to upload coverage reports.
Steps to reproduce
Re-run a coverage-report
job from this list:
https://github.com/eclipse-che/che-dashboard/actions/workflows/codecov.yml?query=branch%3Amain+is%3Asuccess++
Updated
Another option is to open a (draft) pull request against the che-dashboard repo.
What is the current bug behavior?
The codecov/codecov-action@v4
is not able to upload coverage reports with this error message:
Error: Codecov token not found. Please provide Codecov token with -t flag.
Warning: Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
What is the expected correct behavior?
The codecov/codecov-action@v4
successfully uploads coverage reports.
Relevant logs and/or screenshots
Logs from https://github.com/eclipse-che/che-dashboard/actions/runs/8684982466/job/23813534758
...
/usr/bin/git config --global --add safe.directory /home/runner/work/che-dashboard/che-dashboard
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit --git-service github
==> Uploader SHASUM verified (2c9804ba263ba6880d67a671c35388a72fbfe014bd814acd212d8ff38644bf91 codecov)
info - 2024-04-15 07:21:11,404 -- ci service found: github-actions
Error: Codecov token not found. Please provide Codecov token with -t flag.
Warning: Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Priority
-
Urgent -
High -
Medium -
Low
Severity
-
Blocker -
Major -
Normal -
Low
Impact
This positively impacts our development process, enabling us to consistently enhance test coverage and bolster project reliability.