GitLab users with private repositories may find the following error message when uploading coverage
{"error":"invalid_token","error_description":"Token is expired. You can either do re-authorization or token refresh."}
We suspect it’s due to the breaking change in GitLab 15. We are currently working on a fix for this, but the current workaround is to
- Log into GitLab as the bot user for the repository.
- Log into Codecov with that GitLab user.
Unfortunately, the refresh time is still in the order of hours and may require the previous steps to be repeated frequently until the fix is in place.
We will update this thread accordingly.