Issues
Access and modify Security Issues
List a collection of Security Issues
Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Page number to fetch (starting from 0)
0Example: 4Number of results per page
30Example: 50Issue product ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Compression/deduplication key
json-schema@0.2.3falseHarness personal or service access token
Sint quisquam quo suscipit.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.
GET /gateway/sto/api/v2/issues?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"pagination": {
"link": "",
"page": 4,
"pageSize": 20,
"totalItems": 230,
"totalPages": 12
},
"results": [
{
"baseImageName": "baseImageName",
"baselineVariantId": "abcdef1234567890ghijkl",
"created": 1651578240,
"currentStatus": "Rejected",
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"exemptionCoverage": "PartiallyExempted",
"exemptionId": "abcdef1234567890ghijkl",
"exemptionStatusAtScan": "Rejected",
"exploitability": "yes",
"fallbackSeverityCode": "High",
"gracePeriodDays": 13,
"harnessAugmentation": {
"Aut animi sit et vel.": "Ducimus dolorem eos non ratione sapiente.",
"Quo nihil tempora quia et.": "Perferendis asperiores qui itaque placeat dolorum qui.",
"Vel maiores vel ut nostrum quidem.": "Rem in unde in fugit quia."
},
"id": "abcdef1234567890ghijkl",
"inGrace": true,
"key": "json-schema@0.2.3",
"numOccurrences": 10,
"occurrenceId": 12345,
"occurrences": [
{
"line": "42"
},
{
"line": "666"
}
],
"originStatus": "approved",
"origins": [
"app",
"base"
],
"overrides": [
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
}
],
"overridesAtScan": [
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
}
],
"productId": "product1234567890abcde",
"reachability": "reachable",
"severity": 8.5,
"severityCode": "High",
"status": "Remediated",
"subproduct": "product",
"targetId": "abcdef1234567890ghijkl",
"targetName": "abcdef1234567890ghijkl",
"targetType": "repository",
"targetVariantId": "abcdef1234567890ghijkl",
"targetVariantName": "nodegoat:master",
"title": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
"type": "SAST"
},
{
"baseImageName": "baseImageName",
"baselineVariantId": "abcdef1234567890ghijkl",
"created": 1651578240,
"currentStatus": "Rejected",
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"exemptionCoverage": "PartiallyExempted",
"exemptionId": "abcdef1234567890ghijkl",
"exemptionStatusAtScan": "Rejected",
"exploitability": "yes",
"fallbackSeverityCode": "High",
"gracePeriodDays": 13,
"harnessAugmentation": {
"Aut animi sit et vel.": "Ducimus dolorem eos non ratione sapiente.",
"Quo nihil tempora quia et.": "Perferendis asperiores qui itaque placeat dolorum qui.",
"Vel maiores vel ut nostrum quidem.": "Rem in unde in fugit quia."
},
"id": "abcdef1234567890ghijkl",
"inGrace": true,
"key": "json-schema@0.2.3",
"numOccurrences": 10,
"occurrenceId": 12345,
"occurrences": [
{
"line": "42"
},
{
"line": "666"
}
],
"originStatus": "approved",
"origins": [
"app",
"base"
],
"overrides": [
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
}
],
"overridesAtScan": [
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
}
],
"productId": "product1234567890abcde",
"reachability": "reachable",
"severity": 8.5,
"severityCode": "High",
"status": "Remediated",
"subproduct": "product",
"targetId": "abcdef1234567890ghijkl",
"targetName": "abcdef1234567890ghijkl",
"targetType": "repository",
"targetVariantId": "abcdef1234567890ghijkl",
"targetVariantName": "nodegoat:master",
"title": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
"type": "SAST"
},
{
"baseImageName": "baseImageName",
"baselineVariantId": "abcdef1234567890ghijkl",
"created": 1651578240,
"currentStatus": "Rejected",
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"exemptionCoverage": "PartiallyExempted",
"exemptionId": "abcdef1234567890ghijkl",
"exemptionStatusAtScan": "Rejected",
"exploitability": "yes",
"fallbackSeverityCode": "High",
"gracePeriodDays": 13,
"harnessAugmentation": {
"Aut animi sit et vel.": "Ducimus dolorem eos non ratione sapiente.",
"Quo nihil tempora quia et.": "Perferendis asperiores qui itaque placeat dolorum qui.",
"Vel maiores vel ut nostrum quidem.": "Rem in unde in fugit quia."
},
"id": "abcdef1234567890ghijkl",
"inGrace": true,
"key": "json-schema@0.2.3",
"numOccurrences": 10,
"occurrenceId": 12345,
"occurrences": [
{
"line": "42"
},
{
"line": "666"
}
],
"originStatus": "approved",
"origins": [
"app",
"base"
],
"overrides": [
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
}
],
"overridesAtScan": [
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
}
],
"productId": "product1234567890abcde",
"reachability": "reachable",
"severity": 8.5,
"severityCode": "High",
"status": "Remediated",
"subproduct": "product",
"targetId": "abcdef1234567890ghijkl",
"targetName": "abcdef1234567890ghijkl",
"targetType": "repository",
"targetVariantId": "abcdef1234567890ghijkl",
"targetVariantName": "nodegoat:master",
"title": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
"type": "SAST"
},
{
"baseImageName": "baseImageName",
"baselineVariantId": "abcdef1234567890ghijkl",
"created": 1651578240,
"currentStatus": "Rejected",
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"exemptionCoverage": "PartiallyExempted",
"exemptionId": "abcdef1234567890ghijkl",
"exemptionStatusAtScan": "Rejected",
"exploitability": "yes",
"fallbackSeverityCode": "High",
"gracePeriodDays": 13,
"harnessAugmentation": {
"Aut animi sit et vel.": "Ducimus dolorem eos non ratione sapiente.",
"Quo nihil tempora quia et.": "Perferendis asperiores qui itaque placeat dolorum qui.",
"Vel maiores vel ut nostrum quidem.": "Rem in unde in fugit quia."
},
"id": "abcdef1234567890ghijkl",
"inGrace": true,
"key": "json-schema@0.2.3",
"numOccurrences": 10,
"occurrenceId": 12345,
"occurrences": [
{
"line": "42"
},
{
"line": "666"
}
],
"originStatus": "approved",
"origins": [
"app",
"base"
],
"overrides": [
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
}
],
"overridesAtScan": [
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
}
],
"productId": "product1234567890abcde",
"reachability": "reachable",
"severity": 8.5,
"severityCode": "High",
"status": "Remediated",
"subproduct": "product",
"targetId": "abcdef1234567890ghijkl",
"targetName": "abcdef1234567890ghijkl",
"targetType": "repository",
"targetVariantId": "abcdef1234567890ghijkl",
"targetVariantName": "nodegoat:master",
"title": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
"type": "SAST"
}
]
}Create a new Security Issue
Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Indicates the Occurrences have already been normalized
falseHarness personal or service access token
Laudantium necessitatibus vitae quis.Last date the issue EPSS data was last modified
2025-05-01EPSS percentile of the issue CVE identifier
0.15EPSS score of the issue CVE identifier
0.035ID of Security Test Exemption
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Compression/deduplication key
json-schema@0.2.3The pattern of fields used to generate this Security Issue's Key
["library_name","library_version"]Indicates the number of Occurrences on the Issue
10The scan tool that identified this Security Issue
product1234567890abcdePattern: ^[a-zA-Z0-9_-]{22}$The Security Scan execution that detected this Security Issue
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Numeric severity, from 0 (lowest) to 10 (highest)
8.5Severity code
HighPossible values: The subproduct that identified this Security Issue
productName of the associated Target and Variant
nodegoat:masterPattern: ^[a-zA-Z0-9_-]{22}$Title of the Security Issue
Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hashThe type of vulnerability or quality issue for this Issue
SASTPossible values: OK response.
Resource identifier
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
POST /gateway/sto/api/v2/issues?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 583
{
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"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": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
"type": "SAST"
}{
"id": "abcdef1234567890ghijkl"
}Find Security Issue by ID
The ID of the Security Issue to retrieve
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Organization ID
example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Project ID
example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$Associated Target ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness personal or service access token
Explicabo in debitis accusamus laudantium sunt similique.OK response.
Information about a Security Issue
base image name of the issue
baseImageNameThe Baseline Target Variant related to this Security Issue
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Unix timestamp at which the resource was created
1651578240Current status of the Exemption
ApprovedPossible values: Last date the issue EPSS data was last modified
2025-05-01EPSS percentile of the issue CVE identifier
0.15EPSS score of the issue CVE identifier
0.035Indicates if the Security Issue was found to be Exempted or PartiallyExempted.
PartiallyExemptedID of Security Test Exemption
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Exemption's status at the Security Scan created time
RejectedPossible values: Exploitability status of the issue (yes or no)
yesIssue-table severity code used as occurrence fallback at read time; omitted from API responses
HighPossible values: Issue-level grace period rollup in days. Only populated when scan honorGracePeriod is enabled.
13Resource identifier
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$True when the displayed severity is grace-sheltered: at the display-max severity band, all non-exempt occurrences are in grace. Only populated when scan honorGracePeriod is enabled.
trueCompression/deduplication key
json-schema@0.2.3Indicates the number of Occurrences on the Issue
1012345The status of the origin, either 'approved' or 'unapproved'
approvedThe origins of the issue
["app","base"]The scan tool that identified this Security Issue
product1234567890abcdePattern: ^[a-zA-Z0-9_-]{22}$Reachability status of the issue (reachable or unreachable)
reachableNumeric severity, from 0 (lowest) to 10 (highest)
8.5Severity code
HighPossible values: Indicates if the Security Issue was found to be remediated, ignored, etc.
RemediatedPossible values: The subproduct that identified this Security Issue
productThe Target that this Security Issue affects
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$The Name of the Target that this Security Issue affects
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$The type of the Target that this Security Issue affects
repositoryPossible values: The Target Variant that this Security Issue affects
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Name of the associated Target and Variant
nodegoat:masterPattern: ^[a-zA-Z0-9_-]{22}$Title of the Security Issue
Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hashThe type of vulnerability or quality issue for this Issue
SASTPossible values: BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
GET /gateway/sto/api/v2/issues/{id}?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"baseImageName": "baseImageName",
"baselineVariantId": "abcdef1234567890ghijkl",
"created": 1651578240,
"currentStatus": "Rejected",
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"exemptionCoverage": "PartiallyExempted",
"exemptionId": "abcdef1234567890ghijkl",
"exemptionStatusAtScan": "Rejected",
"exploitability": "yes",
"fallbackSeverityCode": "High",
"gracePeriodDays": 13,
"harnessAugmentation": {
"Aut animi sit et vel.": "Ducimus dolorem eos non ratione sapiente.",
"Quo nihil tempora quia et.": "Perferendis asperiores qui itaque placeat dolorum qui.",
"Vel maiores vel ut nostrum quidem.": "Rem in unde in fugit quia."
},
"id": "abcdef1234567890ghijkl",
"inGrace": true,
"key": "json-schema@0.2.3",
"numOccurrences": 10,
"occurrenceId": 12345,
"occurrences": [
{
"line": "42"
},
{
"line": "666"
}
],
"originStatus": "approved",
"origins": [
"app",
"base"
],
"overrides": [
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
}
],
"overridesAtScan": [
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
},
{
"created": 1651578240,
"fieldName": "severityCode",
"impactedTargetId": "target1111111111111111",
"originalFieldValue": "Low",
"overrideFieldValue": "Low",
"overrideId": "override1234",
"reason": "Waiting on upstream bug fix",
"requesterEmail": "user@harness.io",
"requesterId": "user111111111111111111",
"requesterName": "firstname lastname"
}
],
"productId": "product1234567890abcde",
"reachability": "reachable",
"severity": 8.5,
"severityCode": "High",
"status": "Remediated",
"subproduct": "product",
"targetId": "abcdef1234567890ghijkl",
"targetName": "abcdef1234567890ghijkl",
"targetType": "repository",
"targetVariantId": "abcdef1234567890ghijkl",
"targetVariantName": "nodegoat:master",
"title": "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash",
"type": "SAST"
}Update an existing Security Issue
The ID of the Security Issue to update
Placeat et accusantium.Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness personal or service access token
Harum debitis sapiente.Indicates the number of Occurrences on the Issue
10The Security Scan execution that detected this Security Issue
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$The type of vulnerability or quality issue for this Issue
SASTPossible values: Update succeeded.
No content
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
PUT /gateway/sto/api/v2/issues/{id}?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 114
{
"numOccurrences": 10,
"occurrences": [
{
"line": "42"
},
{
"line": "666"
}
],
"scanId": "abcdef1234567890ghijkl",
"type": "SAST"
}No content
Use AI to augment the remediation steps for this Security Issue
The ID of the Security Issue to augment
1234567890abcdefghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Organization ID
example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Project ID
example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$If true, return only taintPathAnalysis. If false/absent, return all sections except taintPathAnalysis.
trueIf true, skip the code-fix AI call only; still generate remediation sections. Omits remediationCode from the result. Used when rem-agent PRs already exist for the issue.
falseHarness personal or service access token
Ipsum magni omnis.Nostrum et blanditiis.12345CWE-123The Scan ID to use as context for the Security Issue to augment
abcdefghijkl1234567890Pattern: ^[a-zA-Z0-9_-]{22}$The user-supplied code snippet
func example() int { return 0 }OK response.
Quidem quos qui eveniet.Culpa minima sed perferendis similique.BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
POST /gateway/sto/api/v2/issues/{id}/augment-remediation?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 432
{
"connectorId": "Ut veniam esse a consectetur.",
"dataflow": {
"Cumque nam autem est in.": "Maxime deserunt ipsum eaque consectetur repellat dolorem.",
"Quis cum illo non illum.": "Modi iusto sit rem autem quidem.",
"Velit ut asperiores laboriosam non ducimus.": "Velit sapiente quia nam nostrum enim illum."
},
"occurrenceId": 12345,
"referenceId": "CWE-123",
"scanId": "abcdefghijkl1234567890",
"userSnippet": "func example() int {\n return 0\n}"
}{
"metadata": {
"warnings": [
{
"message": "Alias velit sint quae.",
"source": "Expedita exercitationem saepe est nemo explicabo assumenda."
},
{
"message": "Alias velit sint quae.",
"source": "Expedita exercitationem saepe est nemo explicabo assumenda."
},
{
"message": "Alias velit sint quae.",
"source": "Expedita exercitationem saepe est nemo explicabo assumenda."
}
]
},
"remediationCode": "Officiis temporibus voluptates in adipisci vero consequatur.",
"remediationSections": {
"attackScenario": "Repudiandae nesciunt consequatur blanditiis debitis vero ut.",
"furtherConsiderations": "Deserunt provident sint.",
"references": "Itaque saepe tempora quod officia.",
"remediationSteps": "Quas placeat fuga voluptatum voluptatem voluptates vero.",
"rootCauseAnalysis": "Tempore libero.",
"secureCodingPattern": "Quis ut dolorem provident voluptas laboriosam consequatur.",
"taintPathAnalysis": "Magnam animi molestias mollitia dolor quidem.",
"testCases": "Officia quam debitis dolore.",
"verificationChecklist": "In delectus deserunt cum aut mollitia soluta.",
"vulnerabilityOverview": "Corporis rerum necessitatibus qui."
},
"repoContent": "Ducimus quod nihil reiciendis fugit consequatur qui."
}Last updated
Was this helpful?