Conversation
|
Thanks for your analysis on this @hduelme. I've updated the setting, so now it should work. Nevertheless, don't you think that it would make sense to disable the coverage upload from forks? |
|
@filiphr The GitHub Actions in contributors repositories are still failing on coverage upload: https://github.com/hduelme/mapstruct-idea/actions/runs/20554191598/job/59036022262. If you want I could have a look at our options for the GitHub Actions. |
|
That's weird @hduelme. The configuration looks like:
Yes we can do this. If we add something like: in the "Upload coverage to Codecov" step then the step will not run in forks. We do something similar for publishing snapshots in core MapStruct |
|
@filiphr I opened a new PR, where I change the workflow to skip the upload. |

Codecov now requires a token for coverage uploads by default. This causes GitHub workflows from contributors to fail, for example: https://github.com/hduelme/mapstruct-idea/actions/runs/20526826353/job/58971584684
Codecov Action v5 introduces support for tokenless uploads. To enable this, a repository setting must be changed in Codecov. See https://docs.codecov.com/docs/codecov-tokens#uploading-without-a-token
For more details about the v5 migration, see: https://github.com/codecov/codecov-action?tab=readme-ov-file#migration-guide