Ensure the following before filing this issue
Are you running on a GitHub-hosted runner or a self-hosted runner?
GitHub-hosted runner
Link to the failed workflow job (must be a public workflow job, so the necessary information is available)
I don't have one
Any other notes?
The GitHub platform has more restriction on request without auth header, since Actions provides a GITHUB_TOKEN by default, I think we should leverage that to help the setup-ruby action improve its stability.
I copied a similar pattern we have in actions/setup-node https://github.com/actions/setup-node/blob/main/action.yml#L18
and created #851