feat: pass github token for mise calls (#205)

This commit is contained in:
Mate Molnar 2025-06-25 14:20:55 +02:00 committed by GitHub
parent bb86feacf6
commit d24e3836a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 39 additions and 1 deletions

View file

@ -53,6 +53,15 @@ async function setEnvVars(): Promise<void> {
const logLevel = core.getInput('log_level')
if (logLevel) set('MISE_LOG_LEVEL', logLevel)
const githubToken = core.getInput('github_token')
if (githubToken) {
set('GITHUB_TOKEN', githubToken)
} else {
core.warning(
'No GITHUB_TOKEN provided. You may hit GitHub API rate limits when installing tools from GitHub.'
)
}
set('MISE_TRUSTED_CONFIG_PATHS', process.cwd())
set('MISE_YES', '1')