# Veracode

> Manage Veracode application profiles and sandboxes, read findings, summary reports and SCA issues, and comment on or mitigate findings.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/veracode

## Actions

### Comment on or mitigate findings

Add a comment to findings, propose a mitigation (false positive, by design, by environment, accept the risk), or approve or reject one.

**Inputs**

- Application (`application_guid`, text, required): The application profile.
- Sandbox (`sandbox_guid`, text): The development sandbox of the chosen application.
- Issue IDs (`issue_ids`, list, required): The findings' issue IDs (the issue_id of each finding).
- Action (`annotation`, text, required): COMMENT adds a comment; FP, APPDESIGN, OSENV, NETENV, LIBRARY and ACCEPTRISK propose a mitigation; ACCEPTED and REJECTED approve or reject one. One of: `COMMENT`, `FP`, `APPDESIGN`, `OSENV`, `NETENV`, `LIBRARY`, `ACCEPTRISK`, `ACCEPTED`, `REJECTED`.
- Comment (`comment`, text, required): The comment or the reason for the mitigation.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "findings": "example"
  }
}
```

### Create application

Create an application profile.

**Inputs**

- Name (`name`, text, required): The application's name, unique in the organization.
- Business criticality (`business_criticality`, text, required): How critical the application is to the business. Veracode uses it to choose the default policy. One of: `VERY_HIGH` (Very high), `HIGH`, `MEDIUM`, `LOW`, `VERY_LOW` (Very low).
- Description (`description`, text): What the application is.
- Tags (`tags`, text): Tags, separated by commas.
- Git repository URL (`git_repo_url`, text): The application's Git repository URL.
- Policy (`policy_guid`, text): The policy to assess the application against. Leave empty for the default policy for its business criticality.
- Teams (`team_guids`, list): Teams that can see the application.
- Business unit (`business_unit_guid`, text): The business unit the application belongs to.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "app_profile_url": "example",
    "created": "example",
    "guid": "example",
    "id": 1,
    "last_completed_scan_date": "example",
    "modified": "example",
    "oid": 1,
    "profile": {
      "business_criticality": "example",
      "business_owners": [
        {
          "email": "example",
          "name": "example"
        }
      ],
      "business_unit": {
        "guid": "example",
        "id": 1,
        "name": "example"
      },
      "custom_fields": [
        {
          "name": "example",
          "value": "example"
        }
      ],
      "description": "example",
      "git_repo_url": "example",
      "name": "example",
      "policies": [
        {
          "guid": "example",
          "is_default": true,
          "name": "example",
          "policy_compliance_status": "example"
        }
      ],
      "tags": "example",
      "teams": [
        {
          "guid": "example",
          "team_id": 1,
          "team_name": "example"
        }
      ]
    },
    "results_url": "example",
    "scans": [
      {
        "internal_status": "example",
        "modified_date": "example",
        "scan_type": "example",
        "scan_url": "example",
        "status": "example"
      }
    ]
  }
}
```

### Create sandbox

Create a development sandbox in an application.

**Inputs**

- Application (`application_guid`, text, required): The application profile.
- Name (`name`, text, required): The sandbox's name.
- Recreate when it expires (`auto_recreate`, true/false): Create a new sandbox with the same name when this one expires.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "application_guid": "example",
    "auto_recreate": true,
    "created": "example",
    "custom_fields": [
      {
        "name": "example",
        "value": "example"
      }
    ],
    "guid": "example",
    "id": 1,
    "modified": "example",
    "name": "example",
    "owner_username": "example"
  }
}
```

### Create team

Create a team.

**Inputs**

- Name (`team_name`, text, required): The team's name.
- Business unit (`business_unit`, text): The business unit the team belongs to.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "business_unit": {
      "bu_id": "example",
      "bu_name": "example"
    },
    "insert_ts": "example",
    "member_only": true,
    "modify_ts": "example",
    "relationship": "example",
    "team_id": "example",
    "team_legacy_id": 1,
    "team_name": "example",
    "user_count": 1
  }
}
```

### Delete application

Delete an application profile and all of its scans and findings.

**Inputs**

- Application (`application_guid`, text, required): The application profile.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {}
}
```

### Delete sandbox

Delete a development sandbox and its scans.

**Inputs**

- Application (`application_guid`, text, required): The application profile.
- Sandbox (`sandbox_guid`, text, required): The development sandbox of the chosen application.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {}
}
```

### Delete team

Delete a team.

**Inputs**

- Team (`team`, text, required): The team.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {}
}
```

### Get application

Read one application profile, with its policy compliance and latest scans.

**Inputs**

- Application (`application_guid`, text, required): The application profile.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "app_profile_url": "example",
    "created": "example",
    "guid": "example",
    "id": 1,
    "last_completed_scan_date": "example",
    "modified": "example",
    "oid": 1,
    "profile": {
      "business_criticality": "example",
      "business_owners": [
        {
          "email": "example",
          "name": "example"
        }
      ],
      "business_unit": {
        "guid": "example",
        "id": 1,
        "name": "example"
      },
      "custom_fields": [
        {
          "name": "example",
          "value": "example"
        }
      ],
      "description": "example",
      "git_repo_url": "example",
      "name": "example",
      "policies": [
        {
          "guid": "example",
          "is_default": true,
          "name": "example",
          "policy_compliance_status": "example"
        }
      ],
      "tags": "example",
      "teams": [
        {
          "guid": "example",
          "team_id": 1,
          "team_name": "example"
        }
      ]
    },
    "results_url": "example",
    "scans": [
      {
        "internal_status": "example",
        "modified_date": "example",
        "scan_type": "example",
        "scan_url": "example",
        "status": "example"
      }
    ]
  }
}
```

### Get current user

Read the Veracode user or API service account the connection signs in as.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "account_type": "example",
    "active": true,
    "email_address": "example",
    "first_name": "example",
    "last_login": "example",
    "last_name": "example",
    "login_enabled": true,
    "roles": [
      {}
    ],
    "saml_user": true,
    "teams": [
      {}
    ],
    "title": "example",
    "user_id": "example",
    "user_legacy_id": 1,
    "user_name": "example"
  }
}
```

### Get CWE

Read a CWE weakness: its name, description, severity and how to fix it.

**Inputs**

- CWE ID (`cwe_id`, number, required): The CWE number, such as 79. At least 1.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "description": "example",
    "id": 1,
    "name": "example",
    "recommendation": "example",
    "references": [
      {}
    ],
    "remediation_effort": 1,
    "severity": 1
  }
}
```

### Get policy

Read a policy's rules, grace periods and scan frequency.

**Inputs**

- Policy (`policy_guid`, text, required): The policy.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "category": "example",
    "created": "example",
    "description": "example",
    "finding_rules": [
      {}
    ],
    "guid": "example",
    "modified_by": "example",
    "name": "example",
    "scan_frequency_rules": [
      {}
    ],
    "score_grace_period": 1,
    "type": "example",
    "vendor_policy": true,
    "version": 1
  }
}
```

### Get summary report

Read the summary report of an application's latest (or a chosen) build: scores, ratings, finding counts by severity and status, and SCA results.

**Inputs**

- Application (`application_guid`, text, required): The application profile.
- Sandbox (`sandbox_guid`, text): The development sandbox of the chosen application.
- Build ID (`build_id`, text): The build to report on. Leave empty for the latest.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "app_id": 1,
    "app_name": "example",
    "build_id": 1,
    "business_criticality": "example",
    "dynamic_analysis": {
      "published_date": "example",
      "rating": "example",
      "score": 1,
      "submitted_date": "example"
    },
    "flaw_status": {
      "fixed": 1,
      "new": 1,
      "not_mitigated": 1,
      "open": 1,
      "reopen": 1,
      "total": 1
    },
    "last_update_time": "example",
    "policy_compliance_status": "example",
    "policy_name": "example",
    "policy_rules_status": "example",
    "sandbox_name": "example",
    "severity": [
      {}
    ],
    "software_composition_analysis": {
      "blacklisted_components": 1,
      "components_violated_policy": 1,
      "third_party_components": 1,
      "violate_policy": true
    },
    "static_analysis": {
      "mitigated_rating": "example",
      "mitigated_score": 1,
      "next_scan_due": "example",
      "published_date": "example",
      "rating": "example",
      "score": 1,
      "submitted_date": "example"
    },
    "version": "example"
  }
}
```

### List applications

List application profiles, optionally filtered by name, policy compliance, team, tag or change date.

**Inputs**

