@harnessio/react-sto-core-client 0.3.11 → 0.3.13
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 -1
- 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 +8 -1
- package/dist/sto-core/src/services/hooks/useFrontendOverviewHistoricalCountsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesCsvQuery.d.ts +113 -0
- package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesCsvQuery.js +14 -0
- package/dist/sto-core/src/services/hooks/useFrontendUpdateTestTargetVariantsMutation.d.ts +42 -0
- package/dist/sto-core/src/services/hooks/useFrontendUpdateTestTargetVariantsMutation.js +14 -0
- 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/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 +5 -5
- 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 +7 -0
- package/dist/sto-core/src/services/index.js +2 -0
- 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 +1 -1
- 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 +12 -2
- package/dist/sto-core/src/services/schemas/ExemptionImpactedTargetsResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +6 -5
- package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/Issue.d.ts +18 -3
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +18 -3
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +9 -4
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +6 -6
- 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 +7 -7
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.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/Status.d.ts +10 -0
- package/dist/sto-core/src/services/schemas/Status.js +4 -0
- package/dist/sto-core/src/services/schemas/TargetVariantStatusInfo.d.ts +15 -0
- package/dist/sto-core/src/services/schemas/TargetVariantStatusInfo.js +4 -0
- package/dist/sto-core/src/services/schemas/TestTarget.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/UpdateTestTargetVariantsRequestBody.d.ts +11 -0
- package/dist/sto-core/src/services/schemas/UpdateTestTargetVariantsRequestBody.js +1 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { AllIssueSummary } from '../schemas/AllIssueSummary';
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"issues":[{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"
|
|
4
|
+
* @example {"issues":[{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Et neque fugit aliquam.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"override":{"originalSeverity":"medium","reason":"snyk"},"severityCode":"High","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"},{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Et neque fugit aliquam.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"override":{"originalSeverity":"medium","reason":"snyk"},"severityCode":"High","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"},{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Et neque fugit aliquam.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"override":{"originalSeverity":"medium","reason":"snyk"},"severityCode":"High","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"},{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Et neque fugit aliquam.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"override":{"originalSeverity":"medium","reason":"snyk"},"severityCode":"High","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
5
5
|
*/
|
|
6
6
|
export interface AllIssuesListResult {
|
|
7
7
|
/**
|
|
8
8
|
* Issues related to the latest scans of a baseline in a specific project
|
|
9
|
-
* @example [{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"
|
|
9
|
+
* @example [{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Et neque fugit aliquam.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"override":{"originalSeverity":"medium","reason":"snyk"},"severityCode":"High","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"},{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Et neque fugit aliquam.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"override":{"originalSeverity":"medium","reason":"snyk"},"severityCode":"High","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"},{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Et neque fugit aliquam.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"override":{"originalSeverity":"medium","reason":"snyk"},"severityCode":"High","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"},{"exemptionExpiration":1651578240,"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"abcdef1234567890ghijkl","issueType":"Et neque fugit aliquam.","lastDetected":1634836529,"numOccurrences":12,"numTargetsImpacted":2,"override":{"originalSeverity":"medium","reason":"snyk"},"severityCode":"High","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"}]
|
|
10
10
|
*/
|
|
11
11
|
issues: AllIssueSummary[];
|
|
12
12
|
pagination: Pagination;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { RefIds } from '../schemas/RefIds';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"description":"
|
|
4
|
+
* @example {"description":"Nisi voluptatem amet dolores.","exemptionId":"abcdef1234567890ghijkl","issueType":"Quidem omnis ipsum repellendus et et.","occurrences":[{"Nam sunt qui animi laborum praesentium ullam.":"Expedita impedit aut consectetur qui voluptatem.","Quas ducimus.":"Voluptas suscipit magnam voluptatem.","Totam corrupti eligendi distinctio sequi porro asperiores.":"Aliquam voluptatem sapiente perspiciatis debitis aut delectus."},{"Ipsum qui est omnis ea.":"Voluptas facere autem tenetur et.","Quas iure.":"Ipsam accusantium eos velit.","Quia tempora nobis minima.":"Eum aut et qui eos rem."},{"Et et voluptatem ipsam accusamus qui quae.":"Reiciendis reiciendis voluptatem hic aut.","Quo delectus minima.":"Fugiat quos temporibus et."},{"Nemo ipsa et voluptate mollitia repellat quod.":"Occaecati cumque voluptas quam.","Vel ducimus ullam nobis.":"Qui nostrum."}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"referenceIdentifiers":[{"id":"Suscipit omnis deleniti exercitationem et voluptatum est.","type":"Dolor doloremque quo sequi repellat ab delectus."},{"id":"Suscipit omnis deleniti exercitationem et voluptatum est.","type":"Dolor doloremque quo sequi repellat ab delectus."}],"severityCode":"High","targetName":"The Target","targetType":"Soluta ab quis.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","variantName":"Minus porro accusamus recusandae."}
|
|
5
5
|
*/
|
|
6
6
|
export interface AllIssuesOccurrenceDetailsResult {
|
|
7
7
|
/**
|
|
8
8
|
* Issue description
|
|
9
|
-
* @example "
|
|
9
|
+
* @example "Et ratione sint qui est."
|
|
10
10
|
*/
|
|
11
11
|
description: string;
|
|
12
12
|
/**
|
|
@@ -16,12 +16,12 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
16
16
|
exemptionId?: string;
|
|
17
17
|
/**
|
|
18
18
|
* Issue Type
|
|
19
|
-
* @example "
|
|
19
|
+
* @example "Laboriosam dicta."
|
|
20
20
|
*/
|
|
21
21
|
issueType?: string;
|
|
22
22
|
/**
|
|
23
23
|
* List of occurrences
|
|
24
|
-
* @example [{"
|
|
24
|
+
* @example [{"Commodi voluptatibus consequatur vel corporis.":"Earum sed in neque nihil ut incidunt.","Magnam ratione vero a.":"Quam iure corrupti non cupiditate."},{"Quia enim.":"Et sit aut nemo fugiat.","Repellendus neque nostrum autem dolor non aut.":"Unde ad.","Sit quae necessitatibus nobis pariatur eos voluptatibus.":"Similique dolor placeat nulla magnam."},{"Asperiores velit ut.":"Aut animi provident similique dignissimos mollitia deleniti.","Consectetur veniam rem ullam explicabo rerum.":"Reiciendis labore quis et laborum nulla."}]
|
|
25
25
|
*/
|
|
26
26
|
occurrences: Array<{
|
|
27
27
|
[key: string]: any;
|
|
@@ -29,7 +29,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
29
29
|
pagination?: Pagination;
|
|
30
30
|
/**
|
|
31
31
|
* Reference Identifiers
|
|
32
|
-
* @example [{"id":"
|
|
32
|
+
* @example [{"id":"Suscipit omnis deleniti exercitationem et voluptatum est.","type":"Dolor doloremque quo sequi repellat ab delectus."},{"id":"Suscipit omnis deleniti exercitationem et voluptatum est.","type":"Dolor doloremque quo sequi repellat ab delectus."}]
|
|
33
33
|
*/
|
|
34
34
|
referenceIdentifiers?: RefIds[];
|
|
35
35
|
/**
|
|
@@ -44,7 +44,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
44
44
|
targetName: string;
|
|
45
45
|
/**
|
|
46
46
|
* Target Type
|
|
47
|
-
* @example "
|
|
47
|
+
* @example "Laboriosam voluptatibus quis et."
|
|
48
48
|
*/
|
|
49
49
|
targetType: string;
|
|
50
50
|
/**
|
|
@@ -54,7 +54,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
54
54
|
title: string;
|
|
55
55
|
/**
|
|
56
56
|
* Variant name
|
|
57
|
-
* @example "
|
|
57
|
+
* @example "A est aut eos et."
|
|
58
58
|
*/
|
|
59
59
|
variantName: string;
|
|
60
60
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AugmentRemediationWarning } from '../schemas/AugmentRemediationWarning';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"warnings":[{"message":"
|
|
3
|
+
* @example {"warnings":[{"message":"Unde deserunt dicta quos eligendi est.","source":"Odit cumque dolores ullam maiores quas."},{"message":"Unde deserunt dicta quos eligendi est.","source":"Odit cumque dolores ullam maiores quas."},{"message":"Unde deserunt dicta quos eligendi est.","source":"Odit cumque dolores ullam maiores quas."},{"message":"Unde deserunt dicta quos eligendi est.","source":"Odit cumque dolores ullam maiores quas."}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationMetadata {
|
|
6
6
|
/**
|
|
7
|
-
* @example [{"message":"
|
|
7
|
+
* @example [{"message":"Unde deserunt dicta quos eligendi est.","source":"Odit cumque dolores ullam maiores quas."},{"message":"Unde deserunt dicta quos eligendi est.","source":"Odit cumque dolores ullam maiores quas."}]
|
|
8
8
|
*/
|
|
9
9
|
warnings: AugmentRemediationWarning[];
|
|
10
10
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { AugmentRemediationMetadata } from '../schemas/AugmentRemediationMetadata';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"metadata":{"warnings":[{"message":"
|
|
3
|
+
* @example {"metadata":{"warnings":[{"message":"Unde deserunt dicta quos eligendi est.","source":"Odit cumque dolores ullam maiores quas."},{"message":"Unde deserunt dicta quos eligendi est.","source":"Odit cumque dolores ullam maiores quas."},{"message":"Unde deserunt dicta quos eligendi est.","source":"Odit cumque dolores ullam maiores quas."}]},"remediationCode":"Harum minus quidem.","remediationContext":"Corporis neque cumque voluptas aut quis.","repoContent":"Provident necessitatibus excepturi."}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationResult {
|
|
6
6
|
metadata: AugmentRemediationMetadata;
|
|
7
7
|
/**
|
|
8
|
-
* @example "
|
|
8
|
+
* @example "Nobis sit laboriosam quas vero officiis atque."
|
|
9
9
|
*/
|
|
10
10
|
remediationCode?: string;
|
|
11
11
|
/**
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Rerum ea."
|
|
13
13
|
*/
|
|
14
14
|
remediationContext: string;
|
|
15
15
|
/**
|
|
16
|
-
* @example "
|
|
16
|
+
* @example "Est et."
|
|
17
17
|
*/
|
|
18
18
|
repoContent?: string;
|
|
19
19
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"message":"
|
|
2
|
+
* @example {"message":"Ut voluptatibus laborum distinctio molestiae voluptas ut.","source":"Est sequi."}
|
|
3
3
|
*/
|
|
4
4
|
export interface AugmentRemediationWarning {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Reprehenderit deserunt."
|
|
7
7
|
*/
|
|
8
8
|
message: string;
|
|
9
9
|
/**
|
|
10
|
-
* @example "
|
|
10
|
+
* @example "Consequatur recusandae beatae quas inventore."
|
|
11
11
|
*/
|
|
12
12
|
source: string;
|
|
13
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"executionIds":["
|
|
2
|
+
* @example {"executionIds":["Reiciendis quas.","Id provident voluptas expedita et quis aliquid.","Ducimus magni aut quia accusantium ullam sunt."]}
|
|
3
3
|
*/
|
|
4
4
|
export interface BaselineExecutions {
|
|
5
5
|
/**
|
|
6
6
|
* Harness Execution IDs of the most recent baseline scans
|
|
7
|
-
* @example ["
|
|
7
|
+
* @example ["Ex quibusdam quia adipisci.","Et voluptate.","Corrupti nihil ipsa veritatis quidem ratione tempore."]
|
|
8
8
|
*/
|
|
9
9
|
executionIds: string[];
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PendingChanges } from '../schemas/PendingChanges';
|
|
2
2
|
/**
|
|
3
3
|
* Information about an Exemption
|
|
4
|
-
* @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":"Approved","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"
|
|
4
|
+
* @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":"Approved","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":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"}
|
|
5
5
|
*/
|
|
6
6
|
export interface Exemption {
|
|
7
7
|
/**
|
|
@@ -99,6 +99,11 @@ export interface Exemption {
|
|
|
99
99
|
* @example "your_project"
|
|
100
100
|
*/
|
|
101
101
|
orgId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Name of the organization associated with the exemption
|
|
104
|
+
* @example "Organization Name"
|
|
105
|
+
*/
|
|
106
|
+
orgName?: string;
|
|
102
107
|
pendingChanges: PendingChanges;
|
|
103
108
|
/**
|
|
104
109
|
* ID of the Harness Pipeline to which the exemption applies. You must also specify "projectId" and "orgId". Cannot be specified alongside "targetId".
|
|
@@ -110,6 +115,11 @@ export interface Exemption {
|
|
|
110
115
|
* @example "your_project"
|
|
111
116
|
*/
|
|
112
117
|
projectId?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Name of the project associated with the exemption
|
|
120
|
+
* @example "Project Name"
|
|
121
|
+
*/
|
|
122
|
+
projectName?: string;
|
|
113
123
|
/**
|
|
114
124
|
* Text describing why this Exemption is necessary
|
|
115
125
|
* @example "Waiting on upstream bug fix"
|
|
@@ -138,7 +148,7 @@ export interface Exemption {
|
|
|
138
148
|
/**
|
|
139
149
|
* Approval status of Exemption
|
|
140
150
|
* @default "Pending"
|
|
141
|
-
* @example "
|
|
151
|
+
* @example "Pending"
|
|
142
152
|
*/
|
|
143
153
|
status: 'Approved' | 'Canceled' | 'Expired' | 'Pending' | 'Rejected';
|
|
144
154
|
/**
|
|
@@ -2,12 +2,12 @@ import type { FrontendExemptionTargets } from '../schemas/FrontendExemptionTarge
|
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
4
|
* List of targets for an exemption
|
|
5
|
-
* @example {"impactedTargets":[{"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"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
5
|
+
* @example {"impactedTargets":[{"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"},{"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"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
6
6
|
*/
|
|
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"},{"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"},{"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;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { Exemption } from '../schemas/Exemption';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"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":"
|
|
4
|
+
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"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":"Expired","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":"Canceled","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":"Expired","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":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"}]}
|
|
5
5
|
*/
|
|
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":"
|
|
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":"Expired","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":"Canceled","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":"Expired","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":"Canceled","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":"Expired","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":"Canceled","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":"Expired","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":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"}]
|
|
10
10
|
*/
|
|
11
11
|
results: Exemption[];
|
|
12
12
|
}
|
|
@@ -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,"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,"issueSummary":{"currentStatus":"Approved","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":6933871780201318000,"numOccurrences":65291977269091816,"numRemediatedOccurrences":342520660303603500,"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,25 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Git Metadata associated with the Scan
|
|
3
|
-
* @example {"detectedName":"
|
|
3
|
+
* @example {"detectedName":"Sint magni recusandae nihil nisi magni quidem.","detectedVariant":"Ea quisquam.","droneCorrelated":true,"provider":"Vel hic provident.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Doloribus facere nulla nihil similique magni sit.","Expedita ducimus."],"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 "Adipisci ut."
|
|
9
9
|
*/
|
|
10
10
|
detectedName?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Detected Variant
|
|
13
|
-
* @example "
|
|
13
|
+
* @example "Expedita repellendus esse saepe soluta blanditiis."
|
|
14
14
|
*/
|
|
15
15
|
detectedVariant?: string;
|
|
16
16
|
/**
|
|
17
17
|
* Drone Correlated
|
|
18
|
+
* @example true
|
|
18
19
|
*/
|
|
19
20
|
droneCorrelated?: boolean;
|
|
20
21
|
/**
|
|
21
22
|
* Git Provider
|
|
22
|
-
* @example "
|
|
23
|
+
* @example "Quidem quia consectetur quis omnis quaerat."
|
|
23
24
|
*/
|
|
24
25
|
provider?: string;
|
|
25
26
|
/**
|
|
@@ -35,7 +36,7 @@ export interface GitMetadata {
|
|
|
35
36
|
repositoryHttp?: string;
|
|
36
37
|
/**
|
|
37
38
|
* Git Repository Path
|
|
38
|
-
* @example ["
|
|
39
|
+
* @example ["Dolor minima fugit et.","Modi culpa et et.","Provident ut quia minus.","Rerum quos."]
|
|
39
40
|
*/
|
|
40
41
|
repositoryPath?: string[];
|
|
41
42
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { HistoricalIssueCounts } from '../schemas/HistoricalIssueCounts';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"counts":[{"active":
|
|
3
|
+
* @example {"counts":[{"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}}]}
|
|
4
4
|
*/
|
|
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":
|
|
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}}]
|
|
9
9
|
*/
|
|
10
10
|
counts: HistoricalIssueCounts[];
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"
|
|
2
|
+
* @example {"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Aut nobis nostrum enim id omnis.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Inventore voluptatum eos dolores.","variantName":"Quo omnis similique quod perspiciatis."}
|
|
3
3
|
*/
|
|
4
4
|
export interface ImpactedTarget {
|
|
5
5
|
/**
|
|
@@ -9,7 +9,7 @@ export interface ImpactedTarget {
|
|
|
9
9
|
exemptionId?: string;
|
|
10
10
|
/**
|
|
11
11
|
* Exemption Status
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Et iusto praesentium eum maxime."
|
|
13
13
|
*/
|
|
14
14
|
exemptionStatus?: string;
|
|
15
15
|
/**
|
|
@@ -36,12 +36,12 @@ export interface ImpactedTarget {
|
|
|
36
36
|
numOccurrences: number;
|
|
37
37
|
/**
|
|
38
38
|
* The user id associated with the last scan run
|
|
39
|
-
* @example "
|
|
39
|
+
* @example "Provident ut quam aliquid."
|
|
40
40
|
*/
|
|
41
41
|
userId?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Variant name
|
|
44
|
-
* @example "
|
|
44
|
+
* @example "Neque ut laudantium qui eligendi esse exercitationem."
|
|
45
45
|
*/
|
|
46
46
|
variantName: string;
|
|
47
47
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Information about a Security Issue
|
|
3
|
-
* @example {"baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"
|
|
3
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Pending","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","harnessAugmentation":{"Consequuntur minus asperiores facere.":"Voluptas nobis voluptas.","Laboriosam dolores.":"Voluptatem dolor ea ut doloremque deserunt."},"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
|
+
/**
|
|
7
|
+
* base image name of the issue
|
|
8
|
+
* @example "baseImageName"
|
|
9
|
+
*/
|
|
10
|
+
baseImageName?: string;
|
|
6
11
|
/**
|
|
7
12
|
* The Baseline Target Variant related to this Security Issue
|
|
8
13
|
* @example "abcdef1234567890ghijkl"
|
|
@@ -38,12 +43,12 @@ export interface Issue {
|
|
|
38
43
|
exemptionId?: string;
|
|
39
44
|
/**
|
|
40
45
|
* Exemption's status at the Security Scan created time
|
|
41
|
-
* @example "
|
|
46
|
+
* @example "Rejected"
|
|
42
47
|
*/
|
|
43
48
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
44
49
|
/**
|
|
45
50
|
* Harness Augmentation details
|
|
46
|
-
* @example {"
|
|
51
|
+
* @example {"Omnis laudantium dolores et accusamus.":"Cupiditate quasi quo.","Praesentium assumenda magni.":"Dolores nihil ab.","Qui itaque est maxime.":"Est et rerum."}
|
|
47
52
|
*/
|
|
48
53
|
harnessAugmentation?: {
|
|
49
54
|
[key: string]: any;
|
|
@@ -76,6 +81,16 @@ export interface Issue {
|
|
|
76
81
|
occurrences?: Array<{
|
|
77
82
|
[key: string]: any;
|
|
78
83
|
}>;
|
|
84
|
+
/**
|
|
85
|
+
* The status of the origin, either 'approved' or 'unapproved'
|
|
86
|
+
* @example "approved"
|
|
87
|
+
*/
|
|
88
|
+
originStatus?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The origins of the issue
|
|
91
|
+
* @example ["app","base"]
|
|
92
|
+
*/
|
|
93
|
+
origins?: string[];
|
|
79
94
|
/**
|
|
80
95
|
* The scan tool that identified this Security Issue
|
|
81
96
|
* @example "product1234567890abcde"
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"
|
|
3
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Expired","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","harnessAugmentation":{"Ipsum rerum itaque.":"Voluptatibus quis aut dolorem aut velit.","Perferendis dolor est.":"Aut repellendus voluptatibus saepe voluptatem."},"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
|
+
/**
|
|
7
|
+
* base image name of the issue
|
|
8
|
+
* @example "baseImageName"
|
|
9
|
+
*/
|
|
10
|
+
baseImageName?: string;
|
|
6
11
|
/**
|
|
7
12
|
* The Baseline Target Variant related to this Security Issue
|
|
8
13
|
* @example "abcdef1234567890ghijkl"
|
|
@@ -38,12 +43,12 @@ export interface IssueForExemptionResult {
|
|
|
38
43
|
exemptionId?: string;
|
|
39
44
|
/**
|
|
40
45
|
* Exemption's status at the Security Scan created time
|
|
41
|
-
* @example "
|
|
46
|
+
* @example "Pending"
|
|
42
47
|
*/
|
|
43
48
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
44
49
|
/**
|
|
45
50
|
* Harness Augmentation details
|
|
46
|
-
* @example {"
|
|
51
|
+
* @example {"Ad recusandae unde tempore deserunt voluptatem.":"Et qui assumenda ipsa sit soluta sit.","Harum a minima sunt qui.":"Unde quisquam officia tempore voluptatem."}
|
|
47
52
|
*/
|
|
48
53
|
harnessAugmentation?: {
|
|
49
54
|
[key: string]: any;
|
|
@@ -77,6 +82,16 @@ export interface IssueForExemptionResult {
|
|
|
77
82
|
[key: string]: any;
|
|
78
83
|
}>;
|
|
79
84
|
occurrencesPagination?: Pagination;
|
|
85
|
+
/**
|
|
86
|
+
* The status of the origin, either 'approved' or 'unapproved'
|
|
87
|
+
* @example "approved"
|
|
88
|
+
*/
|
|
89
|
+
originStatus?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The origins of the issue
|
|
92
|
+
* @example ["app","base"]
|
|
93
|
+
*/
|
|
94
|
+
origins?: string[];
|
|
80
95
|
/**
|
|
81
96
|
* The scan tool that identified this Security Issue
|
|
82
97
|
* @example "product1234567890abcde"
|
|
@@ -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","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Pending","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","gitMetadata":{"detectedName":"Praesentium dolores tenetur voluptatem quae.","detectedVariant":"At accusantium.","droneCorrelated":false,"provider":"Occaecati corporis fugit.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Repellat placeat dolore est rem sit optio.","Beatae harum aliquam."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"},"harnessAugmentation":{"Autem voluptate.":"Quia aut.","Laboriosam et nihil illum.":"Voluptates ad.","Minima hic.":"Incidunt nemo."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","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
|
/**
|
|
@@ -22,7 +22,7 @@ export interface IssueInScan {
|
|
|
22
22
|
created: number;
|
|
23
23
|
/**
|
|
24
24
|
* Current status of the Exemption
|
|
25
|
-
* @example "
|
|
25
|
+
* @example "Rejected"
|
|
26
26
|
*/
|
|
27
27
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
28
28
|
/**
|
|
@@ -44,13 +44,13 @@ export interface IssueInScan {
|
|
|
44
44
|
exemptionId?: string;
|
|
45
45
|
/**
|
|
46
46
|
* Exemption's status at the Security Scan created time
|
|
47
|
-
* @example "
|
|
47
|
+
* @example "Expired"
|
|
48
48
|
*/
|
|
49
49
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
50
50
|
gitMetadata?: GitMetadata;
|
|
51
51
|
/**
|
|
52
52
|
* Harness Augmentation details
|
|
53
|
-
* @example {"
|
|
53
|
+
* @example {"Et exercitationem est omnis.":"Est earum quia quia optio."}
|
|
54
54
|
*/
|
|
55
55
|
harnessAugmentation?: {
|
|
56
56
|
[key: string]: any;
|
|
@@ -91,6 +91,11 @@ export interface IssueInScan {
|
|
|
91
91
|
[key: string]: any;
|
|
92
92
|
}>;
|
|
93
93
|
occurrencesPagination: Pagination;
|
|
94
|
+
/**
|
|
95
|
+
* The status of the origin, either 'approved' or 'unapproved'
|
|
96
|
+
* @example "approved"
|
|
97
|
+
*/
|
|
98
|
+
originStatus?: string;
|
|
94
99
|
/**
|
|
95
100
|
* The origins of the issue
|
|
96
101
|
* @example ["app","base"]
|