Starting a scan
Amazon Q can scan your entire codebase, or auto-scan your code as you write it.
Scan as you code
Amazon Q automatically scans the file you are actively coding in,
generating findings as soon as they are detected in your code. Auto-scans are
enabled by default when you use Amazon Q.
Pausing auto-scans
To pause auto scans, complete the following steps.
-
Choose the text, Amazon Q, from the rectangular area at
the bottom of the IDE window. In VS Code, this area is called the
component tray. In JetBrains IDEs, this area is
called the status bar.
After you choose the Amazon Q text the Amazon Q task bar opens at the top of
the IDE window.
In the following image, in Visual Studio Code, the user chooses the text
Amazon Q at the bottom of the interface, prompting a
drop-down window from which the user may choose Pause
Auto-Scans.
In the following image, in IntelliJ (a JetBrains IDE), the user chooses
the text Amazon Q at the bottom of the interface,
prompting a drop-down window from which the user may choose Pause
Auto-Scans.
-
Choose Pause Auto-Scans.
Scan your project
You can scan a project to evaluate the security posture of your entire codebase at
once.
To manually run a scan, complete the following steps for your IDE.
- JetBrains
-
To scan a project in a JetBrains IDE:
-
Open up a file from the project you want to scan in your JetBrains IDE.
-
Choose Amazon Q from the status bar at
the bottom of the IDE window.
The Amazon Q task bar opens on the right of the IDE window.
-
Choose Run Project Scan from the task
bar. Amazon Q begins scanning your project.
In the following image, in IntelliJ (a JetBrains
IDE), the user chooses Amazon Q from the
status bar, prompting a task bar from which the user may
choose Run Project Scan.
-
When the scan is complete, the findings Amazon Q generated appear in the
Problems tab. You can choose individual findings to
be redirected to the specific area of the file where the vulnerability or
low-quality code was detected.
-
Hover your cursor over the underlined code to view details about the
finding. For information about addressing findings, see Addressing findings.
- Visual Studio Code
-
To scan a project in a VS Code:
-
Open up a file from the project you want to scan in VS Code.
-
Choose Amazon Q from the component tray at
the bottom of the IDE window.
The Amazon Q task bar opens at the top of the IDE window.
-
Choose Run Project Scan. Amazon Q begins scanning your
project.
In the following image, in VS Code, the user chooses
Amazon Q from the component tray, prompting a task bar from
which the user may choose Run Project
Scan.
-
When the scan is complete, the findings Amazon Q generated appear in the
Problems tab. You can choose individual findings to
be redirected to the specific area of the file where the vulnerability or
low-quality code was detected.
-
Hover your cursor over the underlined code to view details about the
finding. For information about addressing findings, see Addressing findings.
- Visual Studio
-
To scan a project in a Visual Studio:
-
Open up a file from the project you want to scan in Visual Studio.
-
Choose the Amazon Q icon at the bottom of your file to open the
Amazon Q task bar.
-
From the task bar, choose
Run Security Scan. Amazon Q begins scanning your
project.
In the following image, in Visual Studio, the user chooses the
Amazon Q icon, prompting a task bar from
which the user may choose Run Security
Scan.
-
The status of your scan is updated in the Visual Studio output pane.
You're notified when the scan is complete.
For information about viewing and addressing findings, see
Addressing findings.