Skip to content

Use GITHUB_TOKEN when downloading release assets to avoid rate-limiting #852

@TingluoHuang

Description

@TingluoHuang

Ensure the following before filing this issue

  • I verified it reproduces with the latest version with - uses: ruby/setup-ruby@v1 (see Versioning policy)

  • I tried to reproduce the issue locally by following the workflow steps (including all commands done by ruby/setup-ruby, except for Downloading Ruby & Extracting Ruby),
    and it did not reproduce locally (if it does reproduce locally, it's not a ruby/setup-ruby 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions