read github token from inputs

This commit is contained in:
David Blass
2025-11-11 17:56:59 -05:00
parent 8822968cbb
commit 401496f19f
3 changed files with 12 additions and 2 deletions
+6
View File
@@ -18,6 +18,12 @@ async function run(): Promise<void> {
}
try {
// Set GITHUB_TOKEN from input if provided (allows fallback to env var)
const githubTokenInput = core.getInput("github_token");
if (githubTokenInput) {
process.env.GITHUB_TOKEN = githubTokenInput;
}
const inputs: Inputs = {
prompt: core.getInput("prompt", { required: true }),
anthropic_api_key: core.getInput("anthropic_api_key") || undefined,