From 7c3db5f4556cc93d49a0f5a9665e04255e6675a8 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 19 Mar 2026 14:02:22 -0500 Subject: [PATCH] BUILD-10761: Fix credential guard sq hotspot relating to tmp dir creds file --- __tests__/credential-guard.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/__tests__/credential-guard.test.ts b/__tests__/credential-guard.test.ts index 7ccfc02..33df41f 100644 --- a/__tests__/credential-guard.test.ts +++ b/__tests__/credential-guard.test.ts @@ -23,14 +23,15 @@ describe('credential-guard-main', () => { }); it('saves credentials file path to GITHUB_STATE', async () => { - vi.mocked(core.getInput).mockReturnValue('/tmp/creds/credentials.json'); + const credsPath = path.join(os.tmpdir(), 'creds', 'credentials.json'); + vi.mocked(core.getInput).mockReturnValue(credsPath); const { run } = await import('../src/credential-guard-main'); await run(); expect(core.saveState).toHaveBeenCalledWith( 'credentials-file', - '/tmp/creds/credentials.json' + credsPath ); });