From 3f17e9e091e9713683bc83567d74631dcb1af792 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Mon, 30 Sep 2024 02:56:14 +0900 Subject: [PATCH] chore: fixed kernel data return --- src/main.ts | 2 +- src/types/process-env.d.ts | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/types/process-env.d.ts diff --git a/src/main.ts b/src/main.ts index 23a3e74..91490bc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -28,7 +28,7 @@ export async function run() { await plugin(inputs, env); - return returnDataToKernel(inputs.authToken, inputs.stateId, {}); + return returnDataToKernel(process.env.GITHUB_TOKEN, inputs.stateId, {}); } async function returnDataToKernel(repoToken: string, stateId: string, output: object) { diff --git a/src/types/process-env.d.ts b/src/types/process-env.d.ts new file mode 100644 index 0000000..a2bb98f --- /dev/null +++ b/src/types/process-env.d.ts @@ -0,0 +1,9 @@ +declare global { + namespace NodeJS { + interface ProcessEnv { + GITHUB_TOKEN: string; + } + } +} + +export {};