diff --git a/src/action-common.ts b/src/action-common.ts index 516325926..743ad9da5 100644 --- a/src/action-common.ts +++ b/src/action-common.ts @@ -1,4 +1,3 @@ -import * as fs from "fs"; import * as os from "os"; import * as core from "@actions/core"; @@ -84,7 +83,7 @@ export type ActionState = FieldsOf; * Each Action can then augment the `state` further if additional features are required. */ export type ActionMain = ( - state: ActionState<["Base", "FS", "Logger", "Env", "Actions"]>, + state: ActionState<["Base", "Logger", "Env", "Actions"]>, ) => Promise; /** A specification for a CodeQL Action step. */ @@ -115,7 +114,6 @@ export async function runInActions(action: Action) { platform: process.platform, arch: process.arch, osRelease: os.release(), - fs, logger, env, actions: actionsEnv, diff --git a/src/init-action.ts b/src/init-action.ts index a91562611..3445632ed 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -199,7 +199,7 @@ async function sendCompletedStatusReport( } async function run( - actionState: ActionState<["Base", "Logger", "Env", "Actions", "FS"]>, + actionState: ActionState<["Base", "Logger", "Env", "Actions"]>, ) { // To capture errors appropriately, keep as much code within the try-catch as // possible, and only use safe functions outside.