mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-20 16:21:53 +00:00
feat: pass github token for mise calls (#205)
This commit is contained in:
parent
bb86feacf6
commit
d24e3836a6
5 changed files with 39 additions and 1 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue