action #120843
open[sporadic] Codecov upload errors for branches other than master - github <--> codecov api 404
0%
Description
Observation¶
Since #120175 added an upload token for the master branch there are no more upload errors. But since branches outside the os-autoinst
org cannot use the token, they can still run into the problem when opening pull requests.
- https://github.com/os-autoinst/os-autoinst/actions/runs/3471060371/jobs/5800053830
- https://github.com/os-autoinst/os-autoinst/actions/runs/3515096990/jobs/5889928669
Acceptance criteria¶
- AC1:: No more upload errors for branches outside the
os-autoinst
org
Suggestions¶
- Maybe revisit unimplemented solutions from #120175 (action retry, ignore failed uploads)
Updated by kraih about 2 years ago
- Related to action #120175: [sporadic]The CI badge in https://github.com/os-autoinst/os-autoinst shows failed - github <--> codecov api 404 size:M added
Updated by tinita 6 months ago
This is still happening sporadically in github workflows.
One workaround to use secrets would be https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run
The workflow started by the workflow_run event is able to access secrets and write tokens, even if the previous workflow was not. This is useful in cases where the previous workflow is intentionally not privileged, but you need to take a privileged action in a later workflow.
We would upload the coverage data as an artifact, and trigger another workflow that uploads it to codecov.