From 401496f19ff98116d1fff2eb7dc42559cb68dab7 Mon Sep 17 00:00:00 2001 From: David Blass Date: Tue, 11 Nov 2025 17:56:59 -0500 Subject: [PATCH] read github token from inputs --- entry.js | 6 +++++- entry.ts | 6 ++++++ package.json | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/entry.js b/entry.js index 2cdc580..ea44df0 100755 --- a/entry.js +++ b/entry.js @@ -40481,7 +40481,7 @@ function query({ // package.json var package_default = { name: "@pullfrog/action", - version: "0.0.93", + version: "0.0.94", type: "module", files: [ "index.js", @@ -41560,6 +41560,10 @@ async function run() { log.debug(`New working directory: ${process.cwd()}`); } try { + const githubTokenInput = core3.getInput("github_token"); + if (githubTokenInput) { + process.env.GITHUB_TOKEN = githubTokenInput; + } const inputs = { prompt: core3.getInput("prompt", { required: true }), anthropic_api_key: core3.getInput("anthropic_api_key") || void 0 diff --git a/entry.ts b/entry.ts index 3110c25..8caed4f 100644 --- a/entry.ts +++ b/entry.ts @@ -18,6 +18,12 @@ async function run(): Promise { } 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, diff --git a/package.json b/package.json index b9bfb12..095e8aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pullfrog/action", - "version": "0.0.93", + "version": "0.0.94", "type": "module", "files": [ "index.js",