List repository libraries with license risks and CVEs

Request

GET

https://appsec.sourcecraft.tech/v1/dependencies

Query parameters

Name

Description

gitRepo

Type: string

Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid).

Pattern: \S

Example: 0199140f-4343-7c06-a7e3-b835c305b629

minCveSeverity

Type: string

Minimum CVE severity: NONE, LOW, MEDIUM, HIGH, CRITICAL. Inclusive.

Default: ``

Example: ``

minLicenseRiskScore

Type: integer | null

Minimum maximum license risk score, inclusive (0–10).

Min value: 0

Max value: 10

minLicenseRiskSeverity

Type: string

Minimum license risk severity: NONE, LOW, MEDIUM, HIGH, CRITICAL. Inclusive.

Default: ``

Example: ``

pageSize

Type: integer

Page size, from 1 to 250. Default: 50.

Default: 50

Min value: 1

Max value: 250

pageToken

Type: string

Omit for the first page. Use nextPageToken from the response for subsequent pages, keeping all other parameters unchanged. An empty nextPageToken means the last page.

Default: ``

Example: ``

purl

Type: string

Case-insensitive PURL substring. Omit or leave blank for all libraries.

Default: ``

Example: ``

scanUuid

Type: string

Scan UUID to select. Omit or leave blank to use the repository's latest scan. Scan UUIDs can be obtained from the scan listing endpoints.

Default: ``

Example: 01890f3e-7b5c-7cc2-bc6f-3f5d8c9a1e4a

Responses

200 OK

OK

Body

application/json
{
  "data": [
    {
      "purl": "example",
      "name": "example",
      "version": "example",
      "licenses": [
        "example"
      ],
      "maxLicenseRiskScore": 0,
      "maxLicenseRiskSeverity": "example",
      "cves": [
        {
          "cveId": "example",
          "severity": "example",
          "defectGroupUuids": [
            null
          ],
          "defectGroupPublicIds": [
            null
          ]
        }
      ],
      "maxCveSeverity": "example",
      "packageManager": "example",
      "scope": "example"
    }
  ],
  "nextPageToken": "example",
  "totalSize": 0,
  "listRevision": "example"
}

Name

Description

data

Type: DependencyInfoDto[]

Example
[
  {
    "purl": "example",
    "name": "example",
    "version": "example",
    "licenses": [
      "example"
    ],
    "maxLicenseRiskScore": 0,
    "maxLicenseRiskSeverity": "example",
    "cves": [
      {
        "cveId": "example",
        "severity": "example",
        "defectGroupUuids": [
          "example"
        ],
        "defectGroupPublicIds": [
          0
        ]
      }
    ],
    "maxCveSeverity": "example",
    "packageManager": "example",
    "scope": "example"
  }
]

nextPageToken

Type: string

Example: example

totalSize

Type: integer

listRevision

Type: string | null

Example: example

DependencyCveDto

Name

Description

cveId

Type: string

Example: example

defectGroupPublicIds

Type: integer[]

Example
[
  0
]

defectGroupUuids

Type: string[]

Example
[
  "example"
]

severity

Type: string

Example: example

Example
{
  "cveId": "example",
  "severity": "example",
  "defectGroupUuids": [
    "example"
  ],
  "defectGroupPublicIds": [
    0
  ]
}

DependencyInfoDto

Name

Description

cves

Type: DependencyCveDto[]

Example
[
  {
    "cveId": "example",
    "severity": "example",
    "defectGroupUuids": [
      "example"
    ],
    "defectGroupPublicIds": [
      0
    ]
  }
]

licenses

Type: string[]

License names from the scan's SBOM. Individual license risk scores are not stored.

Example
[
  "example"
]

maxCveSeverity

Type: string

Example: example

maxLicenseRiskScore

Type: integer

Maximum license risk score stored for this scan, from 0 to 10.

maxLicenseRiskSeverity

Type: string

Example: example

name

Type: string

Example: example

packageManager

Type: string

Example: example

purl

Type: string

Example: example

scope

Type: string

Example: example

version

Type: string

Example: example

Example
{
  "purl": "example",
  "name": "example",
  "version": "example",
  "licenses": [
    "example"
  ],
  "maxLicenseRiskScore": 0,
  "maxLicenseRiskSeverity": "example",
  "cves": [
    {
      "cveId": "example",
      "severity": "example",
      "defectGroupUuids": [
        "example"
      ],
      "defectGroupPublicIds": [
        0
      ]
    }
  ],
  "maxCveSeverity": "example",
  "packageManager": "example",
  "scope": "example"
}
Предыдущая