@harnessio/react-sto-core-client 0.3.21 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sto-core/src/services/hooks/useExemptionsApproveExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsCreateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsFindExemptionByIdQuery.d.ts +1 -2
- package/dist/sto-core/src/services/hooks/useExemptionsListExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendExpiringExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendGlobalExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesCsvQuery.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/useIssuesFindIssueByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useIssuesIssuesAugmentRemediationMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useProductsListProductsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/usePullRequestsCreatePullRequestMutation.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/useScansScanIssueOccurrencesQuery.d.ts +5 -5
- package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +4 -4
- package/dist/sto-core/src/services/hooks/useTargetsFindTargetByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.d.ts +1 -1
- package/dist/sto-core/src/services/index.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AugmentRemediationResult.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/AugmentRemediationWarning.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/BaselineExecutions.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Exemption.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExemptionImpactedTargetsResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ExportPipelineSecurityIssuesCsvResponseBody.d.ts +31 -0
- package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +5 -6
- package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/Issue.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +20 -4
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +8 -8
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ProductsListProductsResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PullRequestResult.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/RefIds.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/SecurityReviewResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/TestTarget.d.ts +2 -2
- package/package.json +1 -1
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesCsvResponseBody.d.ts +0 -31
- /package/dist/sto-core/src/services/schemas/{PipelineSecurityIssuesCsvResponseBody.js → ExportPipelineSecurityIssuesCsvResponseBody.js} +0 -0
|
@@ -7,7 +7,7 @@ import type { Pagination } from '../schemas/Pagination';
|
|
|
7
7
|
export interface ExemptionImpactedTargetsResult {
|
|
8
8
|
/**
|
|
9
9
|
* Impacted target details
|
|
10
|
-
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}
|
|
10
|
+
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}]
|
|
11
11
|
*/
|
|
12
12
|
impactedTargets: FrontendExemptionTargets[];
|
|
13
13
|
pagination: Pagination;
|
|
@@ -6,7 +6,7 @@ import type { Exemption } from '../schemas/Exemption';
|
|
|
6
6
|
export interface ExemptionsListExemptionsResponseBody {
|
|
7
7
|
pagination: Pagination;
|
|
8
8
|
/**
|
|
9
|
-
* @example [{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Pending","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Expired","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Pending","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Expired","targetId":"abcdef1234567890ghijkl","type":"Other"}
|
|
9
|
+
* @example [{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Pending","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Expired","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Pending","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Expired","targetId":"abcdef1234567890ghijkl","type":"Other"}]
|
|
10
10
|
*/
|
|
11
11
|
results: Exemption[];
|
|
12
12
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"data":[["Aut quis doloribus facere.","Nihil similique magni sit velit.","Ducimus adipisci ea."],["Sint magni recusandae nihil nisi magni quidem.","Corporis sit."],["Occaecati molestiae qui.","Ullam enim eos maxime nostrum quia repellat."],["Consectetur eius commodi.","Eos et rerum.","Voluptatem assumenda molestiae soluta non et eos."]],"executionId":"Vero assumenda et exercitationem.","filename":"Est voluptatem possimus.","headers":["Culpa et et error provident ut.","Minus non rerum quos eveniet.","Repellendus esse saepe.","Blanditiis et adipisci ut et vel."],"totalRows":3614513291919553500}
|
|
3
|
+
*/
|
|
4
|
+
export interface ExportPipelineSecurityIssuesCsvResponseBody {
|
|
5
|
+
/**
|
|
6
|
+
* CSV data rows
|
|
7
|
+
* @example [["Alias est.","Repudiandae ut voluptatibus laborum distinctio molestiae voluptas.","Voluptates nulla voluptatibus corporis.","Cumque voluptas aut quis eos harum."],["Exercitationem provident necessitatibus excepturi.","Quidem quia consectetur quis omnis quaerat.","Eos rerum eos."]]
|
|
8
|
+
*/
|
|
9
|
+
data: Array<string[]>;
|
|
10
|
+
/**
|
|
11
|
+
* Execution ID for this export
|
|
12
|
+
* @example "Dolor minima fugit et."
|
|
13
|
+
*/
|
|
14
|
+
executionId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Suggested filename for download
|
|
17
|
+
* @example "Accusamus fuga commodi."
|
|
18
|
+
*/
|
|
19
|
+
filename: string;
|
|
20
|
+
/**
|
|
21
|
+
* CSV column headers
|
|
22
|
+
* @example ["Nihil magni ut ipsa.","Ad possimus deserunt et ut.","Ab omnis sed aspernatur."]
|
|
23
|
+
*/
|
|
24
|
+
headers: string[];
|
|
25
|
+
/**
|
|
26
|
+
* Total number of data rows
|
|
27
|
+
* @format int64
|
|
28
|
+
* @example 3825544097826905000
|
|
29
|
+
*/
|
|
30
|
+
totalRows: number;
|
|
31
|
+
}
|
|
@@ -2,7 +2,7 @@ import type { IssueSummary } from '../schemas/IssueSummary';
|
|
|
2
2
|
import type { PendingChanges } from '../schemas/PendingChanges';
|
|
3
3
|
/**
|
|
4
4
|
* Exemption summary for frontend use
|
|
5
|
-
* @example {"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"
|
|
5
|
+
* @example {"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},"lastModified":1651578240,"link":"Upstream bug","numOccurrences":10,"orgId":"STO","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"}
|
|
6
6
|
*/
|
|
7
7
|
export interface FrontendExemption {
|
|
8
8
|
/**
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Git Metadata associated with the Scan
|
|
3
|
-
* @example {"detectedName":"
|
|
3
|
+
* @example {"detectedName":"Quis ut est voluptatem iure.","detectedVariant":"Vel aut ex dolorum impedit labore nostrum.","droneCorrelated":true,"provider":"Optio optio maxime consequuntur.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Dolorum animi in voluptates.","Odio libero."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"}
|
|
4
4
|
*/
|
|
5
5
|
export interface GitMetadata {
|
|
6
6
|
/**
|
|
7
7
|
* Detected Name
|
|
8
|
-
* @example "
|
|
8
|
+
* @example "Deleniti tempore quam autem ut consequatur aut."
|
|
9
9
|
*/
|
|
10
10
|
detectedName?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Detected Variant
|
|
13
|
-
* @example "
|
|
13
|
+
* @example "Magnam aspernatur necessitatibus eaque possimus omnis."
|
|
14
14
|
*/
|
|
15
15
|
detectedVariant?: string;
|
|
16
16
|
/**
|
|
17
17
|
* Drone Correlated
|
|
18
|
-
* @example true
|
|
19
18
|
*/
|
|
20
19
|
droneCorrelated?: boolean;
|
|
21
20
|
/**
|
|
22
21
|
* Git Provider
|
|
23
|
-
* @example "
|
|
22
|
+
* @example "Nostrum beatae labore."
|
|
24
23
|
*/
|
|
25
24
|
provider?: string;
|
|
26
25
|
/**
|
|
@@ -36,7 +35,7 @@ export interface GitMetadata {
|
|
|
36
35
|
repositoryHttp?: string;
|
|
37
36
|
/**
|
|
38
37
|
* Git Repository Path
|
|
39
|
-
* @example ["
|
|
38
|
+
* @example ["Consequatur eius.","Natus tempore sit eos.","Velit fugit blanditiis.","Repellat sint voluptas consectetur nisi illum."]
|
|
40
39
|
*/
|
|
41
40
|
repositoryPath?: string[];
|
|
42
41
|
/**
|
|
@@ -5,7 +5,7 @@ import type { HistoricalIssueCounts } from '../schemas/HistoricalIssueCounts';
|
|
|
5
5
|
export interface HistoricalCounts {
|
|
6
6
|
/**
|
|
7
7
|
* Counts of active issues on baselines for each of the past several days
|
|
8
|
-
* @example [{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}}]
|
|
8
|
+
* @example [{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}},{"active":true,"counts":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"date":1651578240,"detections":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediations":{"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17}}]
|
|
9
9
|
*/
|
|
10
10
|
counts: HistoricalIssueCounts[];
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"
|
|
2
|
+
* @example {"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"At et error.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userId":"Eos perferendis vitae provident qui voluptas.","variantName":"Laboriosam enim saepe enim sint labore."}
|
|
3
3
|
*/
|
|
4
4
|
export interface ImpactedTarget {
|
|
5
5
|
/**
|
|
@@ -14,7 +14,7 @@ export interface ImpactedTarget {
|
|
|
14
14
|
exemptionId?: string;
|
|
15
15
|
/**
|
|
16
16
|
* Exemption Status
|
|
17
|
-
* @example "
|
|
17
|
+
* @example "Aut aut."
|
|
18
18
|
*/
|
|
19
19
|
exemptionStatus?: string;
|
|
20
20
|
/**
|
|
@@ -46,12 +46,12 @@ export interface ImpactedTarget {
|
|
|
46
46
|
pipelineId: string;
|
|
47
47
|
/**
|
|
48
48
|
* The user id associated with the last scan run
|
|
49
|
-
* @example "
|
|
49
|
+
* @example "Culpa iste dicta."
|
|
50
50
|
*/
|
|
51
51
|
userId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* Variant name
|
|
54
|
-
* @example "
|
|
54
|
+
* @example "Magni in."
|
|
55
55
|
*/
|
|
56
56
|
variantName: string;
|
|
57
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Information about a Security Issue
|
|
3
|
-
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Rejected","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"
|
|
3
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Rejected","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","harnessAugmentation":{"Doloribus deleniti quia modi excepturi animi.":"Beatae facere maiores maiores.","Totam aut sit omnis.":"Distinctio aut blanditiis debitis."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"originStatus":"approved","origins":["app","base"],"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"}
|
|
4
4
|
*/
|
|
5
5
|
export interface Issue {
|
|
6
6
|
/**
|
|
@@ -48,7 +48,7 @@ export interface Issue {
|
|
|
48
48
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
49
49
|
/**
|
|
50
50
|
* Harness Augmentation details
|
|
51
|
-
* @example {"
|
|
51
|
+
* @example {"Nostrum magnam magni.":"Quibusdam deleniti dolore ut.","Quod odit laudantium ab reiciendis natus enim.":"Et expedita vitae adipisci qui maiores est.","Sit similique dolores aliquam in est possimus.":"Similique eos quidem tenetur."}
|
|
52
52
|
*/
|
|
53
53
|
harnessAugmentation?: {
|
|
54
54
|
[key: string]: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"
|
|
3
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Approved","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","harnessAugmentation":{"Dolore aspernatur.":"Voluptas natus et aut eos.","Id dolor laudantium laudantium laudantium quidem.":"Porro odio."},"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},"originStatus":"approved","origins":["app","base"],"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","targets":[{"targetId":"target2222222222222222","targetName":"Target 1"}],"title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}
|
|
4
4
|
*/
|
|
5
5
|
export interface IssueForExemptionResult {
|
|
6
6
|
/**
|
|
@@ -21,7 +21,7 @@ export interface IssueForExemptionResult {
|
|
|
21
21
|
created: number;
|
|
22
22
|
/**
|
|
23
23
|
* Current status of the Exemption
|
|
24
|
-
* @example "
|
|
24
|
+
* @example "Pending"
|
|
25
25
|
*/
|
|
26
26
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
27
27
|
/**
|
|
@@ -43,12 +43,12 @@ export interface IssueForExemptionResult {
|
|
|
43
43
|
exemptionId?: string;
|
|
44
44
|
/**
|
|
45
45
|
* Exemption's status at the Security Scan created time
|
|
46
|
-
* @example "
|
|
46
|
+
* @example "Expired"
|
|
47
47
|
*/
|
|
48
48
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
49
49
|
/**
|
|
50
50
|
* Harness Augmentation details
|
|
51
|
-
* @example {"
|
|
51
|
+
* @example {"Explicabo est iste illo perferendis vel laboriosam.":"Quia dicta a.","Ut occaecati soluta voluptas velit.":"Necessitatibus laboriosam."}
|
|
52
52
|
*/
|
|
53
53
|
harnessAugmentation?: {
|
|
54
54
|
[key: string]: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GitMetadata } from '../schemas/GitMetadata';
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"
|
|
4
|
+
* @example {"baseImageName":"baseImageName","baseImageOrgId":"default","baseImageProjectId":"STO","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Approved","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","gitMetadata":{"detectedName":"Officia qui.","detectedVariant":"Eaque aut sint aperiam.","droneCorrelated":false,"provider":"Assumenda possimus rerum nihil modi.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Veniam sit et corrupti ratione enim.","Laboriosam quos omnis."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"},"harnessAugmentation":{"Id et iste accusantium occaecati laboriosam quibusdam.":"Sed qui.","Qui nostrum nam.":"Eligendi eos qui commodi."},"id":"abcdef1234567890ghijkl","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"],"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"}
|
|
5
5
|
*/
|
|
6
6
|
export interface IssueInScan {
|
|
7
7
|
/**
|
|
@@ -9,6 +9,16 @@ export interface IssueInScan {
|
|
|
9
9
|
* @example "baseImageName"
|
|
10
10
|
*/
|
|
11
11
|
baseImageName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* org id of the issue from where the base image is being referred
|
|
14
|
+
* @example "default"
|
|
15
|
+
*/
|
|
16
|
+
baseImageOrgId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* project id of the issue from where the base image is being referred
|
|
19
|
+
* @example "STO"
|
|
20
|
+
*/
|
|
21
|
+
baseImageProjectId?: string;
|
|
12
22
|
/**
|
|
13
23
|
* The Baseline Target Variant related to this Security Issue
|
|
14
24
|
* @example "abcdef1234567890ghijkl"
|
|
@@ -22,7 +32,7 @@ export interface IssueInScan {
|
|
|
22
32
|
created: number;
|
|
23
33
|
/**
|
|
24
34
|
* Current status of the Exemption
|
|
25
|
-
* @example "
|
|
35
|
+
* @example "Rejected"
|
|
26
36
|
*/
|
|
27
37
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
28
38
|
/**
|
|
@@ -44,13 +54,13 @@ export interface IssueInScan {
|
|
|
44
54
|
exemptionId?: string;
|
|
45
55
|
/**
|
|
46
56
|
* Exemption's status at the Security Scan created time
|
|
47
|
-
* @example "
|
|
57
|
+
* @example "Pending"
|
|
48
58
|
*/
|
|
49
59
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
50
60
|
gitMetadata?: GitMetadata;
|
|
51
61
|
/**
|
|
52
62
|
* Harness Augmentation details
|
|
53
|
-
* @example {"
|
|
63
|
+
* @example {"Iste magnam dignissimos reprehenderit accusamus ducimus quis.":"Magni natus vel est rerum temporibus."}
|
|
54
64
|
*/
|
|
55
65
|
harnessAugmentation?: {
|
|
56
66
|
[key: string]: any;
|
|
@@ -65,6 +75,12 @@ export interface IssueInScan {
|
|
|
65
75
|
* @example "json-schema@0.2.3"
|
|
66
76
|
*/
|
|
67
77
|
key: string;
|
|
78
|
+
/**
|
|
79
|
+
* last scan timestamp of the base image being referred
|
|
80
|
+
* @format int64
|
|
81
|
+
* @example 1651578240
|
|
82
|
+
*/
|
|
83
|
+
lastBaseImageScanAt?: number;
|
|
68
84
|
/**
|
|
69
85
|
* Indicates the number of Occurrences which dont have an active exemption on the Occurrence
|
|
70
86
|
* @format int32
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IssueSummary } from '../schemas/IssueSummary';
|
|
2
2
|
/**
|
|
3
3
|
* List of issue summaries
|
|
4
|
-
* @example {"issues":[{"currentStatus":"
|
|
4
|
+
* @example {"issues":[{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}]}
|
|
5
5
|
*/
|
|
6
6
|
export interface IssueSummaries {
|
|
7
7
|
/**
|
|
8
8
|
* Short summary of an Issue
|
|
9
|
-
* @example [{"currentStatus":"
|
|
9
|
+
* @example [{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}]
|
|
10
10
|
*/
|
|
11
11
|
issues: IssueSummary[];
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Short summary of an Issue
|
|
3
|
-
* @example {"currentStatus":"
|
|
3
|
+
* @example {"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":5698532038098762000,"numOccurrences":1888290671307538700,"numRemediatedOccurrences":4401864108046318600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}
|
|
4
4
|
*/
|
|
5
5
|
export interface IssueSummary {
|
|
6
6
|
/**
|
|
@@ -20,7 +20,7 @@ export interface IssueSummary {
|
|
|
20
20
|
exemptionId?: string;
|
|
21
21
|
/**
|
|
22
22
|
* Exemption's status at the Security Scan created time
|
|
23
|
-
* @example "
|
|
23
|
+
* @example "Expired"
|
|
24
24
|
*/
|
|
25
25
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
26
26
|
/**
|
|
@@ -35,17 +35,17 @@ export interface IssueSummary {
|
|
|
35
35
|
key: string;
|
|
36
36
|
/**
|
|
37
37
|
* @format int64
|
|
38
|
-
* @example
|
|
38
|
+
* @example 4184696303460308000
|
|
39
39
|
*/
|
|
40
40
|
numNewOccurrences?: number;
|
|
41
41
|
/**
|
|
42
42
|
* @format int64
|
|
43
|
-
* @example
|
|
43
|
+
* @example 8709646082376023000
|
|
44
44
|
*/
|
|
45
45
|
numOccurrences?: number;
|
|
46
46
|
/**
|
|
47
47
|
* @format int64
|
|
48
|
-
* @example
|
|
48
|
+
* @example 1167571751787371000
|
|
49
49
|
*/
|
|
50
50
|
numRemediatedOccurrences?: number;
|
|
51
51
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"connectorId":"
|
|
2
|
+
* @example {"connectorId":"Tempore quia sint quia.","occurrenceId":12345,"referenceId":"CWE-123","scanId":"abcdefghijkl1234567890","userSnippet":"func example() int {\n return 0\n}"}
|
|
3
3
|
*/
|
|
4
4
|
export interface IssuesAugmentRemediationRequestBody {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Dolor voluptas est modi facilis quaerat."
|
|
7
7
|
*/
|
|
8
8
|
connectorId?: string;
|
|
9
9
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IssueSummary } from '../schemas/IssueSummary';
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"issues":[{"currentStatus":"
|
|
4
|
+
* @example {"issues":[{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
5
5
|
*/
|
|
6
6
|
export interface PaginatedIssueSummaries {
|
|
7
7
|
/**
|
|
8
8
|
* Diff-ed Issues related to this scan step, resulting from a diff between a scan and its target's latest baseline scan (previous scan if no baseline)
|
|
9
|
-
* @example [{"currentStatus":"
|
|
9
|
+
* @example [{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}]
|
|
10
10
|
*/
|
|
11
11
|
issues: IssueSummary[];
|
|
12
12
|
pagination: Pagination;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { FrontendIssueCounts } from '../schemas/FrontendIssueCounts';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"activeIssueCount":
|
|
3
|
+
* @example {"activeIssueCount":2749163520049833000,"existing":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"new":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediated":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"totalActive":5969267483256804000,"totalExempted":1468138987127278300,"totalPartiallyExempted":7148362681217948000,"totalPending":3683170817248509400,"totalRejected":5813829712283789000,"totalRemediated":5354073740982412000}
|
|
4
4
|
*/
|
|
5
5
|
export interface PipelineSecurityCounts {
|
|
6
6
|
/**
|
|
7
7
|
* @format int64
|
|
8
|
-
* @example
|
|
8
|
+
* @example 8814918616811923000
|
|
9
9
|
*/
|
|
10
10
|
activeIssueCount?: number;
|
|
11
11
|
existing: FrontendIssueCounts;
|
|
@@ -13,32 +13,32 @@ export interface PipelineSecurityCounts {
|
|
|
13
13
|
remediated: FrontendIssueCounts;
|
|
14
14
|
/**
|
|
15
15
|
* @format int64
|
|
16
|
-
* @example
|
|
16
|
+
* @example 4174408716360811500
|
|
17
17
|
*/
|
|
18
18
|
totalActive: number;
|
|
19
19
|
/**
|
|
20
20
|
* @format int64
|
|
21
|
-
* @example
|
|
21
|
+
* @example 2690252751091109400
|
|
22
22
|
*/
|
|
23
23
|
totalExempted?: number;
|
|
24
24
|
/**
|
|
25
25
|
* @format int64
|
|
26
|
-
* @example
|
|
26
|
+
* @example 4717141874144822000
|
|
27
27
|
*/
|
|
28
28
|
totalPartiallyExempted?: number;
|
|
29
29
|
/**
|
|
30
30
|
* @format int64
|
|
31
|
-
* @example
|
|
31
|
+
* @example 8536907245556977000
|
|
32
32
|
*/
|
|
33
33
|
totalPending?: number;
|
|
34
34
|
/**
|
|
35
35
|
* @format int64
|
|
36
|
-
* @example
|
|
36
|
+
* @example 7466612573261470000
|
|
37
37
|
*/
|
|
38
38
|
totalRejected?: number;
|
|
39
39
|
/**
|
|
40
40
|
* @format int64
|
|
41
|
-
* @example
|
|
41
|
+
* @example 3055086777042075000
|
|
42
42
|
*/
|
|
43
43
|
totalRemediated?: number;
|
|
44
44
|
}
|
|
@@ -3,13 +3,13 @@ import type { PaginatedIssueSummaries } from '../schemas/PaginatedIssueSummaries
|
|
|
3
3
|
import type { StageStepId } from '../schemas/StageStepId';
|
|
4
4
|
/**
|
|
5
5
|
* Data needed by the PipelineSecurityView
|
|
6
|
-
* @example {"counts":{"activeIssueCount":
|
|
6
|
+
* @example {"counts":{"activeIssueCount":3593631542766208000,"existing":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"new":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediated":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"totalActive":5979640242978740000,"totalExempted":7848279619852903000,"totalPartiallyExempted":6907794749356894000,"totalPending":2496066930430671000,"totalRejected":8823214097880095000,"totalRemediated":8649405337302839000},"existing":{"issues":[{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}},"matchingSteps":[{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}],"new":{"issues":[{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":812048132075922800,"numOccurrences":8757500271532859000,"numRemediatedOccurrences":3189092715788122600,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}}
|
|
7
7
|
*/
|
|
8
8
|
export interface PipelineSecurityIssuesResult {
|
|
9
9
|
counts: PipelineSecurityCounts;
|
|
10
10
|
existing: PaginatedIssueSummaries;
|
|
11
11
|
/**
|
|
12
|
-
* @example [{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}
|
|
12
|
+
* @example [{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}]
|
|
13
13
|
*/
|
|
14
14
|
matchingSteps: StageStepId[];
|
|
15
15
|
new: PaginatedIssueSummaries;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StepInfo } from '../schemas/StepInfo';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"steps":[{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}
|
|
3
|
+
* @example {"steps":[{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","scanToolName":"OWASP","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface PipelineSecurityStepsResult {
|
|
6
6
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { Product } from '../schemas/Product';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"}]}
|
|
4
|
+
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"}]}
|
|
5
5
|
*/
|
|
6
6
|
export interface ProductsListProductsResponseBody {
|
|
7
7
|
pagination: Pagination;
|
|
8
8
|
/**
|
|
9
|
-
* @example [{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"}]
|
|
9
|
+
* @example [{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"},{"created":1651578240,"description":"OWASP 5.x SCA scanner","id":"abcdef1234567890ghijkl","isEnabled":true,"lastModified":1651578240,"name":"owasp","prettyName":"owasp"}]
|
|
10
10
|
*/
|
|
11
11
|
results: Product[];
|
|
12
12
|
}
|