-
Notifications
You must be signed in to change notification settings - Fork 14
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: remove token, turn off CI failure #531
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #531 +/- ##
=======================================
Coverage 57.27% 57.27%
=======================================
Files 169 169
Lines 8487 8487
Branches 1160 1160
=======================================
Hits 4861 4861
Misses 3299 3299
Partials 327 327
Flags with carried forward coverage won't be shown. Click here to find out more. |
See also: netobserv/network-observability-console-plugin#531 Also, align the workflow file with other repos
* Codecov: remove token, turn off CI failure See also: netobserv/network-observability-console-plugin#531 Also, align the workflow file with other repos * Add codecov on push / align with other repos workflows
codecov upload per PR regularly fails with an error saying it's using tokenless mode, e.g:
This happens despite we're setting the
CODECOV_TOKEN
in the workflow, or at least we think we do it.In my understanding, the reason is that workflows on
pull_request
don't have access to secrets for security reasons. So theCODECOV_TOKEN
variable that we pass is actually an empty string.Now, something not clear to me yet, is why would we need to upload a report per unmerged pull request? The reports are actually uploaded on merged commits (and this works fine). I think the codecov app should be able to post comments per PR, without having to necessarily upload a report, but that's still something I need to figure out.
[Edit, after some digging]: confirming that tokens are ignored in
pull_request
events, cf https://docs.codecov.com/docs/codecov-uploader#supporting-token-less-uploads-for-forks-of-open-source-repos-using-codecovIt doesn't seem possible to just ask codecov to post comments without doing the report upload (yet to be confirmed).
Refs: codecov/codecov-action#1431, codecov/feedback#301