Skip to content

Commit 3ba8e1b

Browse files
committed
Replace manual tmp file creation with tmp library which uses security best practices
1 parent a62dfed commit 3ba8e1b

File tree

6 files changed

+924
-53
lines changed

6 files changed

+924
-53
lines changed

__tests__/main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function mockInputs(inputs: Record<string, string> = {}): void {
6666
*/
6767
function verifyStandardResponse(): void {
6868
expect(core.setOutput).toHaveBeenNthCalledWith(1, 'response', 'Hello, user!')
69-
expect(core.setOutput).toHaveBeenNthCalledWith(2, 'response-file', expect.stringContaining('modelResponse.txt'))
69+
expect(core.setOutput).toHaveBeenNthCalledWith(2, 'response-file', expect.stringContaining('modelResponse-'))
7070
}
7171

7272
vi.mock('fs', () => ({

0 commit comments

Comments
 (0)