List a collection of Security Issues
OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
{- "pagination": {
- "link": "",
- "page": 4,
- "pageSize": 20,
- "totalItems": 230,
- "totalPages": 12
}, - "results": [
- {
- "baseImageName": "baseImageName",
- "baselineVariantId": "abcdef1234567890ghijkl",
- "created": 1651578240,
- "currentStatus": "Approved",
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionCoverage": "Partially Exempted",
- "exemptionId": "abcdef1234567890ghijkl",
- "exemptionStatusAtScan": "Rejected",
- "harnessAugmentation": {
- "Consequatur laboriosam aut illum.": "Ipsa corrupti dicta impedit quia unde.",
- "Excepturi assumenda cum in dolor aliquam.": "Inventore quam voluptatem soluta."
}, - "id": "abcdef1234567890ghijkl",
- "key": "json-schema@0.2.3",
- "numOccurrences": 10,
- "occurrenceId": 12345,
- "occurrences": [
- {
- "line": "42"
}, - {
- "line": "666"
}
], - "originStatus": "approved",
- "origins": [
- "app",
- "base"
], - "productId": "product1234567890abcde",
- "severity": 8.5,
- "severityCode": "High",
- "status": "Remediated",
- "subproduct": "product",
- "targetId": "abcdef1234567890ghijkl",
- "targetName": "abcdef1234567890ghijkl",
- "targetType": "repository",
- "targetVariantId": "abcdef1234567890ghijkl",
- "targetVariantName": "nodegoat:master",
- "title": "json-schema@0.2.3 is vulnerable to Prototype Pollution",
- "type": "SAST"
}, - {
- "baseImageName": "baseImageName",
- "baselineVariantId": "abcdef1234567890ghijkl",
- "created": 1651578240,
- "currentStatus": "Approved",
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionCoverage": "Partially Exempted",
- "exemptionId": "abcdef1234567890ghijkl",
- "exemptionStatusAtScan": "Rejected",
- "harnessAugmentation": {
- "Consequatur laboriosam aut illum.": "Ipsa corrupti dicta impedit quia unde.",
- "Excepturi assumenda cum in dolor aliquam.": "Inventore quam voluptatem soluta."
}, - "id": "abcdef1234567890ghijkl",
- "key": "json-schema@0.2.3",
- "numOccurrences": 10,
- "occurrenceId": 12345,
- "occurrences": [
- {
- "line": "42"
}, - {
- "line": "666"
}
], - "originStatus": "approved",
- "origins": [
- "app",
- "base"
], - "productId": "product1234567890abcde",
- "severity": 8.5,
- "severityCode": "High",
- "status": "Remediated",
- "subproduct": "product",
- "targetId": "abcdef1234567890ghijkl",
- "targetName": "abcdef1234567890ghijkl",
- "targetType": "repository",
- "targetVariantId": "abcdef1234567890ghijkl",
- "targetVariantName": "nodegoat:master",
- "title": "json-schema@0.2.3 is vulnerable to Prototype Pollution",
- "type": "SAST"
}, - {
- "baseImageName": "baseImageName",
- "baselineVariantId": "abcdef1234567890ghijkl",
- "created": 1651578240,
- "currentStatus": "Approved",
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionCoverage": "Partially Exempted",
- "exemptionId": "abcdef1234567890ghijkl",
- "exemptionStatusAtScan": "Rejected",
- "harnessAugmentation": {
- "Consequatur laboriosam aut illum.": "Ipsa corrupti dicta impedit quia unde.",
- "Excepturi assumenda cum in dolor aliquam.": "Inventore quam voluptatem soluta."
}, - "id": "abcdef1234567890ghijkl",
- "key": "json-schema@0.2.3",
- "numOccurrences": 10,
- "occurrenceId": 12345,
- "occurrences": [
- {
- "line": "42"
}, - {
- "line": "666"
}
], - "originStatus": "approved",
- "origins": [
- "app",
- "base"
], - "productId": "product1234567890abcde",
- "severity": 8.5,
- "severityCode": "High",
- "status": "Remediated",
- "subproduct": "product",
- "targetId": "abcdef1234567890ghijkl",
- "targetName": "abcdef1234567890ghijkl",
- "targetType": "repository",
- "targetVariantId": "abcdef1234567890ghijkl",
- "targetVariantName": "nodegoat:master",
- "title": "json-schema@0.2.3 is vulnerable to Prototype Pollution",
- "type": "SAST"
}
]
}
Create a new Security Issue
OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
{- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "key": "json-schema@0.2.3",
- "keyPattern": [
- "library_name",
- "library_version"
], - "numOccurrences": 10,
- "occurrences": [
- {
- "line": "42"
}, - {
- "line": "666"
}
], - "productId": "product1234567890abcde",
- "scanId": "abcdef1234567890ghijkl",
- "severity": 8.5,
- "severityCode": "High",
- "subproduct": "product",
- "targetVariantName": "nodegoat:master",
- "title": "json-schema@0.2.3 is vulnerable to Prototype Pollution",
- "type": "SAST"
}
{- "id": "abcdef1234567890ghijkl"
}
Find Security Issue by ID
OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
{- "baseImageName": "baseImageName",
- "baselineVariantId": "abcdef1234567890ghijkl",
- "created": 1651578240,
- "currentStatus": "Approved",
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionCoverage": "Partially Exempted",
- "exemptionId": "abcdef1234567890ghijkl",
- "exemptionStatusAtScan": "Rejected",
- "harnessAugmentation": {
- "Consequatur laboriosam aut illum.": "Ipsa corrupti dicta impedit quia unde.",
- "Excepturi assumenda cum in dolor aliquam.": "Inventore quam voluptatem soluta."
}, - "id": "abcdef1234567890ghijkl",
- "key": "json-schema@0.2.3",
- "numOccurrences": 10,
- "occurrenceId": 12345,
- "occurrences": [
- {
- "line": "42"
}, - {
- "line": "666"
}
], - "originStatus": "approved",
- "origins": [
- "app",
- "base"
], - "productId": "product1234567890abcde",
- "severity": 8.5,
- "severityCode": "High",
- "status": "Remediated",
- "subproduct": "product",
- "targetId": "abcdef1234567890ghijkl",
- "targetName": "abcdef1234567890ghijkl",
- "targetType": "repository",
- "targetVariantId": "abcdef1234567890ghijkl",
- "targetVariantName": "nodegoat:master",
- "title": "json-schema@0.2.3 is vulnerable to Prototype Pollution",
- "type": "SAST"
}
Update an existing Security Issue
Update succeeded.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
{- "numOccurrences": 10,
- "occurrences": [
- {
- "line": "42"
}, - {
- "line": "666"
}
], - "scanId": "abcdef1234567890ghijkl",
- "type": "SAST"
}
{- "message": "Bad Request: accountId parameter is required",
- "status": 400
}
Use AI to augment the remediation steps for this Security Issue
OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
{- "connectorId": "Quos laudantium est reprehenderit consequuntur.",
- "occurrenceId": 12345,
- "referenceId": "CWE-123",
- "scanId": "abcdefghijkl1234567890",
- "userSnippet": "func example() int {\n return 0\n}"
}
{- "metadata": {
- "warnings": [
- {
- "message": "Est consequatur molestiae et incidunt aspernatur.",
- "source": "Maiores quas ea unde deserunt dicta quos."
}, - {
- "message": "Est consequatur molestiae et incidunt aspernatur.",
- "source": "Maiores quas ea unde deserunt dicta quos."
}, - {
- "message": "Est consequatur molestiae et incidunt aspernatur.",
- "source": "Maiores quas ea unde deserunt dicta quos."
}, - {
- "message": "Est consequatur molestiae et incidunt aspernatur.",
- "source": "Maiores quas ea unde deserunt dicta quos."
}
]
}, - "remediationCode": "Laboriosam ad dolore.",
- "remediationContext": "Deserunt aliquid.",
- "repoContent": "Exercitationem odit cumque."
}