List a collection of Security Test Scans
OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
{- "pagination": {
- "link": "",
- "page": 4,
- "pageSize": 20,
- "totalItems": 230,
- "totalPages": 12
}, - "results": [
- {
- "codeCoverage": 65.5,
- "created": 1651578240,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Ipsa corrupti dicta impedit quia unde.",
- "detectedVariant": "Voluptatem minus blanditiis consequatur laboriosam aut illum.",
- "droneCorrelated": true,
- "provider": "Accusantium optio illum dicta cum porro.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Ipsa aliquam nemo autem.",
- "Voluptate ipsum alias reprehenderit aut est.",
- "Magni dignissimos officiis ratione et.",
- "Et consequatur."
], - "repositorySsh": "git@github.com:harness/drone-cli.git",
- "sourceBranch": "feat/shiny-object",
- "targetBranch": "develop",
- "workspace": "/harness"
}, - "id": "abcdef1234567890ghijkl",
- "lastModified": 1651578240,
- "orgId": "your_harness_org",
- "pipelineId": "your_harness_pipeline",
- "productId": "product111111111111111",
- "projectId": "your_harness_project",
- "refinementVersion": "1.0.5",
- "stageId": "stage_id",
- "status": "Succeeded",
- "stepId": "step_id",
- "subproduct": "owasp",
- "targetVariantId": "variant111111111111111"
}, - {
- "codeCoverage": 65.5,
- "created": 1651578240,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Ipsa corrupti dicta impedit quia unde.",
- "detectedVariant": "Voluptatem minus blanditiis consequatur laboriosam aut illum.",
- "droneCorrelated": true,
- "provider": "Accusantium optio illum dicta cum porro.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Ipsa aliquam nemo autem.",
- "Voluptate ipsum alias reprehenderit aut est.",
- "Magni dignissimos officiis ratione et.",
- "Et consequatur."
], - "repositorySsh": "git@github.com:harness/drone-cli.git",
- "sourceBranch": "feat/shiny-object",
- "targetBranch": "develop",
- "workspace": "/harness"
}, - "id": "abcdef1234567890ghijkl",
- "lastModified": 1651578240,
- "orgId": "your_harness_org",
- "pipelineId": "your_harness_pipeline",
- "productId": "product111111111111111",
- "projectId": "your_harness_project",
- "refinementVersion": "1.0.5",
- "stageId": "stage_id",
- "status": "Succeeded",
- "stepId": "step_id",
- "subproduct": "owasp",
- "targetVariantId": "variant111111111111111"
}, - {
- "codeCoverage": 65.5,
- "created": 1651578240,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Ipsa corrupti dicta impedit quia unde.",
- "detectedVariant": "Voluptatem minus blanditiis consequatur laboriosam aut illum.",
- "droneCorrelated": true,
- "provider": "Accusantium optio illum dicta cum porro.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Ipsa aliquam nemo autem.",
- "Voluptate ipsum alias reprehenderit aut est.",
- "Magni dignissimos officiis ratione et.",
- "Et consequatur."
], - "repositorySsh": "git@github.com:harness/drone-cli.git",
- "sourceBranch": "feat/shiny-object",
- "targetBranch": "develop",
- "workspace": "/harness"
}, - "id": "abcdef1234567890ghijkl",
- "lastModified": 1651578240,
- "orgId": "your_harness_org",
- "pipelineId": "your_harness_pipeline",
- "productId": "product111111111111111",
- "projectId": "your_harness_project",
- "refinementVersion": "1.0.5",
- "stageId": "stage_id",
- "status": "Succeeded",
- "stepId": "step_id",
- "subproduct": "owasp",
- "targetVariantId": "variant111111111111111"
}, - {
- "codeCoverage": 65.5,
- "created": 1651578240,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Ipsa corrupti dicta impedit quia unde.",
- "detectedVariant": "Voluptatem minus blanditiis consequatur laboriosam aut illum.",
- "droneCorrelated": true,
- "provider": "Accusantium optio illum dicta cum porro.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Ipsa aliquam nemo autem.",
- "Voluptate ipsum alias reprehenderit aut est.",
- "Magni dignissimos officiis ratione et.",
- "Et consequatur."
], - "repositorySsh": "git@github.com:harness/drone-cli.git",
- "sourceBranch": "feat/shiny-object",
- "targetBranch": "develop",
- "workspace": "/harness"
}, - "id": "abcdef1234567890ghijkl",
- "lastModified": 1651578240,
- "orgId": "your_harness_org",
- "pipelineId": "your_harness_pipeline",
- "productId": "product111111111111111",
- "projectId": "your_harness_project",
- "refinementVersion": "1.0.5",
- "stageId": "stage_id",
- "status": "Succeeded",
- "stepId": "step_id",
- "subproduct": "owasp",
- "targetVariantId": "variant111111111111111"
}
]
}
Create a new Security Test Scan
OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
{- "codeCoverage": 65.5,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Et earum.",
- "detectedVariant": "Sit fugiat quia.",
- "droneCorrelated": true,
- "provider": "Eveniet mollitia vel vero.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Et praesentium.",
- "Aspernatur voluptas vero et.",
- "Fugit est consequatur."
], - "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",
- "projectId": "your_harness_project",
- "refinementVersion": "1.0.5",
- "stageId": "stage_id",
- "status": "Succeeded",
- "stepId": "step_id",
- "subproduct": "owasp",
- "targetVariantId": "variant111111111111111"
}
{- "id": "abcdef1234567890ghijkl"
}
Find Security Test Scan by ID
OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
{- "codeCoverage": 65.5,
- "created": 1651578240,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Ipsa corrupti dicta impedit quia unde.",
- "detectedVariant": "Voluptatem minus blanditiis consequatur laboriosam aut illum.",
- "droneCorrelated": true,
- "provider": "Accusantium optio illum dicta cum porro.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Ipsa aliquam nemo autem.",
- "Voluptate ipsum alias reprehenderit aut est.",
- "Magni dignissimos officiis ratione et.",
- "Et consequatur."
], - "repositorySsh": "git@github.com:harness/drone-cli.git",
- "sourceBranch": "feat/shiny-object",
- "targetBranch": "develop",
- "workspace": "/harness"
}, - "id": "abcdef1234567890ghijkl",
- "lastModified": 1651578240,
- "orgId": "your_harness_org",
- "pipelineId": "your_harness_pipeline",
- "productId": "product111111111111111",
- "projectId": "your_harness_project",
- "refinementVersion": "1.0.5",
- "stageId": "stage_id",
- "status": "Succeeded",
- "stepId": "step_id",
- "subproduct": "owasp",
- "targetVariantId": "variant111111111111111"
}
Update an existing Security Test Scan
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.
{- "artifactFingerprint": "abcdef1234567890ghijkl",
- "codeCoverage": 65.5,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Et earum.",
- "detectedVariant": "Sit fugiat quia.",
- "droneCorrelated": true,
- "provider": "Eveniet mollitia vel vero.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Et praesentium.",
- "Aspernatur voluptas vero et.",
- "Fugit est consequatur."
], - "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",
- "projectId": "your_harness_project",
- "refinementVersion": "1.0.5",
- "stageId": "stage_id",
- "status": "Succeeded",
- "stepId": "step_id",
- "subproduct": "owasp",
- "targetVariantId": "variant111111111111111"
}
{- "codeCoverage": 65.5,
- "created": 1651578240,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Ipsa corrupti dicta impedit quia unde.",
- "detectedVariant": "Voluptatem minus blanditiis consequatur laboriosam aut illum.",
- "droneCorrelated": true,
- "provider": "Accusantium optio illum dicta cum porro.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Ipsa aliquam nemo autem.",
- "Voluptate ipsum alias reprehenderit aut est.",
- "Magni dignissimos officiis ratione et.",
- "Et consequatur."
], - "repositorySsh": "git@github.com:harness/drone-cli.git",
- "sourceBranch": "feat/shiny-object",
- "targetBranch": "develop",
- "workspace": "/harness"
}, - "id": "abcdef1234567890ghijkl",
- "lastModified": 1651578240,
- "orgId": "your_harness_org",
- "pipelineId": "your_harness_pipeline",
- "productId": "product111111111111111",
- "projectId": "your_harness_project",
- "refinementVersion": "1.0.5",
- "stageId": "stage_id",
- "status": "Succeeded",
- "stepId": "step_id",
- "subproduct": "owasp",
- "targetVariantId": "variant111111111111111"
}
Returns a scan specific issue
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.
{- "baselineVariantId": "abcdef1234567890ghijkl",
- "created": 1651578240,
- "currentStatus": "Rejected",
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "exemptionStatusAtScan": "Expired",
- "gitMetadata": {
- "detectedName": "Ipsa corrupti dicta impedit quia unde.",
- "detectedVariant": "Voluptatem minus blanditiis consequatur laboriosam aut illum.",
- "droneCorrelated": true,
- "provider": "Accusantium optio illum dicta cum porro.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Ipsa aliquam nemo autem.",
- "Voluptate ipsum alias reprehenderit aut est.",
- "Magni dignissimos officiis ratione et.",
- "Et consequatur."
], - "repositorySsh": "git@github.com:harness/drone-cli.git",
- "sourceBranch": "feat/shiny-object",
- "targetBranch": "develop",
- "workspace": "/harness"
}, - "harnessAugmentation": {
- "Molestias qui sint.": "Et qui et.",
- "Rem sit optio et beatae.": "Aliquam quo at accusantium et praesentium.",
- "Tenetur voluptatem quae corporis ut.": "Qui occaecati."
}, - "id": "abcdef1234567890ghijkl",
- "key": "json-schema@0.2.3",
- "numOccurrences": 10,
- "occurrenceId": 12345,
- "occurrences": [
- {
- "line": "42"
}, - {
- "line": "666"
}
], - "occurrencesPagination": {
- "link": "",
- "page": 4,
- "pageSize": 20,
- "totalItems": 230,
- "totalPages": 12
}, - "primaryOccurrenceId": 12345,
- "productId": "product1234567890abcde",
- "severity": 8.5,
- "severityCode": "High",
- "status": "Remediated",
- "subproduct": "product",
- "targetId": "abcdef1234567890ghijkl",
- "targetName": "abcdef1234567890ghijkl",
- "targetType": "repository",
- "targetVariantId": "abcdef1234567890ghijkl",
- "targetVariantName": "nodegoat:master",
- "title": "json-schema@0.2.3 is vulnerable to Prototype Pollution",
- "type": "SAST"
}
List Issues by Scan ID
OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
{- "issues": [
- {
- "baselineVariantId": "abcdef1234567890ghijkl",
- "created": 1651578240,
- "currentStatus": "Pending",
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "exemptionStatusAtScan": "Approved",
- "harnessAugmentation": {
- "Possimus suscipit omnis deleniti exercitationem.": "Voluptatum est qui rerum totam et.",
- "Repellendus voluptatem magni quos.": "Aut sint et aliquid impedit suscipit.",
- "Reprehenderit blanditiis.": "Tempora dolor doloremque quo sequi repellat ab."
}, - "id": "abcdef1234567890ghijkl",
- "key": "json-schema@0.2.3",
- "numOccurrences": 10,
- "occurrenceId": 12345,
- "occurrences": [
- {
- "line": "42"
}, - {
- "line": "666"
}
], - "productId": "product1234567890abcde",
- "severity": 8.5,
- "severityCode": "High",
- "status": "Remediated",
- "subproduct": "product",
- "targetId": "abcdef1234567890ghijkl",
- "targetName": "abcdef1234567890ghijkl",
- "targetType": "repository",
- "targetVariantId": "abcdef1234567890ghijkl",
- "targetVariantName": "nodegoat:master",
- "title": "json-schema@0.2.3 is vulnerable to Prototype Pollution",
- "type": "SAST"
}, - {
- "baselineVariantId": "abcdef1234567890ghijkl",
- "created": 1651578240,
- "currentStatus": "Pending",
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "exemptionStatusAtScan": "Approved",
- "harnessAugmentation": {
- "Possimus suscipit omnis deleniti exercitationem.": "Voluptatum est qui rerum totam et.",
- "Repellendus voluptatem magni quos.": "Aut sint et aliquid impedit suscipit.",
- "Reprehenderit blanditiis.": "Tempora dolor doloremque quo sequi repellat ab."
}, - "id": "abcdef1234567890ghijkl",
- "key": "json-schema@0.2.3",
- "numOccurrences": 10,
- "occurrenceId": 12345,
- "occurrences": [
- {
- "line": "42"
}, - {
- "line": "666"
}
], - "productId": "product1234567890abcde",
- "severity": 8.5,
- "severityCode": "High",
- "status": "Remediated",
- "subproduct": "product",
- "targetId": "abcdef1234567890ghijkl",
- "targetName": "abcdef1234567890ghijkl",
- "targetType": "repository",
- "targetVariantId": "abcdef1234567890ghijkl",
- "targetVariantName": "nodegoat:master",
- "title": "json-schema@0.2.3 is vulnerable to Prototype Pollution",
- "type": "SAST"
}, - {
- "baselineVariantId": "abcdef1234567890ghijkl",
- "created": 1651578240,
- "currentStatus": "Pending",
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "exemptionStatusAtScan": "Approved",
- "harnessAugmentation": {
- "Possimus suscipit omnis deleniti exercitationem.": "Voluptatum est qui rerum totam et.",
- "Repellendus voluptatem magni quos.": "Aut sint et aliquid impedit suscipit.",
- "Reprehenderit blanditiis.": "Tempora dolor doloremque quo sequi repellat ab."
}, - "id": "abcdef1234567890ghijkl",
- "key": "json-schema@0.2.3",
- "numOccurrences": 10,
- "occurrenceId": 12345,
- "occurrences": [
- {
- "line": "42"
}, - {
- "line": "666"
}
], - "productId": "product1234567890abcde",
- "severity": 8.5,
- "severityCode": "High",
- "status": "Remediated",
- "subproduct": "product",
- "targetId": "abcdef1234567890ghijkl",
- "targetName": "abcdef1234567890ghijkl",
- "targetType": "repository",
- "targetVariantId": "abcdef1234567890ghijkl",
- "targetVariantName": "nodegoat:master",
- "title": "json-schema@0.2.3 is vulnerable to Prototype Pollution",
- "type": "SAST"
}, - {
- "baselineVariantId": "abcdef1234567890ghijkl",
- "created": 1651578240,
- "currentStatus": "Pending",
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "exemptionStatusAtScan": "Approved",
- "harnessAugmentation": {
- "Possimus suscipit omnis deleniti exercitationem.": "Voluptatum est qui rerum totam et.",
- "Repellendus voluptatem magni quos.": "Aut sint et aliquid impedit suscipit.",
- "Reprehenderit blanditiis.": "Tempora dolor doloremque quo sequi repellat ab."
}, - "id": "abcdef1234567890ghijkl",
- "key": "json-schema@0.2.3",
- "numOccurrences": 10,
- "occurrenceId": 12345,
- "occurrences": [
- {
- "line": "42"
}, - {
- "line": "666"
}
], - "productId": "product1234567890abcde",
- "severity": 8.5,
- "severityCode": "High",
- "status": "Remediated",
- "subproduct": "product",
- "targetId": "abcdef1234567890ghijkl",
- "targetName": "abcdef1234567890ghijkl",
- "targetType": "repository",
- "targetVariantId": "abcdef1234567890ghijkl",
- "targetVariantName": "nodegoat:master",
- "title": "json-schema@0.2.3 is vulnerable to Prototype Pollution",
- "type": "SAST"
}
]
}
Returns counts of active Security Issues for a Security Test Scan
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.
{- "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,
- "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,
- "newUnassigned": 0,
- "total": 10,
- "unassigned": 0
}