# Checkmarx One

> Manage Checkmarx One projects and applications, start and track scans, and read and triage their results.

App · 22 actions. Web page: https://docs.lodol.com/docs/integrations/checkmarx-one

## Actions

### Cancel scan

Cancel a queued or running scan.

**Inputs**

- Scan (`scan_id`, text, required): The scan.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

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

### Create application

Create an application to group projects in.

**Inputs**

- Name (`name`, text, required): The application's name.
- Description (`description`, text): What the application is.
- Criticality (`criticality`, number): How critical the application is, from 1 (lowest) to 5 (highest). From 1 to 5.
- Tags (`tags`, object): Tags as names and values, such as {"team": "payments"}.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "criticality": 1,
    "description": "example",
    "id": "example",
    "name": "example",
    "projectIds": [
      "example"
    ],
    "rules": [
      {}
    ],
    "tags": {},
    "type": "example",
    "updatedAt": "example"
  }
}
```

### Create project

Create a project to scan code in.

**Inputs**

- Name (`name`, text, required): The project's name.
- Repository URL (`repo_url`, text): The Git repository URL of the project's code.
- Main branch (`main_branch`, text): The branch treated as the project's primary one.
- Criticality (`criticality`, number): How critical the project is, from 1 (lowest) to 5 (highest). From 1 to 5.
- Tags (`tags`, object): Tags as names and values, such as {"env": "prod", "pci": ""}.
- Groups (`groups`, list): IDs of the user groups that can see the project.
- Applications (`application_ids`, list): Applications to put the project in.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

```json
{
  "data": {
    "applicationIds": [
      "example"
    ],
    "createdAt": "example",
    "criticality": 1,
    "groups": [
      "example"
    ],
    "id": "example",
    "mainBranch": "example",
    "name": "example",
    "origin": "example",
    "repoUrl": "example",
    "tags": {},
    "tenantId": "example",
    "updatedAt": "example"
  }
}
```

### Delete application

Delete an application. Its projects stay.

**Inputs**

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

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

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

### Delete project

Delete a project with its scans and results.

**Inputs**

- Project (`project_id`, text, required): The project.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

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

### Delete scan

Delete a scan and its results.

**Inputs**

- Scan (`scan_id`, text, required): The scan.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

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

### Get application

Read an application and the projects in it.

**Inputs**

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

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "criticality": 1,
    "description": "example",
    "id": "example",
    "name": "example",
    "projectIds": [
      "example"
    ],
    "rules": [
      {}
    ],
    "tags": {},
    "type": "example",
    "updatedAt": "example"
  }
}
```

### Get last scans

Read the most recent scan of each chosen project.

**Inputs**

- Projects (`project_ids`, list, required): The projects.
- Scan status (`scan_status`, text): Only a scan with this status. One of: `Queued`, `Running`, `Completed`, `Failed`, `Partial`, `Canceled`.
- Branch (`branch`, text): Only scans of this branch.
- Use main branch (`use_main_branch`, true/false): Only scans of each project's main branch.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

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

### Get project

Read a project.

**Inputs**

- Project (`project_id`, text, required): The project.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

```json
{
  "data": {
    "applicationIds": [
      "example"
    ],
    "createdAt": "example",
    "criticality": 1,
    "groups": [
      "example"
    ],
    "id": "example",
    "mainBranch": "example",
    "name": "example",
    "origin": "example",
    "repoUrl": "example",
    "tags": {},
    "tenantId": "example",
    "updatedAt": "example"
  }
}
```

### Get scan

Read a scan's status, scanners and settings.

**Inputs**

- Scan (`scan_id`, text, required): The scan.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

```json
{
  "data": {
    "branch": "example",
    "createdAt": "example",
    "engines": [
      "example"
    ],
    "failureSource": "example",
    "id": "example",
    "initiator": "example",
    "metadata": {},
    "positionInQueue": 1,
    "projectId": "example",
    "projectName": "example",
    "sourceOrigin": "example",
    "sourceType": "example",
    "status": "example",
    "statusDetails": [
      {}
    ],
    "tags": {},
    "updatedAt": "example",
    "userAgent": "example"
  }
}
```

### Get scan summary

Read the counts of results by scanner, severity and status for scans.

**Inputs**

- Scans (`scan_ids`, list, required): The scans.
- Include status counters (`include_status_counters`, true/false): Include the counts of fixed results too.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

```json
{
  "data": {
    "scansSummaries": [
      {
        "apiSecCounters": {},
        "containersCounters": {},
        "kicsCounters": {},
        "sastCounters": {},
        "scaCounters": {},
        "scaPackagesCounters": {},
        "scanId": "example"
      }
    ],
    "totalCount": 1
  }
}
```

### Get scan workflow

Read the log of a scan's steps.

**Inputs**

- Scan (`scan_id`, text, required): The scan.

**Outputs**

- `data` (list): The response from Checkmarx One.

**Example output**

```json
{
  "data": [
    {
      "Info": "example",
      "Source": "example",
      "Timestamp": "example"
    }
  ]
}
```

### List applications

List applications, the groups of related projects.

**Inputs**

- Name (`name`, text): Part of the application name.
- Offset (`offset`, number): Records to skip before the first one returned. At least 0.
- Limit (`limit`, number): Most records to return. From 1 to 1000.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

```json
{
  "data": {
    "applications": [
      {
        "createdAt": "example",
        "criticality": 1,
        "description": "example",
        "id": "example",
        "name": "example",
        "projectIds": [
          "example"
        ],
        "rules": [
          {}
        ],
        "tags": {},
        "type": "example",
        "updatedAt": "example"
      }
    ],
    "filteredTotalCount": 1,
    "totalCount": 1
  }
}
```

### List project branches

List the branches a project's scans have covered.

**Inputs**

- Project (`project_id`, text, required): The project.
- Branch name (`branch_name`, text): Part of the branch name.
- Offset (`offset`, number): Records to skip before the first one returned. At least 0.
- Limit (`limit`, number): Most records to return. From 1 to 1000.

**Outputs**

- `data` (list): The response from Checkmarx One.

**Example output**

```json
{
  "data": [
    "example"
  ]
}
```

### List projects

List projects, optionally by part of their name, repository or tag.

**Inputs**

- Name (`name`, text): Part of the project name.
- Repo URL (`repo_url`, text): Only projects of this repository URL.
- Tag names (`tags_keys`, list): Only projects with any of these tag names.
- Sort (`sort`, text): Order of the projects. One of: `-created_at` (-created at), `+created_at` (+created at), `-updated_at` (-updated at), `+updated_at` (+updated at), `+name`, `-name`, `-criticality`, `+criticality`.
- Offset (`offset`, number): Records to skip before the first one returned. At least 0.
- Limit (`limit`, number): Most records to return. From 1 to 1000.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

```json
{
  "data": {
    "filteredTotalCount": 1,
    "projects": [
      {
        "applicationIds": [
          "example"
        ],
        "createdAt": "example",
        "criticality": 1,
        "groups": [
          "example"
        ],
        "id": "example",
        "mainBranch": "example",
        "name": "example",
        "origin": "example",
        "repoUrl": "example",
        "tags": {},
        "tenantId": "example",
        "updatedAt": "example"
      }
    ],
    "totalCount": 1
  }
}
```

### List scan results

List the vulnerabilities a scan found, from every scanner.

**Inputs**

- Scan (`scan_id`, text, required): The scan.
- Severity (`severity`, list): Only these severities. One or more of: `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`, `INFO`.
- State (`state`, list): Only results in these triage states. One or more of: `TO_VERIFY` (To verify), `NOT_EXPLOITABLE` (Not exploitable), `PROPOSED_NOT_EXPLOITABLE` (Proposed not exploitable), `CONFIRMED`, `URGENT`.
- Status (`status`, list): Only new, recurring or fixed results. One or more of: `NEW`, `RECURRENT`, `FIXED`.
- Sort (`sort`, text): Order of the results. One of: `-severity`, `+severity`, `-foundat`, `+foundat`.
- Offset (`offset`, number): Records to skip before the first one returned. At least 0.
- Limit (`limit`, number): Most records to return. From 1 to 1000.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

```json
{
  "data": {
    "results": [
      {
        "alternateId": "example",
        "comments": {},
        "confidenceLevel": 1,
        "created": "example",
        "data": {},
        "description": "example",
        "firstFoundAt": "example",
        "firstScanId": "example",
        "foundAt": "example",
        "id": "example",
        "severity": "example",
        "similarityId": "example",
        "state": "example",
        "status": "example",
        "type": "example",
        "vulnerabilityDetails": {}
      }
    ],
    "totalCount": 1
  }
}
```

### List scans

List scans, newest first, optionally of one project, branch, status or time range.

**Inputs**

- Project (`project_id`, text): The project.
- Statuses (`statuses`, list): Only scans with these statuses. One or more of: `Queued`, `Running`, `Completed`, `Failed`, `Partial`, `Canceled`.
- Branch (`branch`, text): Only scans of this branch.
- From date (`from_date`, date and time): Only scans created at or after this time.
- To date (`to_date`, date and time): Only scans created at or before this time.
- Offset (`offset`, number): Records to skip before the first one returned. At least 0.
- Limit (`limit`, number): Most records to return. From 1 to 1000.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

```json
{
  "data": {
    "filteredTotalCount": 1,
    "scans": [
      {
        "branch": "example",
        "createdAt": "example",
        "engines": [
          "example"
        ],
        "failureSource": "example",
        "id": "example",
        "initiator": "example",
        "metadata": {},
        "positionInQueue": 1,
        "projectId": "example",
        "projectName": "example",
        "sourceOrigin": "example",
        "sourceType": "example",
        "status": "example",
        "statusDetails": [
          {}
        ],
        "tags": {},
        "updatedAt": "example",
        "userAgent": "example"
      }
    ],
    "totalCount": 1
  }
}
```

### Start scan

Scan a branch of a Git repository in a project.

**Inputs**

- Project (`project_id`, text, required): The project.
- Repository URL (`repo_url`, text, required): The Git repository URL to scan.
- Branch (`branch`, text, required): The branch to scan.
- Commit (`commit`, text): A commit to scan instead of the branch's latest.
- Scanners (`scanners`, list): The scanners to run. Leave empty for SAST, SCA and IaC (kics). One or more of: `sast`, `sca`, `kics`, `apisec`, `containers`.
- Tags (`tags`, object): Tags for the scan as names and values.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

```json
{
  "data": {
    "branch": "example",
    "createdAt": "example",
    "engines": [
      "example"
    ],
    "failureSource": "example",
    "id": "example",
    "initiator": "example",
    "metadata": {},
    "positionInQueue": 1,
    "projectId": "example",
    "projectName": "example",
    "sourceOrigin": "example",
    "sourceType": "example",
    "status": "example",
    "statusDetails": [
      {}
    ],
    "tags": {},
    "updatedAt": "example",
    "userAgent": "example"
  }
}
```

### Triage SAST result

Change the severity or state of a SAST result in a project, with a comment.

**Inputs**

- Project (`project_id`, text, required): The project.
- Similarity ID (`similarity_id`, text, required): The result's similarity ID (similarityId in its scan results).
- Scan (`scan_id`, text): The scan the change is made from.
- Severity (`severity`, text): The new severity. One of: `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`, `INFO`.
- State (`state`, text): The new triage state. One of: `TO_VERIFY` (To verify), `NOT_EXPLOITABLE` (Not exploitable), `PROPOSED_NOT_EXPLOITABLE` (Proposed not exploitable), `CONFIRMED`, `URGENT`.
- Comment (`comment`, text): Why it was changed.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

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

### Update application

Change an application's name, description, criticality or tags. Fields left empty keep their value.

**Inputs**

- Application (`application_id`, text, required): The application.
- Name (`name`, text): The new name.
- Description (`description`, text): What the application is.
- Criticality (`criticality`, number): How critical the application is, from 1 (lowest) to 5 (highest). From 1 to 5.
- Tags (`tags`, object): Tags as names and values, such as {"team": "payments"}.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

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

### Update project

Change a project's name, repository, main branch, criticality, tags or groups. Fields left empty keep their value.

**Inputs**

- Project (`project_id`, text, required): The project.
- Name (`name`, text): The new name.
- Repository URL (`repo_url`, text): The Git repository URL of the project's code.
- Main branch (`main_branch`, text): The branch treated as the project's primary one.
- Criticality (`criticality`, number): How critical the project is, from 1 (lowest) to 5 (highest). From 1 to 5.
- Tags (`tags`, object): Tags as names and values, such as {"env": "prod", "pci": ""}.
- Groups (`groups`, list): IDs of the user groups that can see the project.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

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

### Update scan tags

Replace a scan's tags.

**Inputs**

- Scan (`scan_id`, text, required): The scan.
- Tags (`tags`, object, required): The scan's tags as names and values.

**Outputs**

- `data` (object): The response from Checkmarx One.

**Example output**

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