- Name (`name`, text): Part of the application name.
- Policy compliance (`policy_compliance`, text): Only applications with this policy compliance status. One of: `DETERMINING`, `NOT_ASSESSED` (Not assessed), `DID_NOT_PASS` (Did not pass), `CONDITIONAL_PASS` (Conditional pass), `VENDOR_REVIEW` (Vendor review), `PASSED`.
- Scan type (`scan_type`, text): Only applications scanned this way. One of: `STATIC`, `DYNAMIC`, `MANUAL`.
- Policy (`policy_guid`, text): Only applications assessed against this policy.
- Team (`team`, text): Only applications of the team with this name.
- Business unit (`business_unit`, text): Only applications of this business unit (its name).
- Tag (`tag`, text): Only applications with this tag.
- Changed after (`modified_after`, date): Only applications changed after this day.
- Compliance checked after (`policy_compliance_checked_after`, date): Only applications whose policy compliance was checked after this day.
- Page (`page`, number): Page to read, starting at 0. At least 0.
- Size (`size`, number): Records per page, up to 500 (Veracode's default is 50). From 1 to 500.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "_embedded": {
      "applications": [
        {
          "app_profile_url": "example",
          "created": "example",
          "guid": "example",
          "id": 1,
          "last_completed_scan_date": "example",
          "modified": "example",
          "oid": 1,
          "profile": {
            "business_criticality": "example",
            "business_owners": [
              {
                "email": "example",
                "name": "example"
              }
            ],
            "business_unit": {
              "guid": "example",
              "id": 1,
              "name": "example"
            },
            "custom_fields": [
              {
                "name": "example",
                "value": "example"
              }
            ],
            "description": "example",
            "git_repo_url": "example",
            "name": "example",
            "policies": [
              {
                "guid": "example",
                "is_default": true,
                "name": "example",
                "policy_compliance_status": "example"
              }
            ],
            "tags": "example",
            "teams": [
              {
                "guid": "example",
                "team_id": 1,
                "team_name": "example"
              }
            ]
          },
          "results_url": "example",
          "scans": [
            {
              "internal_status": "example",
              "modified_date": "example",
              "scan_type": "example",
              "scan_url": "example",
              "status": "example"
            }
          ]
        }
      ]
    },
    "page": {
      "number": 1,
      "size": 1,
      "total_elements": 1,
      "total_pages": 1
    }
  }
}
```

### List business units

List the organization's business units.

**Inputs**

- Name (`bu_name`, text): Part of the business unit name.
- Page (`page`, number): Page to read, starting at 0. At least 0.
- Size (`size`, number): Records per page, up to 500 (Veracode's default is 50). From 1 to 500.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "_embedded": {
      "business_units": [
        {
          "bu_id": "example",
          "bu_legacy_id": 1,
          "bu_name": "example",
          "is_default": true,
          "teams": [
            {}
          ]
        }
      ]
    },
    "page": {
      "number": 1,
      "size": 1,
      "total_elements": 1,
      "total_pages": 1
    }
  }
}
```

### List findings

List an application's findings from static, dynamic, manual and SCA scans, in its policy scans or one sandbox.

**Inputs**

- Application (`application_guid`, text, required): The application profile.
- Sandbox (`sandbox_guid`, text): The development sandbox of the chosen application.
- Scan types (`scan_type`, list): Only findings from these kinds of scan. One or more of: `STATIC`, `DYNAMIC`, `MANUAL`, `SCA`.
- Minimum severity (`severity_gte`, number): Only findings of at least this severity, from 0 (informational) to 5 (very high). From 0 to 5.
- CWE IDs (`cwe`, list): Only findings of these CWE IDs.
- Violates policy (`violates_policy`, true/false): Only findings that do (or don't) break the application's policy.
- Only new (`new`, true/false): Only findings new in the latest scan.
- Include annotations (`include_annot`, true/false): Include each finding's comments and mitigations.
- Mitigated after (`mitigated_after`, date): Only findings with a mitigation made after this day.
- Page (`page`, number): Page to read, starting at 0. At least 0.
- Size (`size`, number): Records per page, up to 500 (Veracode's default is 50). From 1 to 500.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "_embedded": {
      "findings": [
        {
          "annotations": [
            {}
          ],
          "build_id": 1,
          "context_guid": "example",
          "context_type": "example",
          "count": 1,
          "description": "example",
          "finding_details": {},
          "finding_status": {
            "first_found_date": "example",
            "last_seen_date": "example",
            "mitigation_review_status": "example",
            "new": true,
            "resolution": "example",
            "resolution_status": "example",
            "status": "example"
          },
          "grace_period_expires_date": "example",
          "issue_id": 1,
          "scan_type": "example",
          "violates_policy": true
        }
      ]
    },
    "page": {
      "number": 1,
      "size": 1,
      "total_elements": 1,
      "total_pages": 1
    }
  }
}
```

### List policies

List the security policies applications can be assessed against.

**Inputs**

- Name (`name`, text): Part of the policy name.
- Category (`category`, text): Application policies or component policies. One of: `APPLICATION`, `COMPONENT`.
- Page (`page`, number): Page to read, starting at 0. At least 0.
- Size (`size`, number): Records per page, up to 500 (Veracode's default is 50). From 1 to 500.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "_embedded": {
      "policy_versions": [
        {
          "category": "example",
          "created": "example",
          "description": "example",
          "finding_rules": [
            {}
          ],
          "guid": "example",
          "modified_by": "example",
          "name": "example",
          "scan_frequency_rules": [
            {}
          ],
          "score_grace_period": 1,
          "type": "example",
          "vendor_policy": true,
          "version": 1
        }
      ]
    },
    "page": {
      "number": 1,
      "size": 1,
      "total_elements": 1,
      "total_pages": 1
    }
  }
}
```

