-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use Octokit client to download buildx #191
Conversation
Signed-off-by: CrazyMax <[email protected]>
Signed-off-by: CrazyMax <[email protected]>
3592bcd
to
4c3fce4
Compare
Using |
@rmg So needs to enforce server url in octokit? |
@rmg You mean https://github.com/actions/toolkit/tree/main/packages/github#usage?:
That doesn't look to be related |
Having it as an input is good, but making the default a little smarter would be good, eg: from token:
description: Used to pull node distributions from go-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
default: ${{ github.server_url == 'https://github.com' && github.token || '' }} |
|
@rmg Is there a place where we can hardcode it to |
I think with: .getOctokit(githubToken, {
baseUrl: config.GITHUB_API_URL
}) |
@rmg Ah yes just found actions/toolkit#449 |
FWIW it took GitHub a few tries to get this right for their own actions: https://github.com/actions/setup-python/pulls?q=is%3Apr+token+is%3Aclosed |
fixes #190