From 95478552e85b0b14498da22da2ec34e8957a507f Mon Sep 17 00:00:00 2001 From: Jill Regan Date: Wed, 18 Feb 2026 13:57:08 -0500 Subject: [PATCH] Fix linting issues --- src/index.ts | 1 - src/utils.test.ts | 11 ++++++++--- src/utils.ts | 3 +-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7cb7b76..2cf0995 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,7 +26,6 @@ const loadSecretsAction = async () => { dotenv.config({ path: file }); } - const isConnect = process.env[envConnectHost] && process.env[envConnectToken]; // If Connect is used, download and install the CLI diff --git a/src/utils.test.ts b/src/utils.test.ts index 99d3079..a6a1f24 100644 --- a/src/utils.test.ts +++ b/src/utils.test.ts @@ -210,7 +210,6 @@ describe("loadSecrets when using Service Account", () => { mockResolve.mockResolvedValue("resolved-secret-value"); }); - it("does not call op env ls when using Service Account", async () => { await loadSecrets(false); expect(exec.getExecOutput).not.toHaveBeenCalled(); @@ -219,7 +218,10 @@ describe("loadSecrets when using Service Account", () => { it("sets step output with resolved value when export-env is false", async () => { await loadSecrets(false); expect(core.setOutput).toHaveBeenCalledTimes(1); - expect(core.setOutput).toHaveBeenCalledWith("MY_SECRET", "resolved-secret-value"); + expect(core.setOutput).toHaveBeenCalledWith( + "MY_SECRET", + "resolved-secret-value", + ); }); it("masks secret with setSecret when export-env is false", async () => { @@ -247,7 +249,10 @@ describe("loadSecrets when using Service Account", () => { it("does not set step output when export-env is true", async () => { await loadSecrets(true); - expect(core.setOutput).not.toHaveBeenCalledWith("MY_SECRET", expect.anything()); + expect(core.setOutput).not.toHaveBeenCalledWith( + "MY_SECRET", + expect.anything(), + ); }); it("masks secret with setSecret when export-env is true", async () => { diff --git a/src/utils.ts b/src/utils.ts index 7962a35..682fd37 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -148,8 +148,7 @@ const loadSecretsViaServiceAccount = async ( }; export const loadSecrets = async (shouldExportEnv: boolean): Promise => { - const isConnect = - process.env[envConnectHost] && process.env[envConnectToken]; + const isConnect = process.env[envConnectHost] && process.env[envConnectToken]; if (isConnect) { await loadSecretsViaConnect(shouldExportEnv);