- Checkmarx Documentation
- Checkmarx One
- Checkmarx One User Guide
- API Security
- Running a Scan
Running a Scan
Notice
Initiating a scan is possible only within an existing project.
There are four options to scan a source file:
Scan a source file from a repository URL.
Scan a source file from a zipped file.
Scan an existing project (repository URL/zipped file).
Scan a standalone Swagger file to validate that the API documentation is complete and up-to-date.
Important
The Scan API Documentation option is only available after first navigating to the Application and Projects page, clicking on the + New dropdown tab, and selecting New Project- Manual Scan.
![]() |
To run a scan:
On the Application and Projects page select the Projects tab (default).
In the row of the project that you would like to scan, click
Scan.
The New Scan window opens. By default, under Project Name, the project of the row in which you clicked
Scan is selected.
Notice
If you would like to scan a different project, it is possible to select a different project from the drop-down menu.
In the Source to Scan section, there are 2 scan options:
Scan from a zipped file:
With the File option selected (default), click the Select File link.
Select the requested zip archive file.
Scan a Repository URL:
Click the Repository button.
Enter the Repository URL.
Click the Fetch Branches button.
Type your Personal Access Token and click Login
For example:
In case the Token is incorrect, an error will be presented while trying to connect.
For example:
Under Scan Tags, add a tag to the new scan (optional).
Tags can be added in two different formats:
Label: <string>
key:value: <key string:value string>
Select
Incremental Scan, if you want to only scan the latest changes and not the entire project. For additional information on Incremental scans, refer to Incremental Scans (SAST Scanner).
Click Next. The New Scan dialog appears and you are asked to select the scanners.
Select one or more scanners.
If you select API Security, SAST is selected as well because API Security uses the SAST code to detect APIs.
To scan both code and documentation, check the Scan API Documentation option and upload a Swagger file in ZIP format.
If you are scanning API documentation only, you can exclude SAST queries from the scan. To do this, select SAST and API Security in the Select Scanners section, check the Scan API Documentation option, upload a Swagger file in ZIP format, and then deselect SAST in the Select Scanners section.
Click Scan. The New Scan dialog box closes and the scan starts.
You can monitor the scan's status in the Projects tab.
After the scan is completed, you can view the results of the project on a side pane by clicking within the project row.
Scroll down to view your API Security results.
Selecting Overview redirects you to the scan Overview page.
Selecting Results redirects you to the Risks results page.
Note
Only API Security and SAST support incremental scans. If you select additional scanners for an Incremental Scan, a full scan is performed instead.
API Security currently supports Python Flask, Java - Spring, and C# - ASP.NET Web API .