SAST Scanner
Last updated
Last updated
A Static Application Security Testing (SAST) scan is employed to analyze source code for security vulnerabilities at an early stage in the development process.
Use the following command to detect code vulnerabilities in the current directory and upload the results to the Xygeni Platform:
Export code vulnerability with critical severity to CSV for review or to import findings into other tools:
The SAST Scanner is launched using the xygeni sast [options]
command.
To view all available options, use the --help
flag:
The most important properties are:
Name of the Xygeni Project -n
or --name
.
Input source to analyze. Either specify a directory with: -d
or --dir
or specify a repository using: --repo
. The scan will analyze the current working directory when no target is specified.
Upload results to the service --upload
. By default, results are not uploaded.
Output file (-o
or --output
) and format (-f
or --format
). If no output file is specified (or stdout / - are used), the standard output is used. Use --format=none
for no output.
Specify what detectors to run with the --detectors
/ --skip-detectors
options. A common use-case is to consider only issues with high or critical severity with --detectors=high
.
The resource kinds to be scanned could also be tailored with the --kinds
/ --skip-kinds
options.