Failed to download action - Error: Response status code does not indicate success: 401 (Unauthorized)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 1.4k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 24
Description
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?
Job Log Output
https://github.com/getsentry/sentry/actions/runs/9289226093/job/25562606115#step:7:4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the action-download failure shown in the linked GitHub Actions job log and trace the request to the GitHub API tarball endpoint. Investigate why a public action intermittently receives HTTP 401 responses; done means reproducing or explaining the failure and confirming that public actions download successfully without unauthorized errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, github-actions
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100