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": "Laudantium nostrum totam harum ea commodi non.",
- "detectedVariant": "Reprehenderit cum harum quis.",
- "droneCorrelated": true,
- "provider": "Et quibusdam illum expedita quo.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Accusantium debitis id incidunt.",
- "Velit debitis.",
- "Maxime iusto repudiandae sit fuga.",
- "Atque quam blanditiis rerum."
], - "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": "Laudantium nostrum totam harum ea commodi non.",
- "detectedVariant": "Reprehenderit cum harum quis.",
- "droneCorrelated": true,
- "provider": "Et quibusdam illum expedita quo.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Accusantium debitis id incidunt.",
- "Velit debitis.",
- "Maxime iusto repudiandae sit fuga.",
- "Atque quam blanditiis rerum."
], - "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": "Laudantium nostrum totam harum ea commodi non.",
- "detectedVariant": "Reprehenderit cum harum quis.",
- "droneCorrelated": true,
- "provider": "Et quibusdam illum expedita quo.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Accusantium debitis id incidunt.",
- "Velit debitis.",
- "Maxime iusto repudiandae sit fuga.",
- "Atque quam blanditiis rerum."
], - "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": "Laudantium nostrum totam harum ea commodi non.",
- "detectedVariant": "Reprehenderit cum harum quis.",
- "droneCorrelated": true,
- "provider": "Et quibusdam illum expedita quo.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Accusantium debitis id incidunt.",
- "Velit debitis.",
- "Maxime iusto repudiandae sit fuga.",
- "Atque quam blanditiis rerum."
], - "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": "Magni ad ipsum laboriosam quae autem maiores.",
- "detectedVariant": "Consequatur inventore.",
- "droneCorrelated": true,
- "provider": "Sint non eveniet molestiae voluptas et voluptatem.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Dolores et laborum.",
- "Dignissimos ut alias ut quo ut ratione."
], - "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": "Laudantium nostrum totam harum ea commodi non.",
- "detectedVariant": "Reprehenderit cum harum quis.",
- "droneCorrelated": true,
- "provider": "Et quibusdam illum expedita quo.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Accusantium debitis id incidunt.",
- "Velit debitis.",
- "Maxime iusto repudiandae sit fuga.",
- "Atque quam blanditiis rerum."
], - "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": "Magni ad ipsum laboriosam quae autem maiores.",
- "detectedVariant": "Consequatur inventore.",
- "droneCorrelated": true,
- "provider": "Sint non eveniet molestiae voluptas et voluptatem.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Dolores et laborum.",
- "Dignissimos ut alias ut quo ut ratione."
], - "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": "Laudantium nostrum totam harum ea commodi non.",
- "detectedVariant": "Reprehenderit cum harum quis.",
- "droneCorrelated": true,
- "provider": "Et quibusdam illum expedita quo.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Accusantium debitis id incidunt.",
- "Velit debitis.",
- "Maxime iusto repudiandae sit fuga.",
- "Atque quam blanditiis rerum."
], - "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": "Laudantium nostrum totam harum ea commodi non.",
- "detectedVariant": "Reprehenderit cum harum quis.",
- "droneCorrelated": true,
- "provider": "Et quibusdam illum expedita quo.",
- "pullRequestNumber": 11,
- "repositoryPath": [
- "Accusantium debitis id incidunt.",
- "Velit debitis.",
- "Maxime iusto repudiandae sit fuga.",
- "Atque quam blanditiis rerum."
], - "repositorySsh": "git@github.com:harness/drone-cli.git",
- "sourceBranch": "feat/shiny-object",
- "targetBranch": "develop",
- "workspace": "/harness"
}, - "harnessAugmentation": {
- "Et sapiente dolore.": "Aperiam id.",
- "Sit cupiditate delectus.": "Quo autem doloremque."
}, - "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,
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "harnessAugmentation": {
- "Aut repudiandae natus maxime magnam eos cupiditate.": "Enim quo amet."
}, - "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,
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "harnessAugmentation": {
- "Aut repudiandae natus maxime magnam eos cupiditate.": "Enim quo amet."
}, - "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,
- "details": {
- "package": "json-schema",
- "version": "v0.2.3"
}, - "exemptionId": "abcdef1234567890ghijkl",
- "harnessAugmentation": {
- "Aut repudiandae natus maxime magnam eos cupiditate.": "Enim quo amet."
}, - "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,
- "newIgnoredUnassigned": 0,
- "newInfo": 11,
- "newLow": 39,
- "newMedium": 17,
- "newUnassigned": 0,
- "unassigned": 0
}