actions / runner

The Runner for GitHub Actions :rocket:
https://github.com/features/actions
MIT License
4.64k stars 892 forks source link

Failed to download action - Error: Response status code does not indicate success: 401 (Unauthorized) #3310

Open billyvg opened 1 month ago

billyvg commented 1 month ago

Describe the bug We have been having problems the last 24 hours with downloading an action. It intermittently fails with a 401:

Prepare all required actions
Getting action download info
Download action repository 'codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a[2](https://github.com/getsentry/sentry/actions/runs/9289226093/job/25562606115#step:7:2)31044' (SHA:e0b68c6749509c5f8[3](https://github.com/getsentry/sentry/actions/runs/9289226093/job/25562606115#step:7:3)f984dd99a76a1c1a231044)
Warning: Failed to download action 'https://api.github.com/repos/codecov/codecov-action/tarball/e0b68c6749509c5f83f98[4](https://github.com/getsentry/sentry/actions/runs/9289226093/job/25562606115#step:7:4)dd99a76a1c1a231044'. Error: Response status code does not indicate success: 401 (Unauthorized).
Warning: Back off 21.776 seconds before retry.
Warning: Failed to download action 'https://api.github.com/repos/codecov/codecov-action/tarball/e0b68c6749509c5f83f984dd99a76a1c1a231044'. Error: Response status code does not indicate success: 401 (Unauthorized).
Warning: Back off 24.74[5](https://github.com/getsentry/sentry/actions/runs/9289226093/job/25562606115#step:7:5) seconds before retry.
Error: Response status code does not indicate success: 401 (Unauthorized).

To Reproduce Steps to reproduce the behavior: This is intermittent so a bit hard to reproduce reliably. This has been failing on our public repro which you can see here (logs posted above): https://github.com/getsentry/sentry/actions/runs/9289226093/job/25562606115#step:7:4

Expected behavior The action should be able to be downloaded as it is public.

Runner Version and Platform

Using GH runners

What's not working?

image
Warning: Failed to download action 'https://api.github.com/repos/codecov/codecov-action/tarball/e0b68c6749509c5f83f98[4](https://github.com/getsentry/sentry/actions/runs/9289226093/job/25562606115#step:7:4)dd99a76a1c1a231044'. Error: Response status code does not indicate success: 401 (Unauthorized).

Job Log Output

https://github.com/getsentry/sentry/actions/runs/9289226093/job/25562606115#step:7:4