### List sandboxes

List an application's development sandboxes.

**Inputs**

- Application (`application_guid`, text, required): The application profile.
- Page (`page`, number): Page to read, starting at 0. At least 0.
- Size (`size`, number): Records per page, up to 500 (Veracode's default is 50). From 1 to 500.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "_embedded": {
      "sandboxes": [
        {
          "application_guid": "example",
          "auto_recreate": true,
          "created": "example",
          "custom_fields": [
            {
              "name": "example",
              "value": "example"
            }
          ],
          "guid": "example",
          "id": 1,
          "modified": "example",
          "name": "example",
          "owner_username": "example"
        }
      ]
    },
    "page": {
      "number": 1,
      "size": 1,
      "total_elements": 1,
      "total_pages": 1
    }
  }
}
```

### List SCA issues

List the vulnerability, out-of-date library and license issues in a Software Composition Analysis workspace.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Project (`project_id`, text): Only issues in this project.
- Issue type (`type`, text): Only issues of this kind. One of: `vulnerability`, `library`, `license`.
- Status (`status`, text): Only open or only fixed issues. One of: `open`, `fixed`.
- Created after (`created_after`, date): Only issues created on or after this day.
- Minimum severity (`severity_gte`, number): Only issues of at least this severity (0 to 10). From 0 to 10.
- Page (`page`, number): Page to read, starting at 0. At least 0.
- Size (`size`, number): Records per page, up to 500 (Veracode's default is 50). From 1 to 500.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "_embedded": {
      "issues": [
        {
          "created_date": "example",
          "id": "example",
          "ignored": true,
          "issue_status": "example",
          "issue_type": "example",
          "library": {},
          "license": {},
          "project_branch": "example",
          "project_id": "example",
          "project_name": "example",
          "severity": 1,
          "vulnerability": {},
          "vulnerable_method": true,
          "workspace_id": "example"
        }
      ]
    },
    "page": {
      "number": 1,
      "size": 1,
      "total_elements": 1,
      "total_pages": 1
    }
  }
}
```

### List SCA projects

List the projects in a Software Composition Analysis workspace.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace.
- Search (`search`, text): Part of the project name.
- Page (`page`, number): Page to read, starting at 0. At least 0.
- Size (`size`, number): Records per page, up to 500 (Veracode's default is 50). From 1 to 500.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "_embedded": {
      "projects": [
        {
          "branches": [
            "example"
          ],
          "id": "example",
          "languages": [
            "example"
          ],
          "last_scan_date": "example",
          "library_issues_count": 1,
          "license_issues_count": 1,
          "linked_application": {},
          "name": "example",
          "site_id": "example",
          "total_issues_count": 1,
          "vulnerability_issues_count": 1
        }
      ]
    },
    "page": {
      "number": 1,
      "size": 1,
      "total_elements": 1,
      "total_pages": 1
    }
  }
}
```

### List SCA workspaces

List Software Composition Analysis workspaces, with their issue counts.

**Inputs**

- Name (`name`, text): Part of the workspace name.
- Include metrics (`include_metrics`, true/false): Include issue counts and the last scan date.
- Page (`page`, number): Page to read, starting at 0. At least 0.
- Size (`size`, number): Records per page, up to 500 (Veracode's default is 50). From 1 to 500.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "_embedded": {
      "workspaces": [
        {
          "id": "example",
          "last_scan_date": "example",
          "library_issues_count": 1,
          "license_issues_count": 1,
          "name": "example",
          "projects_count": 1,
          "site_id": "example",
          "total_issues_count": 1,
          "vulnerability_issues_count": 1
        }
      ]
    },
    "page": {
      "number": 1,
      "size": 1,
      "total_elements": 1,
      "total_pages": 1
    }
  }
}
```

### List teams

List teams: the connection's own, or every team in the organization.

