From 0fce7011441ede012deecee4d03dd5b06030f93a Mon Sep 17 00:00:00 2001 From: Keno Hassler <40292329+kenohassler@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:10:25 +0100 Subject: [PATCH] prevent path issues --- sast-fuzz/static_analysis/sast/src/sfa/analysis/tool_runner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sast-fuzz/static_analysis/sast/src/sfa/analysis/tool_runner.py b/sast-fuzz/static_analysis/sast/src/sfa/analysis/tool_runner.py index ade5305..8af9f9b 100644 --- a/sast-fuzz/static_analysis/sast/src/sfa/analysis/tool_runner.py +++ b/sast-fuzz/static_analysis/sast/src/sfa/analysis/tool_runner.py @@ -45,6 +45,8 @@ SAST_SETUP_ENV: Dict[str, str] = { **os.environ.copy(), **{"CC": "clang", "CXX": "clang++", "CFLAGS": "-O0 -fno-inline", "CXXFLAGS": "-O0 -fno-inline"}, + # hard-coding PATH here to prevent build systems from using Poetry's PATH + "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", }