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 {};