install-action icon indicating copy to clipboard operation
install-action copied to clipboard

pass GITHUB_TOKEN for cargo binstall for per-ip rate limit

Open anatawa12 opened this issue 1 year ago • 1 comments

In some case, cargo binstall will face API per-ip rate limit on github actions runner (due to shared ip address).

As a solution, I want install-action to have an feature to pass github.token to cargo binstall as a GITHUB_TOKEN environment variable or parameter.

https://github.com/vrc-get/vrc-get/actions/runs/9664217883/job/26658335596#step:7:1

As a workaround, we can specify env: { GITHUB_TOKEN: ${{ github.token }} }

anatawa12 avatar Jun 25 '24 17:06 anatawa12

See https://github.com/taiki-e/install-action/issues/556 for the previous discussion.

taiki-e avatar Jun 25 '24 17:06 taiki-e

Same problems here, whenever I work on editing/improving a workflow and need to run it more often, like every 3-5 Minutes, and make a lot of requests - this would be indeed helpful.

simonsan avatar Nov 10 '24 23:11 simonsan

cc @taiki-e maybe we should reopen the PR to pass secrets.GITHUB_TOKEN?

I also wish GitHub provide more relaxed rate limit for the read-only APIs, but I understand that they don't have that much resources to burn on.

NobodyXu avatar Nov 11 '24 08:11 NobodyXu

#556 has been released in 2.46.0.

taiki-e avatar Dec 04 '24 17:12 taiki-e