Scans
Access and modify Security Test Scans
List a collection of Security Test Scans
Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Page number to fetch (starting from 0)
0Example: 4Number of results per page
30Example: 50Harness Execution ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness personal or service access token
Aut culpa sed voluptas iure omnis sint.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/scans?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": [
{
"codeCoverage": 65.5,
"created": 1651578240,
"executionId": "abcdef1234567890ghijkl",
"gitMetadata": {
"commit": "0000000000000000000000000000000000000001",
"detectedName": "Necessitatibus dolore dicta assumenda.",
"detectedVariant": "Temporibus quis architecto voluptate quae dolores.",
"droneCorrelated": false,
"provider": "Perspiciatis minima et.",
"pullRequestNumber": 11,
"repositoryHttp": "https://github.com/harness/drone-cli.git",
"repositoryPath": [
"Est molestiae sunt ea sed id.",
"Eaque cum alias.",
"Minima et iure quis.",
"Fuga veniam ex nihil maiores."
],
"repositorySsh": "git@github.com:harness/drone-cli.git",
"sourceBranch": "feat/shiny-object",
"targetBranch": "develop",
"workspace": "/harness"
},
"id": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"metadata": {
"baseImageDigest": "sha256:abcdef1234567890ghijkl",
"baseImageName": "my-image",
"baseImageTag": "1.0.0"
},
"orgId": "your_harness_org",
"pipelineId": "your_harness_pipeline",
"productId": "product111111111111111",
"productName": "snyk",
"productPrettyName": "Snyk",
"projectId": "your_harness_project",
"refinementVersion": "1.0.5",
"scannerDiffKey": "sast",
"stageId": "stage_id",
"status": "Succeeded",
"stepId": "step_id",
"subproduct": "owasp",
"targetVariantId": "variant111111111111111"
},
{
"codeCoverage": 65.5,
"created": 1651578240,
"executionId": "abcdef1234567890ghijkl",
"gitMetadata": {
"commit": "0000000000000000000000000000000000000001",
"detectedName": "Necessitatibus dolore dicta assumenda.",
"detectedVariant": "Temporibus quis architecto voluptate quae dolores.",
"droneCorrelated": false,
"provider": "Perspiciatis minima et.",
"pullRequestNumber": 11,
"repositoryHttp": "https://github.com/harness/drone-cli.git",
"repositoryPath": [
"Est molestiae sunt ea sed id.",
"Eaque cum alias.",
"Minima et iure quis.",
"Fuga veniam ex nihil maiores."
],
"repositorySsh": "git@github.com:harness/drone-cli.git",
"sourceBranch": "feat/shiny-object",
"targetBranch": "develop",
"workspace": "/harness"
},
"id": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"metadata": {
"baseImageDigest": "sha256:abcdef1234567890ghijkl",
"baseImageName": "my-image",
"baseImageTag": "1.0.0"
},
"orgId": "your_harness_org",
"pipelineId": "your_harness_pipeline",
"productId": "product111111111111111",
"productName": "snyk",
"productPrettyName": "Snyk",
"projectId": "your_harness_project",
"refinementVersion": "1.0.5",
"scannerDiffKey": "sast",
"stageId": "stage_id",
"status": "Succeeded",
"stepId": "step_id",
"subproduct": "owasp",
"targetVariantId": "variant111111111111111"
}
]
}Create a new Security Test Scan
Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness personal or service access token
Consequatur possimus molestiae ducimus voluptate.Harness User ID
abcdef1234567890ghijklThe Code Coverage value for the Scan
65.5Pipeline Execution ID associated with the Scan
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Organization ID
your_harness_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Organization ID
your_harness_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$The Scan Product used for the Scan
product111111111111111Pattern: ^[a-zA-Z0-9_-]{22}$The machine name of the Scan Product (scanner), e.g. snyk. Optional; populated by endpoints that join the product table.
snykThe human-readable display name of the Scan Product (scanner), e.g. Snyk. Optional; populated by endpoints that join the product table.
SnykHarness Project ID
your_harness_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$The Issue refinement version used for this Scan
1.0.5Key used to differentiate scanner configurations for scan comparison (e.g. sast, sca, sast_sca)
sastPipeline Stage ID associated with the Scan
stage_idPattern: ^[A-Za-z_][A-Za-z0-9_]*$Current status of the Scan
SucceededPossible values: Pipeline Step ID associated with the Scan
step_idPattern: ^[A-Za-z_][A-Za-z0-9_]*$The Scan Subproduct used for the Scan
owaspThe Target Variant associated with the Scan
variant111111111111111Pattern: ^[a-zA-Z0-9_-]{22}$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/scans?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: 985
{
"codeCoverage": 65.5,
"executionId": "abcdef1234567890ghijkl",
"gitMetadata": {
"commit": "0000000000000000000000000000000000000001",
"detectedName": "Recusandae rem autem optio est.",
"detectedVariant": "Mollitia recusandae incidunt necessitatibus rerum odit.",
"droneCorrelated": false,
"provider": "Error deleniti sint rem doloribus.",
"pullRequestNumber": 11,
"repositoryHttp": "https://github.com/harness/drone-cli.git",
"repositoryPath": [
"Dolor sunt blanditiis.",
"Quibusdam inventore voluptatem."
],
"repositorySsh": "git@github.com:harness/drone-cli.git",
"sourceBranch": "feat/shiny-object",
"targetBranch": "develop",
"workspace": "/harness"
},
"orgId": "your_harness_org",
"pipelineId": "your_harness_pipeline",
"productId": "product111111111111111",
"productName": "snyk",
"productPrettyName": "Snyk",
"projectId": "your_harness_project",
"refinementVersion": "1.0.5",
"scannerDiffKey": "sast",
"stageId": "stage_id",
"status": "Succeeded",
"stepId": "step_id",
"subproduct": "owasp",
"targetVariantId": "variant111111111111111"
}{
"id": "abcdef1234567890ghijkl"
}Find Security Test Scan by ID
The ID of the Security Test Scan to retrieve
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness personal or service access token
A quae aliquam itaque corrupti illum.OK response.
Information about a Security Test Scan
The Code Coverage value for the Scan
65.5Unix timestamp at which the resource was created
1651578240Pipeline Execution ID associated with the Scan
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Resource identifier
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Unix timestamp at which the resource was most recently modified
1651578240Harness Organization ID
your_harness_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Organization ID
your_harness_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$The Scan Product used for the Scan
product111111111111111Pattern: ^[a-zA-Z0-9_-]{22}$The machine name of the Scan Product (scanner), e.g. snyk. Optional; populated by endpoints that join the product table.
snykThe human-readable display name of the Scan Product (scanner), e.g. Snyk. Optional; populated by endpoints that join the product table.
SnykHarness Project ID
your_harness_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$The Issue refinement version used for this Scan
1.0.5Key used to differentiate scanner configurations for scan comparison (e.g. sast, sca, sast_sca)
sastPipeline Stage ID associated with the Scan
stage_idPattern: ^[A-Za-z_][A-Za-z0-9_]*$Current status of the Scan
SucceededPossible values: Pipeline Step ID associated with the Scan
step_idPattern: ^[A-Za-z_][A-Za-z0-9_]*$The Scan Subproduct used for the Scan
owaspThe Target Variant associated with the Scan
variant111111111111111Pattern: ^[a-zA-Z0-9_-]{22}$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/scans/{id}?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"codeCoverage": 65.5,
"created": 1651578240,
"executionId": "abcdef1234567890ghijkl",
"gitMetadata": {
"commit": "0000000000000000000000000000000000000001",
"detectedName": "Necessitatibus dolore dicta assumenda.",
"detectedVariant": "Temporibus quis architecto voluptate quae dolores.",
"droneCorrelated": false,
"provider": "Perspiciatis minima et.",
"pullRequestNumber": 11,
"repositoryHttp": "https://github.com/harness/drone-cli.git",
"repositoryPath": [
"Est molestiae sunt ea sed id.",
"Eaque cum alias.",
"Minima et iure quis.",
"Fuga veniam ex nihil maiores."
],
"repositorySsh": "git@github.com:harness/drone-cli.git",
"sourceBranch": "feat/shiny-object",
"targetBranch": "develop",
"workspace": "/harness"
},
"id": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"metadata": {
"baseImageDigest": "sha256:abcdef1234567890ghijkl",
"baseImageName": "my-image",
"baseImageTag": "1.0.0"
},
"orgId": "your_harness_org",
"pipelineId": "your_harness_pipeline",
"productId": "product111111111111111",
"productName": "snyk",
"productPrettyName": "Snyk",
"projectId": "your_harness_project",
"refinementVersion": "1.0.5",
"scannerDiffKey": "sast",
"stageId": "stage_id",
"status": "Succeeded",
"stepId": "step_id",
"subproduct": "owasp",
"targetVariantId": "variant111111111111111"
}Update an existing Security Test Scan
The ID of the Security Test Scan to update
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness personal or service access token
Voluptatem tempora animi sunt beatae.The Artifact Fingerprint used use to identify the target
abcdef1234567890ghijklPattern: ^[A-Za-z0-9_]*$The Code Coverage value for the Scan
65.5Pipeline Execution ID associated with the Scan
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Organization ID
your_harness_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Organization ID
your_harness_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$The Scan Product used for the Scan
product111111111111111Pattern: ^[a-zA-Z0-9_-]{22}$The machine name of the Scan Product (scanner), e.g. snyk. Optional; populated by endpoints that join the product table.
snykThe human-readable display name of the Scan Product (scanner), e.g. Snyk. Optional; populated by endpoints that join the product table.
SnykHarness Project ID
your_harness_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$The Issue refinement version used for this Scan
1.0.5Key used to differentiate scanner configurations for scan comparison (e.g. sast, sca, sast_sca)
sastPipeline Stage ID associated with the Scan
stage_idPattern: ^[A-Za-z_][A-Za-z0-9_]*$Current status of the Scan
SucceededPossible values: Pipeline Step ID associated with the Scan
step_idPattern: ^[A-Za-z_][A-Za-z0-9_]*$The Scan Subproduct used for the Scan
owaspThe Target Variant associated with the Scan
variant111111111111111Pattern: ^[a-zA-Z0-9_-]{22}$OK response.
Information about a Security Test Scan
The Code Coverage value for the Scan
65.5Unix timestamp at which the resource was created
1651578240Pipeline Execution ID associated with the Scan
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Resource identifier
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Unix timestamp at which the resource was most recently modified
1651578240Harness Organization ID
your_harness_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Organization ID
your_harness_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$The Scan Product used for the Scan
product111111111111111Pattern: ^[a-zA-Z0-9_-]{22}$The machine name of the Scan Product (scanner), e.g. snyk. Optional; populated by endpoints that join the product table.
snykThe human-readable display name of the Scan Product (scanner), e.g. Snyk. Optional; populated by endpoints that join the product table.
SnykHarness Project ID
your_harness_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$The Issue refinement version used for this Scan
1.0.5Key used to differentiate scanner configurations for scan comparison (e.g. sast, sca, sast_sca)
sastPipeline Stage ID associated with the Scan
stage_idPattern: ^[A-Za-z_][A-Za-z0-9_]*$Current status of the Scan
SucceededPossible values: Pipeline Step ID associated with the Scan
step_idPattern: ^[A-Za-z_][A-Za-z0-9_]*$The Scan Subproduct used for the Scan
owaspThe Target Variant associated with the Scan
variant111111111111111Pattern: ^[a-zA-Z0-9_-]{22}$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/scans/{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: 1145
{
"artifactFingerprint": "abcdef1234567890ghijkl",
"codeCoverage": 65.5,
"executionId": "abcdef1234567890ghijkl",
"gitMetadata": {
"commit": "0000000000000000000000000000000000000001",
"detectedName": "Recusandae rem autem optio est.",
"detectedVariant": "Mollitia recusandae incidunt necessitatibus rerum odit.",
"droneCorrelated": false,
"provider": "Error deleniti sint rem doloribus.",
"pullRequestNumber": 11,
"repositoryHttp": "https://github.com/harness/drone-cli.git",
"repositoryPath": [
"Dolor sunt blanditiis.",
"Quibusdam inventore voluptatem."
],
"repositorySsh": "git@github.com:harness/drone-cli.git",
"sourceBranch": "feat/shiny-object",
"targetBranch": "develop",
"workspace": "/harness"
},
"metadata": {
"baseImageDigest": "sha256:abcdef1234567890ghijkl",
"baseImageName": "my-image",
"baseImageTag": "1.0.0"
},
"orgId": "your_harness_org",
"pipelineId": "your_harness_pipeline",
"productId": "product111111111111111",
"productName": "snyk",
"productPrettyName": "Snyk",
"projectId": "your_harness_project",
"refinementVersion": "1.0.5",
"scannerDiffKey": "sast",
"stageId": "stage_id",
"status": "Succeeded",
"stepId": "step_id",
"subproduct": "owasp",
"targetVariantId": "variant111111111111111"
}{
"codeCoverage": 65.5,
"created": 1651578240,
"executionId": "abcdef1234567890ghijkl",
"gitMetadata": {
"commit": "0000000000000000000000000000000000000001",
"detectedName": "Necessitatibus dolore dicta assumenda.",
"detectedVariant": "Temporibus quis architecto voluptate quae dolores.",
"droneCorrelated": false,
"provider": "Perspiciatis minima et.",
"pullRequestNumber": 11,
"repositoryHttp": "https://github.com/harness/drone-cli.git",
"repositoryPath": [
"Est molestiae sunt ea sed id.",
"Eaque cum alias.",
"Minima et iure quis.",
"Fuga veniam ex nihil maiores."
],
"repositorySsh": "git@github.com:harness/drone-cli.git",
"sourceBranch": "feat/shiny-object",
"targetBranch": "develop",
"workspace": "/harness"
},
"id": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"metadata": {
"baseImageDigest": "sha256:abcdef1234567890ghijkl",
"baseImageName": "my-image",
"baseImageTag": "1.0.0"
},
"orgId": "your_harness_org",
"pipelineId": "your_harness_pipeline",
"productId": "product111111111111111",
"productName": "snyk",
"productPrettyName": "Snyk",
"projectId": "your_harness_project",
"refinementVersion": "1.0.5",
"scannerDiffKey": "sast",
"stageId": "stage_id",
"status": "Succeeded",
"stepId": "step_id",
"subproduct": "owasp",
"targetVariantId": "variant111111111111111"
}Returns a scan specific issue
The ID of the Security Test Scan
Autem non occaecati vel eos.The ID of the Security Test Issue
Omnis dignissimos error vel quia dolor ut.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_]*$Page number to fetch (starting from 0)
0Example: 4Number of results per page
30Example: 50The field to sort by
Ea autem veritatis corporis.The order to sort by
DESCPossible values: Harness personal or service access token
Odio quos quidem sit incidunt est eius.OK response.
Aggregate AI triage verdict. 'LikelyFP' if every occurrence is FALSE_POSITIVE; 'LikelyTP' if any is TRUE_POSITIVE; 'NotEvaluatedYet' if only some are triaged. Field is absent when no occurrence has been triaged yet.
LikelyFPPossible values: Representative LLM reasoning quoted from one of the per-occurrence triaged verdicts (FP-verdict reasoning preferred). Field is absent when no occurrence has been triaged yet.
The argument to path.join is __dirname, a constant, not user input.base image name of the issue
baseImageNameorg id of the issue from where the base image is being referred
defaultproject id of the issue from where the base image is being referred
STOThe 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.
13Whether the account has at least one exemption rule. When false, clients can skip exemption rule evaluation (no rule-eval loaders).
trueResource 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.3last scan timestamp of the base image being referred
1651578240Indicates the number of Occurrences which dont have an active exemption on the Occurrence
0Example: 10Indicates the number of Occurrences on the Issue
1012345The status of the origin, either 'approved' or 'unapproved'
approvedThe origins of the issue
["app","base"]Harness Pipeline ID
example_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$The primary occurrence's ID
12345The 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/scans/{id}/issue/{issueId}?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"aiTriaged": "LikelyFP",
"aiTriagedReasoning": "The argument to path.join is __dirname, a constant, not user input.",
"baseImageName": "baseImageName",
"baseImageOrgId": "default",
"baseImageProjectId": "STO",
"baselineVariantId": "abcdef1234567890ghijkl",
"created": 1651578240,
"currentStatus": "Approved",
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"exemptionCoverage": "PartiallyExempted",
"exemptionId": "abcdef1234567890ghijkl",
"exemptionStatusAtScan": "Approved",
"exploitability": "yes",
"fallbackSeverityCode": "High",
"gitMetadata": {
"commit": "0000000000000000000000000000000000000001",
"detectedName": "Necessitatibus dolore dicta assumenda.",
"detectedVariant": "Temporibus quis architecto voluptate quae dolores.",
"droneCorrelated": false,
"provider": "Perspiciatis minima et.",
"pullRequestNumber": 11,
"repositoryHttp": "https://github.com/harness/drone-cli.git",
"repositoryPath": [
"Est molestiae sunt ea sed id.",
"Eaque cum alias.",
"Minima et iure quis.",
"Fuga veniam ex nihil maiores."
],
"repositorySsh": "git@github.com:harness/drone-cli.git",
"sourceBranch": "feat/shiny-object",
"targetBranch": "develop",
"workspace": "/harness"
},
"gracePeriodDays": 13,
"harnessAugmentation": {
"Magni sapiente consequatur.": "Cum et esse voluptas alias officia.",
"Ut recusandae numquam est.": "Vel aut omnis fugit aut."
},
"hasRules": true,
"id": "abcdef1234567890ghijkl",
"inGrace": true,
"key": "json-schema@0.2.3",
"lastBaseImageScanAt": 1651578240,
"numNonExemptedOccurrences": 10,
"numOccurrences": 10,
"occurrenceId": 12345,
"occurrences": [
{
"line": "42"
},
{
"line": "666"
}
],
"occurrencesPagination": {
"link": "",
"page": 4,
"pageSize": 20,
"totalItems": 230,
"totalPages": 12
},
"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"
}
],
"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"
}
],
"pipelineId": "example_pipeline",
"primaryOccurrenceId": 12345,
"productId": "product1234567890abcde",
"reachability": "reachable",
"recentActivities": [
{
"actorName": "Priya Nair",
"created": 1781391060,
"id": "hist111111111111111111",
"isAutoExpiry": false,
"status": "Expired"
},
{
"actorName": "Priya Nair",
"created": 1781391060,
"id": "hist111111111111111111",
"isAutoExpiry": false,
"status": "Expired"
}
],
"remediationAgentPullRequests": [
{
"buildId": "4",
"commits": 3,
"createdAt": "2026-07-04T12:45:00Z",
"executionId": "execution1111111111111",
"fixVerified": "success",
"fixVerifiedPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"id": "42",
"jiraTicketId": "STO-87236",
"jiraTicketUrl": "https://jira.example.com/browse/STO-87236",
"prNumber": 13114,
"prTitle": "[13114] Security fix",
"prUrl": "https://github.com/harness/example/pull/13114",
"regression": "success",
"regressionPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"repository": "harness/nodegoat",
"scanId": "scan111111111111111111",
"sourceBranch": "remediation/sast-13114",
"status": "Open",
"targetBranch": "master"
},
{
"buildId": "4",
"commits": 3,
"createdAt": "2026-07-04T12:45:00Z",
"executionId": "execution1111111111111",
"fixVerified": "success",
"fixVerifiedPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"id": "42",
"jiraTicketId": "STO-87236",
"jiraTicketUrl": "https://jira.example.com/browse/STO-87236",
"prNumber": 13114,
"prTitle": "[13114] Security fix",
"prUrl": "https://github.com/harness/example/pull/13114",
"regression": "success",
"regressionPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"repository": "harness/nodegoat",
"scanId": "scan111111111111111111",
"sourceBranch": "remediation/sast-13114",
"status": "Open",
"targetBranch": "master"
},
{
"buildId": "4",
"commits": 3,
"createdAt": "2026-07-04T12:45:00Z",
"executionId": "execution1111111111111",
"fixVerified": "success",
"fixVerifiedPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"id": "42",
"jiraTicketId": "STO-87236",
"jiraTicketUrl": "https://jira.example.com/browse/STO-87236",
"prNumber": 13114,
"prTitle": "[13114] Security fix",
"prUrl": "https://github.com/harness/example/pull/13114",
"regression": "success",
"regressionPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"repository": "harness/nodegoat",
"scanId": "scan111111111111111111",
"sourceBranch": "remediation/sast-13114",
"status": "Open",
"targetBranch": "master"
}
],
"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"
}Returns occurrences for a scan specific issue
The ID of the Security Test Scan
Officia ex deleniti beatae ipsum.The ID of the Security Test Issue
Qui rem nesciunt reprehenderit.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_]*$Page number to fetch (starting from 0)
0Example: 4Number of results per page
30Example: 50CWE-123,5EXEMPTED,REJECTEDPattern: ^(EXEMPTED|NOT_EXEMPTED|REJECTED|PENDING)(,EXEMPTED|,NOT_EXEMPTED|,REJECTED|,PENDING)*$12345The field to sort by
Excepturi quo ut est sit qui quasi.The order to sort by
DESCPossible values: ID of Security Test Exemption
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness personal or service access token
Praesentium ab quis quo non amet.OK response.
Aggregate AI triage verdict. 'LikelyFP' if every occurrence is FALSE_POSITIVE; 'LikelyTP' if any is TRUE_POSITIVE; 'NotEvaluatedYet' if only some are triaged. Field is absent when no occurrence has been triaged yet.
LikelyFPPossible values: Representative LLM reasoning quoted from one of the per-occurrence triaged verdicts (FP-verdict reasoning preferred). Field is absent when no occurrence has been triaged yet.
The argument to path.join is __dirname, a constant, not user input.base image name of the issue
baseImageNameorg id of the issue from where the base image is being referred
defaultproject id of the issue from where the base image is being referred
STOThe 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.
13Whether the account has at least one exemption rule. When false, clients can skip exemption rule evaluation (no rule-eval loaders).
trueResource 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.3last scan timestamp of the base image being referred
1651578240Indicates the number of Occurrences which dont have an active exemption on the Occurrence
0Example: 10Indicates the number of Occurrences on the Issue
1012345The status of the origin, either 'approved' or 'unapproved'
approvedThe origins of the issue
["app","base"]Harness Pipeline ID
example_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$The primary occurrence's ID
12345The 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/scans/{id}/issue/{issueId}/occurrences?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"aiTriaged": "LikelyFP",
"aiTriagedReasoning": "The argument to path.join is __dirname, a constant, not user input.",
"baseImageName": "baseImageName",
"baseImageOrgId": "default",
"baseImageProjectId": "STO",
"baselineVariantId": "abcdef1234567890ghijkl",
"created": 1651578240,
"currentStatus": "Approved",
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"exemptionCoverage": "PartiallyExempted",
"exemptionId": "abcdef1234567890ghijkl",
"exemptionStatusAtScan": "Approved",
"exploitability": "yes",
"fallbackSeverityCode": "High",
"gitMetadata": {
"commit": "0000000000000000000000000000000000000001",
"detectedName": "Necessitatibus dolore dicta assumenda.",
"detectedVariant": "Temporibus quis architecto voluptate quae dolores.",
"droneCorrelated": false,
"provider": "Perspiciatis minima et.",
"pullRequestNumber": 11,
"repositoryHttp": "https://github.com/harness/drone-cli.git",
"repositoryPath": [
"Est molestiae sunt ea sed id.",
"Eaque cum alias.",
"Minima et iure quis.",
"Fuga veniam ex nihil maiores."
],
"repositorySsh": "git@github.com:harness/drone-cli.git",
"sourceBranch": "feat/shiny-object",
"targetBranch": "develop",
"workspace": "/harness"
},
"gracePeriodDays": 13,
"harnessAugmentation": {
"Magni sapiente consequatur.": "Cum et esse voluptas alias officia.",
"Ut recusandae numquam est.": "Vel aut omnis fugit aut."
},
"hasRules": true,
"id": "abcdef1234567890ghijkl",
"inGrace": true,
"key": "json-schema@0.2.3",
"lastBaseImageScanAt": 1651578240,
"numNonExemptedOccurrences": 10,
"numOccurrences": 10,
"occurrenceId": 12345,
"occurrences": [
{
"line": "42"
},
{
"line": "666"
}
],
"occurrencesPagination": {
"link": "",
"page": 4,
"pageSize": 20,
"totalItems": 230,
"totalPages": 12
},
"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"
}
],
"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"
}
],
"pipelineId": "example_pipeline",
"primaryOccurrenceId": 12345,
"productId": "product1234567890abcde",
"reachability": "reachable",
"recentActivities": [
{
"actorName": "Priya Nair",
"created": 1781391060,
"id": "hist111111111111111111",
"isAutoExpiry": false,
"status": "Expired"
},
{
"actorName": "Priya Nair",
"created": 1781391060,
"id": "hist111111111111111111",
"isAutoExpiry": false,
"status": "Expired"
}
],
"remediationAgentPullRequests": [
{
"buildId": "4",
"commits": 3,
"createdAt": "2026-07-04T12:45:00Z",
"executionId": "execution1111111111111",
"fixVerified": "success",
"fixVerifiedPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"id": "42",
"jiraTicketId": "STO-87236",
"jiraTicketUrl": "https://jira.example.com/browse/STO-87236",
"prNumber": 13114,
"prTitle": "[13114] Security fix",
"prUrl": "https://github.com/harness/example/pull/13114",
"regression": "success",
"regressionPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"repository": "harness/nodegoat",
"scanId": "scan111111111111111111",
"sourceBranch": "remediation/sast-13114",
"status": "Open",
"targetBranch": "master"
},
{
"buildId": "4",
"commits": 3,
"createdAt": "2026-07-04T12:45:00Z",
"executionId": "execution1111111111111",
"fixVerified": "success",
"fixVerifiedPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"id": "42",
"jiraTicketId": "STO-87236",
"jiraTicketUrl": "https://jira.example.com/browse/STO-87236",
"prNumber": 13114,
"prTitle": "[13114] Security fix",
"prUrl": "https://github.com/harness/example/pull/13114",
"regression": "success",
"regressionPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"repository": "harness/nodegoat",
"scanId": "scan111111111111111111",
"sourceBranch": "remediation/sast-13114",
"status": "Open",
"targetBranch": "master"
},
{
"buildId": "4",
"commits": 3,
"createdAt": "2026-07-04T12:45:00Z",
"executionId": "execution1111111111111",
"fixVerified": "success",
"fixVerifiedPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"id": "42",
"jiraTicketId": "STO-87236",
"jiraTicketUrl": "https://jira.example.com/browse/STO-87236",
"prNumber": 13114,
"prTitle": "[13114] Security fix",
"prUrl": "https://github.com/harness/example/pull/13114",
"regression": "success",
"regressionPipeline": {
"executionId": "execution1111111111111",
"orgId": "default",
"pipelineId": "security_pipeline",
"projectId": "STO"
},
"repository": "harness/nodegoat",
"scanId": "scan111111111111111111",
"sourceBranch": "remediation/sast-13114",
"status": "Open",
"targetBranch": "master"
}
],
"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"
}List Issues by Scan ID
The Scan ID
abcdefghijkl1234567890Pattern: ^[a-zA-Z0-9_-]{22}$Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Chooses whether to show exempted issues ("only"), or non-exempted issues ("0" or "false")
falseExample: 0Possible values: Harness personal or service access token
Minus provident velit.OK response.
List of Issues
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
GET /gateway/sto/api/v2/scans/{id}/issues?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"issues": [
{
"baseImageName": "baseImageName",
"baselineVariantId": "abcdef1234567890ghijkl",
"created": 1651578240,
"currentStatus": "Pending",
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"exemptionCoverage": "PartiallyExempted",
"exemptionId": "abcdef1234567890ghijkl",
"exemptionStatusAtScan": "Expired",
"exploitability": "yes",
"fallbackSeverityCode": "High",
"gracePeriodDays": 13,
"harnessAugmentation": {
"Commodi in aut totam quia.": "Amet aut eum omnis placeat sed dolor.",
"Magnam ea enim commodi.": "Voluptatem amet ipsa non ut aut odit."
},
"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"
}
],
"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"
}
],
"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": "Pending",
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"exemptionCoverage": "PartiallyExempted",
"exemptionId": "abcdef1234567890ghijkl",
"exemptionStatusAtScan": "Expired",
"exploitability": "yes",
"fallbackSeverityCode": "High",
"gracePeriodDays": 13,
"harnessAugmentation": {
"Commodi in aut totam quia.": "Amet aut eum omnis placeat sed dolor.",
"Magnam ea enim commodi.": "Voluptatem amet ipsa non ut aut odit."
},
"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"
}
],
"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"
}
],
"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": "Pending",
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"exemptionCoverage": "PartiallyExempted",
"exemptionId": "abcdef1234567890ghijkl",
"exemptionStatusAtScan": "Expired",
"exploitability": "yes",
"fallbackSeverityCode": "High",
"gracePeriodDays": 13,
"harnessAugmentation": {
"Commodi in aut totam quia.": "Amet aut eum omnis placeat sed dolor.",
"Magnam ea enim commodi.": "Voluptatem amet ipsa non ut aut odit."
},
"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"
}
],
"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"
}
],
"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": "Pending",
"details": {
"package": "json-schema",
"version": "v0.2.3"
},
"epssLastModified": "2025-05-01",
"epssPercentile": 0.15,
"epssScore": 0.035,
"exemptionCoverage": "PartiallyExempted",
"exemptionId": "abcdef1234567890ghijkl",
"exemptionStatusAtScan": "Expired",
"exploitability": "yes",
"fallbackSeverityCode": "High",
"gracePeriodDays": 13,
"harnessAugmentation": {
"Commodi in aut totam quia.": "Amet aut eum omnis placeat sed dolor.",
"Magnam ea enim commodi.": "Voluptatem amet ipsa non ut aut odit."
},
"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"
}
],
"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"
}
],
"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"
}
]
}Returns counts of active Security Issues for a Security Test Scan
The ID of the Security Test Scan for which to count issues
Numquam quo error tempore et.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_]*$Harness personal or service access token
Dolore reiciendis.OK response.
The number of Critical-severity Issues in the App Image
1The number of High-severity Issues in the App Image
3The number of Informational Issues in the App Image
11The number of Low-severity Issues in the App Image
39The number of Medium-severity Issues in the App Image
17The number of Critical-severity Issues in the Base Image
1The number of High-severity Issues in the Base Image
3The approval status of the Base Image for the Scan
trueThe status of the Base Image for the Scan
trueThe number of Informational Issues in the Base Image
11The number of Low-severity Issues in the Base Image
39The number of Medium-severity Issues in the Base Image
17The Code Coverage value for the Scan
65.5The number of Critical-severity Issues
1The number of EXTERNAL_POLICY Issues
0The number of High-severity Issues
3The number of Issues ignored due to Exemptions, and therefore not included in other counts
1The number of ignored Critical-severity Issues
1The number of ignored High-severity Issues
3The number of ignored Informational Issues
11The number of ignored Low-severity Issues
39The number of ignored Medium-severity Issues
17The number of Issues with no associated severity code
0The number of Informational Issues
11The number of Low-severity Issues
39The number of Medium-severity Issues
17The number of new Critical-severity Issues in the App Image
1The number of new High-severity Issues in the App Image
3The number of new Informational Issues in the App Image
11The number of new Low-severity Issues in the App Image
39The number of new Medium-severity Issues in the App Image
17The number of new Critical-severity Issues in the Base Image
1The number of new High-severity Issues in the Base Image
3The number of new Informational Issues in the Base Image
11The number of new Low-severity Issues in the Base Image
39The number of new Medium-severity Issues in the Base Image
17The number of new Critical-severity Issues
1The number of new High-severity Issues
3The number of ignored Critical-severity Issues
1The number of ignored High-severity Issues
3The number of ignored Informational Issues
11The number of ignored Low-severity Issues
39The number of ignored Medium-severity Issues
17The number of ignored Critical-severity Occurrences
1The number of ignored High-severity Occurrences
3The number of ignored Informational Occurrences
11The number of ignored Low-severity Occurrences
39The number of ignored Medium-severity Occurrences
17The number of ignored Occurrences with no associated severity code
0The number of Issues with no associated severity code
0The number of new Informational Issues
11The number of new Low-severity Issues
39The number of new Medium-severity Issues
17The number of new Critical-severity Occurrences
1The number of new High-severity Occurrences
3The number of new Informational Occurrences
11The number of new Low-severity Occurrences
39The number of new Medium-severity Occurrences
17The number of new Occurrences with no associated severity code
0The total number new Issues
3The total number new Issues in the Base Image
3The number of new Issues with no associated severity code
0The scanner console URL for viewing scan results
https://app.shiftleft.io/apps/myapp/summary?scan=12345The total number of Issues
10The total number of Issues in the Base Image
10The number of Issues with no associated severity code
0BadRequest: 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/scans/{id}/issues/counts?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: */*
{
"appCritical": 1,
"appHigh": 3,
"appInfo": 11,
"appLow": 39,
"appMedium": 17,
"baseCritical": 1,
"baseHigh": 3,
"baseImageApproved": true,
"baseImageDetected": true,
"baseInfo": 11,
"baseLow": 39,
"baseMedium": 17,
"codeCoverage": 65.5,
"critical": 1,
"externalPolicyFailures": 0,
"high": 3,
"ignored": 1,
"ignoredCritical": 1,
"ignoredHigh": 3,
"ignoredInfo": 11,
"ignoredLow": 39,
"ignoredMedium": 17,
"ignoredUnassigned": 0,
"info": 11,
"low": 39,
"medium": 17,
"newAppCritical": 1,
"newAppHigh": 3,
"newAppInfo": 11,
"newAppLow": 39,
"newAppMedium": 17,
"newBaseCritical": 1,
"newBaseHigh": 3,
"newBaseInfo": 11,
"newBaseLow": 39,
"newBaseMedium": 17,
"newCritical": 1,
"newHigh": 3,
"newIgnoredCritical": 1,
"newIgnoredHigh": 3,
"newIgnoredInfo": 11,
"newIgnoredLow": 39,
"newIgnoredMedium": 17,
"newIgnoredOccurrencesCritical": 1,
"newIgnoredOccurrencesHigh": 3,
"newIgnoredOccurrencesInfo": 11,
"newIgnoredOccurrencesLow": 39,
"newIgnoredOccurrencesMedium": 17,
"newIgnoredOccurrencesUnassigned": 0,
"newIgnoredUnassigned": 0,
"newInfo": 11,
"newLow": 39,
"newMedium": 17,
"newOccurrencesCritical": 1,
"newOccurrencesHigh": 3,
"newOccurrencesInfo": 11,
"newOccurrencesLow": 39,
"newOccurrencesMedium": 17,
"newOccurrencesUnassigned": 0,
"newTotal": 3,
"newTotalBase": 3,
"newUnassigned": 0,
"scannerConsoleUrl": "https://app.shiftleft.io/apps/myapp/summary?scan=12345",
"total": 10,
"totalBase": 10,
"unassigned": 0
}Get the most recent successful scan for each product/subproduct of a target variant. A single product can emit multiple subproducts (e.g. SnykCode vs snykContainer), each of which is a distinct scan stream, so the result is an array with the latest succeeded scan per (product, subproduct). The optional productId and subproduct query params narrow the result to a single product and/or subproduct. Used by scanners needing previous scan context and by UIs to show latest scan status.
Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$The Target Variant ID
abcdefghijkl1234567890Pattern: ^[a-zA-Z0-9_-]{22}$Optional Product ID (scanner) filter. When omitted, the latest scan for every product of the target variant is returned.
abcdefghijkl1234567890Pattern: ^[a-zA-Z0-9_-]{22}$Optional subproduct filter to disambiguate scans within a product (e.g. SnykCode vs snykContainer). When omitted, the latest scan for every subproduct is returned.
SnykCodeOptional scanner diff key filter to disambiguate scan comparison streams within a product/subproduct (e.g. pr_scan vs deep). When omitted, all scanner diff keys are considered.
pr_scanHarness personal or service access token
Quia hic dolorum consectetur consectetur dolor.OK response.
The latest succeeded scan for each product/subproduct of a target variant
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
GET /gateway/sto/api/v2/scans/latest?accountId=abcdef1234567890ghijkl&targetVariantId=abcdefghijkl1234567890 HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"scans": [
{
"codeCoverage": 65.5,
"created": 1651578240,
"executionId": "abcdef1234567890ghijkl",
"gitMetadata": {
"commit": "0000000000000000000000000000000000000001",
"detectedName": "Necessitatibus dolore dicta assumenda.",
"detectedVariant": "Temporibus quis architecto voluptate quae dolores.",
"droneCorrelated": false,
"provider": "Perspiciatis minima et.",
"pullRequestNumber": 11,
"repositoryHttp": "https://github.com/harness/drone-cli.git",
"repositoryPath": [
"Est molestiae sunt ea sed id.",
"Eaque cum alias.",
"Minima et iure quis.",
"Fuga veniam ex nihil maiores."
],
"repositorySsh": "git@github.com:harness/drone-cli.git",
"sourceBranch": "feat/shiny-object",
"targetBranch": "develop",
"workspace": "/harness"
},
"id": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"metadata": {
"baseImageDigest": "sha256:abcdef1234567890ghijkl",
"baseImageName": "my-image",
"baseImageTag": "1.0.0"
},
"orgId": "your_harness_org",
"pipelineId": "your_harness_pipeline",
"productId": "product111111111111111",
"productName": "snyk",
"productPrettyName": "Snyk",
"projectId": "your_harness_project",
"refinementVersion": "1.0.5",
"scannerDiffKey": "sast",
"stageId": "stage_id",
"status": "Succeeded",
"stepId": "step_id",
"subproduct": "owasp",
"targetVariantId": "variant111111111111111"
},
{
"codeCoverage": 65.5,
"created": 1651578240,
"executionId": "abcdef1234567890ghijkl",
"gitMetadata": {
"commit": "0000000000000000000000000000000000000001",
"detectedName": "Necessitatibus dolore dicta assumenda.",
"detectedVariant": "Temporibus quis architecto voluptate quae dolores.",
"droneCorrelated": false,
"provider": "Perspiciatis minima et.",
"pullRequestNumber": 11,
"repositoryHttp": "https://github.com/harness/drone-cli.git",
"repositoryPath": [
"Est molestiae sunt ea sed id.",
"Eaque cum alias.",
"Minima et iure quis.",
"Fuga veniam ex nihil maiores."
],
"repositorySsh": "git@github.com:harness/drone-cli.git",
"sourceBranch": "feat/shiny-object",
"targetBranch": "develop",
"workspace": "/harness"
},
"id": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"metadata": {
"baseImageDigest": "sha256:abcdef1234567890ghijkl",
"baseImageName": "my-image",
"baseImageTag": "1.0.0"
},
"orgId": "your_harness_org",
"pipelineId": "your_harness_pipeline",
"productId": "product111111111111111",
"productName": "snyk",
"productPrettyName": "Snyk",
"projectId": "your_harness_project",
"refinementVersion": "1.0.5",
"scannerDiffKey": "sast",
"stageId": "stage_id",
"status": "Succeeded",
"stepId": "step_id",
"subproduct": "owasp",
"targetVariantId": "variant111111111111111"
}
]
}Last updated
Was this helpful?