Skip to content

Commit

Permalink
chore: fixed kernel data return
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Sep 29, 2024
1 parent d3d7391 commit 3f17e9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
9 changes: 9 additions & 0 deletions src/types/process-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare global {
namespace NodeJS {
interface ProcessEnv {
GITHUB_TOKEN: string;
}
}
}

export {};

0 comments on commit 3f17e9e

Please sign in to comment.