Skip to content

Commit bdc918a

Browse files
author
patched.codes[bot]
committed
Patched /tmp/tmpktlv2p12/patchwork/steps/ScanPSFuzz/ScanPSFuzz.py
1 parent 9695282 commit bdc918a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

patchwork/steps/ScanPSFuzz/ScanPSFuzz.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ def __init__(self, inputs: dict):
2323
command_args=f'-b {inputs["prompt_file_path"]}',
2424
env=f'OPENAI_API_KEY={inputs["openai_api_key"]}'
2525
)
26+
import os
2627

28+
wrapped_input = dict(
29+
command="prompt-security-fuzzer",
30+
command_args=f'-b {inputs["prompt_file_path"]}',
31+
env=f'OPENAI_API_KEY={os.getenv("OPENAI_API_KEY")}'
32+
)
2733
working_dir = inputs.get("working_dir")
2834
if working_dir is not None:
2935
wrapped_input["working_dir"] = working_dir

0 commit comments

Comments
 (0)