From 3715f862542f0cb8645101f10f078fe3c5f17720 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Mon, 12 Oct 2026 11:56:47 +0100 Subject: [PATCH] Revert "Make `FS` available to `init`" This reverts commit 149926c8cdc1fe206f7ef5e8cb5482012f5ba575. --- src/action-common.ts | 4 +--- src/init-action.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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.