Revert "Make FS available to init"

This reverts commit 149926c8cd.
This commit is contained in:
Henry Mercer
2026-10-12 11:56:47 +01:00
parent b5ce898d79
commit 3715f86254
2 changed files with 2 additions and 4 deletions

View File

@@ -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<Fs extends readonly StateFeature[]> = FieldsOf<Fs>;
* 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<void>;
/** 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,

View File

@@ -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.