Amazon CodeGuru Security is in preview release and is subject to change.
Create code scans in the console
This section explains how to create code scans and re-run code scans on revised files in the CodeGuru Security console.
Create a new code scan
The following steps show how to upload your code resources and scan them in the console.
-
Open the Scans page in the CodeGuru Security console at https://console.aws.amazon.com/codeguru/security/scans/
. -
Choose Create new scan.
-
Choose Choose file and upload the code file you want to scan.
-
For Scan name, enter a unique name for the scan. If you don’t enter a name, a name will be generated for you with the name of the file, the date, and the time.
-
Choose Create scan.
-
Your scan name appears in the Scans panel. Under Scan status, it displays In progress while the scan runs. Once the scan is complete, the status will update to Complete.
If your scan fails, Scan status says Failed. .
Scan a revised file
The following steps show how to re-run a scan on revised code files. Be sure to select the appropriate scan name and to upload the corrected version of the code you previously scanned to make sure that vulnerabilities are properly tracked across scans.
-
Choose the scan you want to rerun on the Scans page in the CodeGuru Security console.
-
Choose Scan revised file on the top right of the page.
-
Choose Choose file and upload the code file you want to scan. Upload the revised version of the file you previously scanned to make sure that vulnerabilities are properly tracked across scans.
You can’t edit the scan name when re-running a scan, since the scan name is used to track findings across revisions to a file.
-
Choose Create scan.
-
After the scan is complete, select the scan name to view updated scan metrics based on your revised file.