Skip to content

[feat] Add a way to pass a GitHub authentication token to Blowdryer - #81

Open
glektarssza wants to merge 2 commits into
masterfrom
feature/github-auth-token-support
Open

[feat] Add a way to pass a GitHub authentication token to Blowdryer#81
glektarssza wants to merge 2 commits into
masterfrom
feature/github-auth-token-support

Conversation

@glektarssza

Copy link
Copy Markdown
Member

Summary

As said in the title, added a way to pass a GitHub Personal Access Token (PAT) to Blowdryer.

This lets developers get past GitHub's rate limiting for unauthenticated users.

I ran into this situation today while trying to test GTNewHorizons/FindIt#34.

image

As you can see, Gradle is failing because GitHub is refusing to let me access the .importorder file from the shared configuration file repository due to the rate limiting imposed on unauthenticated users.

From GitHub's docs, this rate limit is 60 requests per hour for the REST API, which I think also applies to things fetched from their raw.githubusercontent.com domain too (though I'm not 100% sure on this).

Users who authenticate with some kind of access token are given a much higher rate limit. Blowdryer supports this via the authToken API on the GitHub object.

This PR adds a new setting called gtnh.settings.blowdryerGitHubAuthToken. It defaults to an empty string. If it is not empty the value will be passed to the authToken method on the retrieved Blowdryer GitHub object as the value to use for authentication with GitHub's APIs.

Testing

image

Checklist

  • [-] I have tested this PR in DevEnv
    • N/A
  • [-] I have tested this PR in Fullpack
    • N/A
  • [+] I have tested this PR locally while building another mod
  • [+] This PR is in compliance with the GTNH AI Policy
    • Home rolled right here in Canada!
  • [-] This PR requires another PR in order to merge
    • N/A

This lets developers get past GitHub's rate limiting for unauthenticated
users.
@glektarssza
glektarssza requested review from a team and eigenraven July 9, 2026 00:37
@glektarssza glektarssza added the New Feature Add something new. Please explain in detail how it works. label Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Feature Add something new. Please explain in detail how it works.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant