Description
How to exclude two or more files from ScanCentral packaging
Resolution
One MS Build Syntax example:
Go inside the folder where the project is located and run:
scancentral package -bt msbuild -bf "mySolution.sln" -o myPackage.zip -exclude "\**\file-1.x" -exclude "\**\file-2.x"
Reference:
Fortify ScanCentral SAST | Generating a Fortify ScanCentral SAST Package
https://www.microfocus.com/documentation/fortify-software-security-center/2320/SC_SAST_Help_23.2.0/index.htm#scan-requests/gen-package.htm?TocPath=Submitting%2520Scan%2520Requests%257C_____13
Practical example:
Go inside the folder where the project is located and run:
scancentral -bt msbuild -bf "WebGoat.NET.sln" -exclude "\**\ChangePassword.aspx" -exclude "\**\Site.Master.cs" -o excludePackage_final.zip
Reference:
Fortify ScanCentral SAST | Start Command Options
https://www.microfocus.com/documentation/fortify-software-security-center/2320/SC_SAST_Help_23.2.0/index.htm#cli/start-cmd.htm?Highlight=-exclude