Cadet 3rd Class
Cadet 3rd Class
349 views

Trying to run a Fortify Scan on some python code

Trying to run a Fortify Scan on some python code. For the translation I use the command

sourceanalyzer -b Python-Program -python-version 3 -logfile fortify-translate-log.txt  -python-path "C:\Program Files\Python37";"C:\Program Files\Python37\Scripts";"C:\Program Files\Python37\Lib\site-packages";"C:\Program Files\Python37\Lib" C:\Users\sam\development\PythonProject\*.py

This command generates logs that have a lot of warning messages like

Item 'QMainWindow' not found in package 'PyQt5.QtWidgets' at C:\Users\sam\development\PythonProject\ controller.py:15:18
Tags (3)
0 Likes
1 Reply

I think you should try to install the python project's dependencies first and then go for Fortify scan.

pip3 install requirements.txt
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.