Skip to content

Conversation

zryfish
Copy link

@zryfish zryfish commented Sep 14, 2025

  • Added _github_auth_headers() to read GH_TOKEN or GITHUB_TOKEN and return an Authorization header.
  • Applied the header to:
    - GitHub API call for latest release (client.get(...)).
    - Asset download request (client.stream(...)) to cover initial GitHub redirect.

@zryfish zryfish requested a review from localden as a code owner September 14, 2025 16:07
@localden
Copy link
Collaborator

Thanks for the contribution, @zryfish - is the scenario here that you want to run the CLI inside GitHub Actions, or generically on your development box?

@localden localden self-assigned this Sep 15, 2025
@zryfish
Copy link
Author

zryfish commented Sep 15, 2025

Thanks for the contribution, @zryfish - is the scenario here that you want to run the CLI inside GitHub Actions, or generically on your development box?

I keep hitting the “rate limit exceeded” error on my laptop, even though I’m just on my home network. Still, this setup might come in handy when running in GitHub Actions or on a dev box.

GitHub API returned 403 for https://api.github.com/repos/github/spec-kit/releases/latest

@localden localden mentioned this pull request Sep 16, 2025
@localden
Copy link
Collaborator

Makes sense. @zryfish - let's also expose this as an argument to the CLI, like --github-token

@duccadhv1
Copy link

Makes sense. @zryfish - let's also expose this as an argument to the CLI, like --github-token

any update for cli argument?

@zryfish
Copy link
Author

zryfish commented Sep 17, 2025

Makes sense. @zryfish - let's also expose this as an argument to the CLI, like --github-token

any update for cli argument?

Yeah, I've added the cli argument --github-token. @localden Please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants