-
Notifications
You must be signed in to change notification settings - Fork 213
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
Upload with v3
action fails because of missing token
#1359
Comments
…es (#6253) The `v3` action appears to use the `v4` API: ``` [2024-04-07T11:12:15.874Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.6-uploader-0.7.2&token=*******&branch=windows_cfg_added_more_obsolte_functions&build=8586929612&build_url=https%3A%2F%2Fgithub.com%2Fdanmar%2Fcppcheck%2Factions%2Fruns%2F8586929612%2Fjob%2F23532898031&commit=5f9e79c47e8f116481df6fb981dc67eef975344e&job=Coverage&pr=6251&service=github-actions&slug=danmar%2Fcppcheck&name=danmar%2Fcppcheck&tag=&flags=unittests&parent= [2024-04-07T11:12:16.167Z] ['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')} Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255 ``` I filed codecov/codecov-action#1359 upstream.
Codecov uploads recently started failing relates to codecov/codecov-action#1359 Signed-off-by: Arko Dasgupta <[email protected]>
* dont fail CI is Codecov upload fails Codecov uploads recently started failing relates to codecov/codecov-action#1359 Signed-off-by: Arko Dasgupta <[email protected]> * fix lint Signed-off-by: Arko Dasgupta <[email protected]> --------- Signed-off-by: Arko Dasgupta <[email protected]>
* dont fail CI is Codecov upload fails Codecov uploads recently started failing relates to codecov/codecov-action#1359 Signed-off-by: Arko Dasgupta <[email protected]> * fix lint Signed-off-by: Arko Dasgupta <[email protected]> --------- Signed-off-by: Arko Dasgupta <[email protected]> (cherry picked from commit e12fdeb) Signed-off-by: Arko Dasgupta <[email protected]>
* dont fail CI is Codecov upload fails Codecov uploads recently started failing relates to codecov/codecov-action#1359 Signed-off-by: Arko Dasgupta <[email protected]> * fix lint Signed-off-by: Arko Dasgupta <[email protected]> --------- Signed-off-by: Arko Dasgupta <[email protected]> (cherry picked from commit e12fdeb) Signed-off-by: Arko Dasgupta <[email protected]>
dont fail CI if codecov upload fails (#3123) * dont fail CI is Codecov upload fails Codecov uploads recently started failing relates to codecov/codecov-action#1359 * fix lint --------- (cherry picked from commit e12fdeb) Signed-off-by: Arko Dasgupta <[email protected]>
Try fixing the following codecov failure: Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255 Based on codecov/codecov-action#1359, just avoid failing the CI if Codecov fails, till they will find a resolution. Signed-off-by: Sharon Gratch <[email protected]>
Updating to |
@firewave, I tested as well, and upgrading to v4 without token unfortunately did not work for us (commit here). Looks like for @jvallesm it didn't work either. It is indeed very strange why it works without a token, since according to this, tokenless uploads are not supported anymore in v4:
Actually reading this it sounds like tokenless is only supported for forks. I read the actions logs here from @firewave's run and it also appears that v4 worked from a forked repo:
I'll check:
|
Same here. It fixed the PRs but fails after those have been merged to the trunk:
We do not have the app installed for our repo. That is necessary avoid the quota issues but maybe that has an effect here as well. |
@firewave, we got it to work now on our side:
Hope this helps Here is the workflow config. |
tokenless upload seems break for codecov-action v3, no fix upstream. Upgrading to v4 with a upload token. Ref codecov/codecov-action#1359
After spending over an hour grappling with this issue, it seems like my problem was with the token (which is stored as a secret) missing in codecov when triggering via a For anyone facing the same problem, my workaround is passing the secret from the caller job into the workflow job. This allows codecov to receive the token. Here's the change that did the trick for me: https://github.com/Open-Attestation/document-store/pull/170/files You only have to pass the |
tokenless upload seems break for codecov-action v3, no fix upstream. Upgrading to v4 with a upload token. Ref codecov/codecov-action#1359
Seems like the original posters have figured out the issue. If you are still experiencing this, please open a new issue in our |
The
v3
action started to fail today because it is done without a token:Interestingly the
v3
action seems to use thev4
API which appears wrong to me:The text was updated successfully, but these errors were encountered: