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: Example: |
|
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: Max value: |
|
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: Min value: Max value: |
|
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: |
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
|
|
nextPageToken |
Type: string Example: |
|
totalSize |
Type: integer |
|
listRevision |
Type: string | null Example: |
DependencyCveDto
|
Name |
Description |
|
cveId |
Type: string Example: |
|
defectGroupPublicIds |
Type: integer[] Example
|
|
defectGroupUuids |
Type: string[] Example
|
|
severity |
Type: string Example: |
Example
{
"cveId": "example",
"severity": "example",
"defectGroupUuids": [
"example"
],
"defectGroupPublicIds": [
0
]
}
DependencyInfoDto
|
Name |
Description |
|
cves |
Type: DependencyCveDto[] Example
|
|
licenses |
Type: string[] License names from the scan's SBOM. Individual license risk scores are not stored. Example
|
|
maxCveSeverity |
Type: string Example: |
|
maxLicenseRiskScore |
Type: integer Maximum license risk score stored for this scan, from 0 to 10. |
|
maxLicenseRiskSeverity |
Type: string Example: |
|
name |
Type: string Example: |
|
packageManager |
Type: string Example: |
|
purl |
Type: string Example: |
|
scope |
Type: string Example: |
|
version |
Type: string 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"
}