Skip to main content

Defect Dojo

This reporter pushes findings to a DefectDojo instance. Read more about DefectDojo here.

How to use

Open-Source

# file ./my-workflow/workflow.yml
description: Workflow scanning with gosec
name: gosec
components:
- component: ghcr.io/smithy-security/smithy/manifests/components/targets/git-clone:v1.3.2
- component: ghcr.io/smithy-security/smithy/manifests/components/scanners/gosec:v1.2.2
- component: ghcr.io/smithy-security/smithy/manifests/components/scanners/nancy:v1.2.1
- component: ghcr.io/smithy-security/smithy/manifests/components/enrichers/custom-annotation:v0.1.1
- component: ghcr.io/smithy-security/smithy/manifests/components/reporters/defectdojo:v0.4.1
  1. Configure the run parameters of the component in the overrides file
# file: ./my-workflow/overrides.yaml
git-clone:
- name: "repo_url"
type: "string"
value: "https://github.com/0c34/govwa.git"
- name: "reference"
type: "string"
value: "master"
defectdojo:
- name: "dojo_user"
type: "string"
value: ""
- name: "dojo_api_key"
type: "string"
value: ""
- name: "dojo_api_url"
type: "string"
value: ""
- name: "dojo_product_id"
type: "string"
value: ""

Warning: You need to configure secrets and other parameters for defectdojo in order for the workflow to work.

SaaS

  1. In the Smithy UI, open the page to create a new workflow.
  2. Configure any workflow that produces vulnerabilities (e.g. sast, sca, container scanner etc)
  3. Find the defect dojo component in the reporters dropdown.
  4. Click on the DefectDojo flow icon to bring the form to the top
  5. Fill the form on the right

Options

You can configure this component with the following options. The options that have a default value are optional:

Option NameDescriptionDefaultType
[Required] dojo_userthe user id for the defect dojo user who's api key you will supply belowString
[Required] dojo_api_keythe api key for the remote defect dojo instanceString
[Required] dojo_api_urlthe url for the api for the remote defect dojo instanceString
[Required] dojo_product_idthe product id for the remote defect dojo under which an engagement will be created with the findingsString