Enable Auto-Scan in Veracode for VS Code

Veracode Greenlight

You can enable or disable Veracode Greenlight auto-scan.

Scans that you start yourself manually take precedence over scans that start automatically. Greenlight never initiates a new automatic scan while another scan is already running, whether it is an automatic scan or one you started yourself.

When a scan is currently ongoing, Greenlight adds newly saved files to a queue in the order that they are saved.

The Veracode scan queue shows the priority in which Greenlight scans the files. The queue only shows automatically initiated scans because manually initiated scans always take precedence. The scans in the queue occur 30 seconds apart as long as the files compile successfully. When a file does not compile, a message appears in the log file and Greenlight does not scan the file.

To enable auto-scan:
  1. In Visual Studio Code, click the Settings icon and select Settings.
  2. Expand User > Extensions > Veracode.
  3. Select Automatically scan files with Veracode Greenlight when they are saved.