Skip to main content

Integrating Invicti Enterprise with CircleCI

This document is for:
Invicti Enterprise On-Demand, Invicti Enterprise On-Premises

CircleCI is a continuous integration and delivery system that is used by software teams to allow them to build, test and deploy applications easier and quicker on multiple platforms. With an emphasis on speed and configurability, CircleCI is built to help users test their applications whenever they make changes to it, release it or deploy it.

This topic explains how to configure Invicti Enterprise to send a detected vulnerability to CircleCI.

info

For further information, see What Systems Does Invicti Integrate With? external documentation.

CircleCI Fields

This table lists and explains the CircleCI fields in the New CircleCI Integration window.

Button/Section/FieldDescription
Scan TypeThis is the type of scan: Incremental, Full (With primary profile), Full (With selected profile). For further information, see Types of Scans external documentation.
WebsiteClick to select the URL of the website that will be scanned.
Scan ProfileClick to select the Scan Profile that will be used. (If you selected Full (With primary profile) as the Scan Type, this is not displayed.)
ParametersAdd the information in this script to the corresponding fields in the config.yml file in your project. Use variables for Invicti Enterprise and API credentials.

How to Generate and Use Invicti Enterprise's CircleCI Integration Orbs

Invicti Enterprise uses GitHub for integration with CircleCI.

  1. Navigate to your GitHub project to integrate CircleCI.

  2. Create a .circleci folder then create a config.yml in it: ".circleci/config.yml".

  3. Copy sample yaml code from the Invicti orb on CircleCI external page and paste it into your config.yml. Note that in config.yml, the job name must be 'invicti/scan'.

CircleCI Orb registry page showing Invicti orb with sample YAML code for config.yml
  1. Log in to Invicti.
  2. From the main menu, click Integrations, then New Integration.
  3. From the Continuous Integration Systems section, click CircleCI.
  4. In the Scan Type field, select the scan type.
  5. In the Website field, enter the website.
  6. If required, from the Scan Profile dropdown, select a scan profile. (This option is displayed only if you have selected Incremental or Full (With selected profile) from the Scan Type.)
  7. In the Parameters field, click Copy to Clipboard to copy the displayed code.
CircleCI integration Parameters field with Copy to Clipboard button for configuration code
  1. In CircleCI, replace the related values so that the final result will be as illustrated. Also, CircleCI will read it each time and run a new build when it changes.
CircleCI integration Parameters field with Copy to Clipboard button for configuration code
  1. Navigate to your CircleCI projects: https://app.circleci.com/projects/ external.
CircleCI projects page showing project list and setup options
  1. Click Set Up Project.
CircleCI projects page showing project list and setup options
  1. Click Start Building.
CircleCI projects page showing project list and setup options
  1. Click Add Manually.
CircleCI projects page showing project list and setup options
  1. Click Start Building.

  2. Next, configure these settings in the project environment settings. Navigate to your CircleCI Project Settings: • NETSPARKER_ENTERPRISE_USER_IDNETSPARKER_ENTERPRISE_API_TOKEN

CircleCI project environment settings showing NETSPARKER_ENTERPRISE_USER_ID and API_TOKEN configuration
CircleCI project environment settings showing NETSPARKER_ENTERPRISE_USER_ID and API_TOKEN configuration
  1. Then, add these variables with values into Invicti Enterprise: • In Invicti Enterprise, from the main menu, select YourName, then API Settings. • Use the information from the previous step to complete the User ID and Token fields.

  2. In CircleCI, navigate to Organization Settings. In Orb Security Settings, make sure Allow Uncertified Orbs is set to Yes.

CircleCI Organization Settings showing Orb Security Settings with Allow Uncertified Orbs enabled
  1. If everything is set up correctly, the pipeline will succeed and a new scan will start in Invicti Enterprise.
tip

If everything is set up correctly, the pipeline will succeed and a new scan will start in Invicti Enterprise.


Need help?

Invicti Support team is ready to provide you with technical help. Go to Help Center

Was this page useful?