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": [
- {
- "created": 1651578240,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Et laborum quis dignissimos ut.",
- "detectedVariant": "Quo mollitia.",
- "droneCorrelated": true,
- "provider": "Reprehenderit cum harum quis.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Totam harum.",
- "Commodi non consectetur et quam nulla error.",
- "Veritatis est.",
- "Sint non eveniet molestiae voluptas et voluptatem."
], - "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"
}, - {
- "created": 1651578240,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Et laborum quis dignissimos ut.",
- "detectedVariant": "Quo mollitia.",
- "droneCorrelated": true,
- "provider": "Reprehenderit cum harum quis.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Totam harum.",
- "Commodi non consectetur et quam nulla error.",
- "Veritatis est.",
- "Sint non eveniet molestiae voluptas et voluptatem."
], - "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"
}, - {
- "created": 1651578240,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Et laborum quis dignissimos ut.",
- "detectedVariant": "Quo mollitia.",
- "droneCorrelated": true,
- "provider": "Reprehenderit cum harum quis.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Totam harum.",
- "Commodi non consectetur et quam nulla error.",
- "Veritatis est.",
- "Sint non eveniet molestiae voluptas et voluptatem."
], - "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.
{- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Maiores quisquam ipsa quos aut.",
- "detectedVariant": "Porro numquam quam sed.",
- "droneCorrelated": false,
- "provider": "Magni ad ipsum laboriosam quae autem maiores.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Sit qui.",
- "Minima rerum ab impedit quia cum ut.",
- "Aut et recusandae soluta.",
- "Rem voluptatem reprehenderit vero nemo."
], - "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.
{- "created": 1651578240,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Et laborum quis dignissimos ut.",
- "detectedVariant": "Quo mollitia.",
- "droneCorrelated": true,
- "provider": "Reprehenderit cum harum quis.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Totam harum.",
- "Commodi non consectetur et quam nulla error.",
- "Veritatis est.",
- "Sint non eveniet molestiae voluptas et voluptatem."
], - "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",
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Maiores quisquam ipsa quos aut.",
- "detectedVariant": "Porro numquam quam sed.",
- "droneCorrelated": false,
- "provider": "Magni ad ipsum laboriosam quae autem maiores.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Sit qui.",
- "Minima rerum ab impedit quia cum ut.",
- "Aut et recusandae soluta.",
- "Rem voluptatem reprehenderit vero nemo."
], - "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"
}
{- "created": 1651578240,
- "executionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Et laborum quis dignissimos ut.",
- "detectedVariant": "Quo mollitia.",
- "droneCorrelated": true,
- "provider": "Reprehenderit cum harum quis.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Totam harum.",
- "Commodi non consectetur et quam nulla error.",
- "Veritatis est.",
- "Sint non eveniet molestiae voluptas et voluptatem."
], - "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,
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "gitMetadata": {
- "detectedName": "Et laborum quis dignissimos ut.",
- "detectedVariant": "Quo mollitia.",
- "droneCorrelated": true,
- "provider": "Reprehenderit cum harum quis.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Totam harum.",
- "Commodi non consectetur et quam nulla error.",
- "Veritatis est.",
- "Sint non eveniet molestiae voluptas et voluptatem."
], - "repositorySsh": "git@github.com:harness/drone-cli.git",
- "sourceBranch": "feat/shiny-object",
- "targetBranch": "develop",
- "workspace": "/harness"
}, - "harnessAugmentation": {
- "Expedita qui aut.": "Suscipit a minima.",
- "Vero nihil dolores perferendis nesciunt est.": "Voluptatem quos aspernatur."
}, - "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"
}
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,
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "harnessAugmentation": {
- "Amet nihil aut minus et.": "Sint qui.",
- "Cum maxime exercitationem est labore aut.": "Natus maxime magnam eos cupiditate quod enim.",
- "Eius sit enim est.": "Aut natus."
}, - "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"
}, - {
- "baselineVariantId": "abcdef1234567890ghijkl",
- "created": 1651578240,
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "harnessAugmentation": {
- "Amet nihil aut minus et.": "Sint qui.",
- "Cum maxime exercitationem est labore aut.": "Natus maxime magnam eos cupiditate quod enim.",
- "Eius sit enim est.": "Aut natus."
}, - "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"
}, - {
- "baselineVariantId": "abcdef1234567890ghijkl",
- "created": 1651578240,
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "harnessAugmentation": {
- "Amet nihil aut minus et.": "Sint qui.",
- "Cum maxime exercitationem est labore aut.": "Natus maxime magnam eos cupiditate quod enim.",
- "Eius sit enim est.": "Aut natus."
}, - "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"
}
]
}
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.
{- "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,
- "newIgnoredUnassigned": 0,
- "newInfo": 11,
- "newLow": 39,
- "newMedium": 17,
- "newUnassigned": 0,
- "unassigned": 0
}