Closed fmauch closed 6 months ago
btw: you can test this with a calling workflow, where you specifiy your repo for the reusable workflow.
I'll play around with that...
it seems that v4 has lots of issues, and similar reported errors https://github.com/codecov/codecov-action/issues/1292 should we downgrade it to v4 until it get certainly fixed upstream?
Without the custom path I got this working: https://app.codecov.io/gh/fmauch/control_toolbox/tree/test_coverage with corresponding https://github.com/fmauch/control_toolbox/actions/runs/8086437364/job/22096586430 and https://github.com/fmauch/control_toolbox/blob/test_coverage/.github/workflows/build-coverage.yml
Let's check if this works also from forks: https://github.com/fmauch/control_toolbox/pull/1
I configured the other repos with secrets: inherit
, I'm not sure where the advantages are..
Let's check if this works also from forks: fmauch/control_toolbox#1 I configured the other repos with
secrets: inherit
, I'm not sure where the advantages are..
https://github.com/fmauch/control_toolbox/actions/runs/8095478742/attempts/1: "Secret CODECOV_TOKEN is required, but not provided while calling."
I can update this PR to not requiring it as an input and see whether inheriting works.
Yep, that seems to be working: https://github.com/fmauch/control_toolbox/actions/runs/8095478742/job/22122490451
Great:
info - 2024-02-29 12:01:35,886 -- The PR is happening in a forked repo. Using tokenless upload.
You changed now my PR for ros-controls/control_toolbox. but let's merge this one first. We always can revert it ;)
You changed now my PR for ros-controls/control_toolbox. but let's merge this one first. We always can revert it ;)
Ah sorry, I didn't realize you were using the same branch. for creating the PR at my fork.
Regarding the inherit
vs. explicitly passing in the secret: When passing in the secret explicitly, the workflow could potentially be reused outside of the ros-controls organization. But for the moment I would also be fine with doing it that way.
Since 4v this is required. For this to work, adding a
CODECOV_TOKEN
action secret needs to be added to the GH repository.This should fix our problems on uploading the code coverage as discussed in https://github.com/ros-controls/control_toolbox/pull/188. Closes #15
In the target repo a secret has to be added in the project settings:
The token can be extracted on codecov.io.