**Inputs**

- Team name (`team_name`, text): Part of the team name.
- Whole organization (`all_for_org`, true/false): List every team in the organization, not just the connection's own.
- Page (`page`, number): Page to read, starting at 0. At least 0.
- Size (`size`, number): Records per page, up to 500 (Veracode's default is 50). From 1 to 500.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "_embedded": {
      "teams": [
        {
          "business_unit": {
            "bu_id": "example",
            "bu_name": "example"
          },
          "insert_ts": "example",
          "member_only": true,
          "modify_ts": "example",
          "relationship": "example",
          "team_id": "example",
          "team_legacy_id": 1,
          "team_name": "example",
          "user_count": 1
        }
      ]
    },
    "page": {
      "number": 1,
      "size": 1,
      "total_elements": 1,
      "total_pages": 1
    }
  }
}
```

### List users

List the organization's users and API service accounts.

**Inputs**

- Email address (`email_address`, text): Only the user with this email address.
- Include teams (`include_teams`, true/false): Include each user's teams.
- Page (`page`, number): Page to read, starting at 0. At least 0.
- Size (`size`, number): Records per page, up to 500 (Veracode's default is 50). From 1 to 500.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "_embedded": {
      "users": [
        {
          "account_type": "example",
          "active": true,
          "email_address": "example",
          "first_name": "example",
          "last_login": "example",
          "last_name": "example",
          "login_enabled": true,
          "roles": [
            {}
          ],
          "saml_user": true,
          "teams": [
            {}
          ],
          "title": "example",
          "user_id": "example",
          "user_legacy_id": 1,
          "user_name": "example"
        }
      ]
    },
    "page": {
      "number": 1,
      "size": 1,
      "total_elements": 1,
      "total_pages": 1
    }
  }
}
```

### Update application

Change an application profile's name, criticality, description, tags, repository, policy, teams or business unit. Fields left empty keep their current value.

**Inputs**

- Application (`application_guid`, text, required): The application profile.
- Name (`name`, text): The new name.
- Business criticality (`business_criticality`, text): How critical the application is to the business. Veracode uses it to choose the default policy. One of: `VERY_HIGH` (Very high), `HIGH`, `MEDIUM`, `LOW`, `VERY_LOW` (Very low).
- Description (`description`, text): What the application is.
- Tags (`tags`, text): Tags, separated by commas.
- Git repository URL (`git_repo_url`, text): The application's Git repository URL.
- Policy (`policy_guid`, text): The policy to assess the application against. Leave empty for the default policy for its business criticality.
- Teams (`team_guids`, list): Teams that can see the application.
- Business unit (`business_unit_guid`, text): The business unit the application belongs to.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "app_profile_url": "example",
    "created": "example",
    "guid": "example",
    "id": 1,
    "last_completed_scan_date": "example",
    "modified": "example",
    "oid": 1,
    "profile": {
      "business_criticality": "example",
      "business_owners": [
        {
          "email": "example",
          "name": "example"
        }
      ],
      "business_unit": {
        "guid": "example",
        "id": 1,
        "name": "example"
      },
      "custom_fields": [
        {
          "name": "example",
          "value": "example"
        }
      ],
      "description": "example",
      "git_repo_url": "example",
      "name": "example",
      "policies": [
        {
          "guid": "example",
          "is_default": true,
          "name": "example",
          "policy_compliance_status": "example"
        }
      ],
      "tags": "example",
      "teams": [
        {
          "guid": "example",
          "team_id": 1,
          "team_name": "example"
        }
      ]
    },
    "results_url": "example",
    "scans": [
      {
        "internal_status": "example",
        "modified_date": "example",
        "scan_type": "example",
        "scan_url": "example",
        "status": "example"
      }
    ]
  }
}
```

### Update sandbox

Rename a sandbox or change whether it is recreated when it expires.

**Inputs**

- Application (`application_guid`, text, required): The application profile.
- Sandbox (`sandbox_guid`, text, required): The development sandbox of the chosen application.
- Name (`name`, text): The new name.
- Recreate when it expires (`auto_recreate`, true/false): Create a new sandbox with the same name when this one expires.

**Outputs**

- `data` (object): The response from Veracode.

**Example output**

```json
{
  "data": {
    "application_guid": "example",
    "auto_recreate": true,
    "created": "example",
    "custom_fields": [
      {
        "name": "example",
        "value": "example"
      }
    ],
    "guid": "example",
    "id": 1,
    "modified": "example",
    "name": "example",
    "owner_username": "example"
  }
}
```
