@harnessio/react-sto-core-client 0.4.10 → 0.6.1
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 +2 -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/useFrontendAllIssuesListQuery.d.ts +5 -0
- package/dist/sto-core/src/services/hooks/useFrontendExemptionsFiltersQuery.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 +5 -0
- package/dist/sto-core/src/services/hooks/useFrontendPipelineSecurityIssuesQuery.d.ts +5 -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/useOverridesCreateOverrideMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useOverridesListOverridesQuery.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 +4 -4
- 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/schemas/AllIssueSummary.d.ts +8 -3
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +12 -13
- package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.d.ts +6 -1
- package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +12 -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 +3 -3
- package/dist/sto-core/src/services/schemas/ExemptionImpactedTargetsResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExemptionsFiltersResult.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExportPipelineSecurityIssuesCsvResponseBody.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +8 -3
- package/dist/sto-core/src/services/schemas/Issue.d.ts +10 -5
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +10 -5
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +11 -6
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +8 -8
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Override.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +13 -13
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +7 -2
- package/dist/sto-core/src/services/schemas/ProductsListProductsResponseBody.d.ts +1 -1
- 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 +1 -1
- package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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":"Ex ex est eum nemo velit.","exemptionId":"abcdef1234567890ghijkl","issueType":"Magni excepturi iure.","lastDetected":1634836529,"occurrences":[{"Expedita vel non.":"Est fugit id.","Illo quibusdam.":"Omnis qui in.","Vel id.":"Qui necessitatibus quidem iste ut iste."},{"Reprehenderit accusamus ducimus quis et magni natus.":"Est rerum temporibus repellendus facilis aspernatur."},{"Eligendi eos qui commodi.":"Id et iste accusantium occaecati laboriosam quibusdam.","Sed qui.":"Facere sed praesentium consequatur consequatur quia ratione.","Vel sit quae doloremque recusandae.":"Nostrum nam."}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"reachability":"reachable","referenceIdentifiers":[{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."},{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."}],"severityCode":"High","targetName":"The Target","targetType":"Quis ut est voluptatem iure.","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","variantName":"Vel aut ex dolorum impedit labore nostrum."}
|
|
5
5
|
*/
|
|
6
6
|
export interface AllIssuesOccurrenceDetailsResult {
|
|
7
7
|
/**
|
|
8
8
|
* Issue description
|
|
9
|
-
* @example "
|
|
9
|
+
* @example "Eum aut qui voluptatem ea."
|
|
10
10
|
*/
|
|
11
11
|
description: string;
|
|
12
12
|
/**
|
|
@@ -16,7 +16,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
16
16
|
exemptionId?: string;
|
|
17
17
|
/**
|
|
18
18
|
* Issue Type
|
|
19
|
-
* @example "
|
|
19
|
+
* @example "Et rerum quis quasi."
|
|
20
20
|
*/
|
|
21
21
|
issueType?: string;
|
|
22
22
|
/**
|
|
@@ -27,15 +27,20 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
27
27
|
lastDetected: number;
|
|
28
28
|
/**
|
|
29
29
|
* List of occurrences
|
|
30
|
-
* @example [{"
|
|
30
|
+
* @example [{"Consequatur eius.":"Natus tempore sit eos.","Nihil sed.":"In sed.","Repellat perspiciatis autem.":"Corporis exercitationem nostrum beatae labore rerum quibusdam."},{"Autem ut consequatur aut.":"Optio optio maxime consequuntur.","Fugit blanditiis velit repellat sint voluptas.":"Nisi illum quia magnam.","Necessitatibus eaque.":"Omnis animi deleniti tempore."},{"Necessitatibus dolorum animi in.":"Ducimus odio libero."}]
|
|
31
31
|
*/
|
|
32
32
|
occurrences: Array<{
|
|
33
33
|
[key: string]: any;
|
|
34
34
|
}>;
|
|
35
35
|
pagination?: Pagination;
|
|
36
|
+
/**
|
|
37
|
+
* Reachability status of the issue for this target. 'reachable' if any occurrence is reachable, 'unreachable' if all are unreachable.
|
|
38
|
+
* @example "reachable"
|
|
39
|
+
*/
|
|
40
|
+
reachability?: string;
|
|
36
41
|
/**
|
|
37
42
|
* Reference Identifiers
|
|
38
|
-
* @example [{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."},{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."}
|
|
43
|
+
* @example [{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."},{"id":"Perferendis minima rerum.","type":"Sunt doloremque corporis facere aut quasi fugit."}]
|
|
39
44
|
*/
|
|
40
45
|
referenceIdentifiers?: RefIds[];
|
|
41
46
|
/**
|
|
@@ -50,7 +55,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
50
55
|
targetName: string;
|
|
51
56
|
/**
|
|
52
57
|
* Target Type
|
|
53
|
-
* @example "
|
|
58
|
+
* @example "Quas ipsum sunt."
|
|
54
59
|
*/
|
|
55
60
|
targetType: string;
|
|
56
61
|
/**
|
|
@@ -60,7 +65,7 @@ export interface AllIssuesOccurrenceDetailsResult {
|
|
|
60
65
|
title: string;
|
|
61
66
|
/**
|
|
62
67
|
* Variant name
|
|
63
|
-
* @example "
|
|
68
|
+
* @example "Tenetur qui nihil aspernatur et."
|
|
64
69
|
*/
|
|
65
70
|
variantName: string;
|
|
66
71
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AugmentRemediationWarning } from '../schemas/AugmentRemediationWarning';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"warnings":[{"message":"
|
|
3
|
+
* @example {"warnings":[{"message":"Soluta consectetur.","source":"Tempora dolor porro magni."},{"message":"Soluta consectetur.","source":"Tempora dolor porro magni."},{"message":"Soluta consectetur.","source":"Tempora dolor porro magni."},{"message":"Soluta consectetur.","source":"Tempora dolor porro magni."}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationMetadata {
|
|
6
6
|
/**
|
|
7
|
-
* @example [{"message":"
|
|
7
|
+
* @example [{"message":"Soluta consectetur.","source":"Tempora dolor porro magni."},{"message":"Soluta consectetur.","source":"Tempora dolor porro magni."},{"message":"Soluta consectetur.","source":"Tempora dolor porro magni."},{"message":"Soluta consectetur.","source":"Tempora dolor porro magni."}]
|
|
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":"Soluta consectetur.","source":"Tempora dolor porro magni."},{"message":"Soluta consectetur.","source":"Tempora dolor porro magni."}]},"remediationCode":"Tenetur optio ut suscipit et voluptatem.","remediationContext":"Adipisci aut dolores.","repoContent":"Neque assumenda nulla earum."}
|
|
4
4
|
*/
|
|
5
5
|
export interface AugmentRemediationResult {
|
|
6
6
|
metadata: AugmentRemediationMetadata;
|
|
7
7
|
/**
|
|
8
|
-
* @example "
|
|
8
|
+
* @example "Minus eum impedit totam aut qui dolorem."
|
|
9
9
|
*/
|
|
10
10
|
remediationCode?: string;
|
|
11
11
|
/**
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Eius optio et possimus omnis voluptates."
|
|
13
13
|
*/
|
|
14
14
|
remediationContext: string;
|
|
15
15
|
/**
|
|
16
|
-
* @example "
|
|
16
|
+
* @example "Qui repudiandae perferendis."
|
|
17
17
|
*/
|
|
18
18
|
repoContent?: string;
|
|
19
19
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"message":"
|
|
2
|
+
* @example {"message":"Minus porro aspernatur eos aut nostrum.","source":"Ex natus et alias."}
|
|
3
3
|
*/
|
|
4
4
|
export interface AugmentRemediationWarning {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Ratione a."
|
|
7
7
|
*/
|
|
8
8
|
message: string;
|
|
9
9
|
/**
|
|
10
|
-
* @example "Consequatur
|
|
10
|
+
* @example "Consequatur omnis amet repellendus autem sit pariatur."
|
|
11
11
|
*/
|
|
12
12
|
source: string;
|
|
13
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"executionIds":["
|
|
2
|
+
* @example {"executionIds":["Dolor atque.","Modi omnis architecto incidunt vitae nulla.","Explicabo nihil qui inventore soluta eius qui."]}
|
|
3
3
|
*/
|
|
4
4
|
export interface BaselineExecutions {
|
|
5
5
|
/**
|
|
6
6
|
* Harness Execution IDs of the most recent baseline scans
|
|
7
|
-
* @example ["
|
|
7
|
+
* @example ["Qui consequuntur velit.","A tenetur unde aut qui doloribus."]
|
|
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 {"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"
|
|
4
|
+
* @example {"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","targetId":"abcdef1234567890ghijkl","type":"Other"}
|
|
5
5
|
*/
|
|
6
6
|
export interface Exemption {
|
|
7
7
|
/**
|
|
@@ -57,7 +57,7 @@ export interface Exemption {
|
|
|
57
57
|
created: number;
|
|
58
58
|
/**
|
|
59
59
|
* Exemption's status at the Security Scan created time
|
|
60
|
-
* @example "
|
|
60
|
+
* @example "Approved"
|
|
61
61
|
*/
|
|
62
62
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
63
63
|
/**
|
|
@@ -168,7 +168,7 @@ export interface Exemption {
|
|
|
168
168
|
/**
|
|
169
169
|
* Approval status of Exemption
|
|
170
170
|
* @default "Pending"
|
|
171
|
-
* @example "
|
|
171
|
+
* @example "Approved"
|
|
172
172
|
*/
|
|
173
173
|
status: 'Approved' | 'Canceled' | 'Expired' | 'Pending' | 'Rejected';
|
|
174
174
|
/**
|
|
@@ -2,7 +2,7 @@ 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 {"baselineTargetsExist":true,"impactedTargets":[{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}
|
|
5
|
+
* @example {"baselineTargetsExist":true,"impactedTargets":[{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","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
|
/**
|
|
@@ -12,7 +12,7 @@ export interface ExemptionImpactedTargetsResult {
|
|
|
12
12
|
baselineTargetsExist: boolean;
|
|
13
13
|
/**
|
|
14
14
|
* Impacted target details
|
|
15
|
-
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}]
|
|
15
|
+
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","orgName":"Organization Name","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","projectName":"Project Name","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}]
|
|
16
16
|
*/
|
|
17
17
|
impactedTargets: FrontendExemptionTargets[];
|
|
18
18
|
pagination: Pagination;
|
|
@@ -3,27 +3,27 @@ import type { ExemptionFilterTarget } from '../schemas/ExemptionFilterTarget';
|
|
|
3
3
|
import type { ExemptionFilterUser } from '../schemas/ExemptionFilterUser';
|
|
4
4
|
/**
|
|
5
5
|
* Available filters for exemptions
|
|
6
|
-
* @example {"pipelines":["
|
|
6
|
+
* @example {"pipelines":["Amet odio.","Ex quia minus quia.","Autem et eveniet nostrum maiores asperiores."],"reasons":["Sit similique dolores aliquam in est possimus.","Similique eos quidem tenetur.","Quod odit laudantium ab reiciendis natus enim.","Et expedita vitae adipisci qui maiores est."],"scanners":[{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"}],"targets":[{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"},{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"},{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"},{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"}],"users":[{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"},{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"},{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"},{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"}]}
|
|
7
7
|
*/
|
|
8
8
|
export interface ExemptionsFiltersResult {
|
|
9
9
|
/**
|
|
10
10
|
* List of pipeline IDs with exemptions
|
|
11
|
-
* @example ["
|
|
11
|
+
* @example ["Est eos dolor aut quia illo repellendus.","Sit assumenda."]
|
|
12
12
|
*/
|
|
13
13
|
pipelines: string[];
|
|
14
14
|
/**
|
|
15
15
|
* List of exemption reasons
|
|
16
|
-
* @example ["
|
|
16
|
+
* @example ["Eligendi quia quo natus atque aliquid quasi.","Occaecati commodi nihil perferendis et.","Voluptatum sit."]
|
|
17
17
|
*/
|
|
18
18
|
reasons: string[];
|
|
19
19
|
/**
|
|
20
20
|
* List of scanners with exemptions
|
|
21
|
-
* @example [{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"}
|
|
21
|
+
* @example [{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"}]
|
|
22
22
|
*/
|
|
23
23
|
scanners: ExemptionFilterScanner[];
|
|
24
24
|
/**
|
|
25
25
|
* List of targets with exemptions
|
|
26
|
-
* @example [{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"},{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"}]
|
|
26
|
+
* @example [{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"},{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"},{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"},{"targetId":"target1111111111111111","targetName":"my-repo","targetType":"repository"}]
|
|
27
27
|
*/
|
|
28
28
|
targets: ExemptionFilterTarget[];
|
|
29
29
|
/**
|
|
@@ -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":[{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Rejected","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"
|
|
4
|
+
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Rejected","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Rejected","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Rejected","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Rejected","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","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 [{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Rejected","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"
|
|
9
|
+
* @example [{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Rejected","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Rejected","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Rejected","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","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":"Rejected","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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"}]
|
|
10
10
|
*/
|
|
11
11
|
results: Exemption[];
|
|
12
12
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"data":[["
|
|
2
|
+
* @example {"data":[["Accusantium dolores aliquid distinctio.","Molestias ut quos at.","Non ut ut occaecati soluta voluptas.","Velit necessitatibus laboriosam maxime explicabo est."],["Perferendis vel laboriosam amet quia dicta.","Sint sequi nesciunt."],["Rerum adipisci dolore aspernatur veritatis voluptas.","Et aut eos voluptatem id dolor."]],"executionId":"Odio totam molestiae dolorem aut consequatur.","filename":"Laudantium laudantium quidem.","headers":["Ipsam aspernatur quia.","Libero nulla a."],"totalRows":5340958305990083000}
|
|
3
3
|
*/
|
|
4
4
|
export interface ExportPipelineSecurityIssuesCsvResponseBody {
|
|
5
5
|
/**
|
|
6
6
|
* CSV data rows
|
|
7
|
-
* @example [["
|
|
7
|
+
* @example [["Hic vitae laboriosam magni.","Cupiditate fuga magni veniam iure aut vero.","Rerum voluptas eum omnis voluptas."],["Aperiam assumenda et adipisci sit est est.","Voluptas nulla ad illum tempore.","Ut iusto explicabo molestiae."],["Maiores et doloribus vel sit sint.","Iste quaerat mollitia sit ex cumque.","Quis sunt illum laudantium sed exercitationem.","Quasi eos quaerat occaecati aperiam possimus fuga."],["Sapiente neque sequi.","Vero ea et ut ipsa eum."]]
|
|
8
8
|
*/
|
|
9
9
|
data: Array<string[]>;
|
|
10
10
|
/**
|
|
11
11
|
* Execution ID for this export
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Qui aut veritatis ab sed aut voluptates."
|
|
13
13
|
*/
|
|
14
14
|
executionId: string;
|
|
15
15
|
/**
|
|
16
16
|
* Suggested filename for download
|
|
17
|
-
* @example "
|
|
17
|
+
* @example "Tempora asperiores sed beatae asperiores."
|
|
18
18
|
*/
|
|
19
19
|
filename: string;
|
|
20
20
|
/**
|
|
21
21
|
* CSV column headers
|
|
22
|
-
* @example ["
|
|
22
|
+
* @example ["Vitae animi est nesciunt quidem modi debitis.","Blanditiis molestiae repudiandae nemo.","Ea omnis aut est."]
|
|
23
23
|
*/
|
|
24
24
|
headers: string[];
|
|
25
25
|
/**
|
|
26
26
|
* Total number of data rows
|
|
27
27
|
* @format int64
|
|
28
|
-
* @example
|
|
28
|
+
* @example 435212344285363300
|
|
29
29
|
*/
|
|
30
30
|
totalRows: number;
|
|
31
31
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Git Metadata associated with the Scan
|
|
3
|
-
* @example {"detectedName":"
|
|
3
|
+
* @example {"detectedName":"Voluptatem quis officiis.","detectedVariant":"Explicabo omnis temporibus.","droneCorrelated":false,"provider":"Excepturi maxime nihil et.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Aut accusantium.","Et asperiores eum ratione ullam.","Nobis fugit."],"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 "Consequatur et eos quo."
|
|
9
9
|
*/
|
|
10
10
|
detectedName?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Detected Variant
|
|
13
|
-
* @example "
|
|
13
|
+
* @example "Accusantium minus voluptatem omnis mollitia quis."
|
|
14
14
|
*/
|
|
15
15
|
detectedVariant?: string;
|
|
16
16
|
/**
|
|
@@ -20,7 +20,7 @@ export interface GitMetadata {
|
|
|
20
20
|
droneCorrelated?: boolean;
|
|
21
21
|
/**
|
|
22
22
|
* Git Provider
|
|
23
|
-
* @example "
|
|
23
|
+
* @example "Odit odit recusandae rerum unde labore."
|
|
24
24
|
*/
|
|
25
25
|
provider?: string;
|
|
26
26
|
/**
|
|
@@ -36,7 +36,7 @@ export interface GitMetadata {
|
|
|
36
36
|
repositoryHttp?: string;
|
|
37
37
|
/**
|
|
38
38
|
* Git Repository Path
|
|
39
|
-
* @example ["
|
|
39
|
+
* @example ["Occaecati atque omnis quis nihil voluptatem.","Fuga neque exercitationem nemo."]
|
|
40
40
|
*/
|
|
41
41
|
repositoryPath?: string[];
|
|
42
42
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { HistoricalIssueCounts } from '../schemas/HistoricalIssueCounts';
|
|
2
2
|
/**
|
|
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}}
|
|
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":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":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userEmail":"user@gmail.com","userId":"
|
|
2
|
+
* @example {"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","userEmail":"user@gmail.com","userId":"Fugit rem beatae dolor voluptas est modi.","userName":"firstname lastname","variantName":"Quaerat aperiam tempore."}
|
|
3
3
|
*/
|
|
4
4
|
export interface ImpactedTarget {
|
|
5
5
|
/**
|
|
@@ -44,6 +44,11 @@ export interface ImpactedTarget {
|
|
|
44
44
|
* @example "example_pipeline"
|
|
45
45
|
*/
|
|
46
46
|
pipelineId: string;
|
|
47
|
+
/**
|
|
48
|
+
* Reachability status of the issue for this target. 'reachable' if any occurrence is reachable, 'unreachable' if all are unreachable.
|
|
49
|
+
* @example "reachable"
|
|
50
|
+
*/
|
|
51
|
+
reachability?: string;
|
|
47
52
|
/**
|
|
48
53
|
* The email associated with the user id
|
|
49
54
|
* @example "user@gmail.com"
|
|
@@ -51,7 +56,7 @@ export interface ImpactedTarget {
|
|
|
51
56
|
userEmail?: string;
|
|
52
57
|
/**
|
|
53
58
|
* The user id associated with the last scan run
|
|
54
|
-
* @example "
|
|
59
|
+
* @example "Quidem voluptas voluptatum voluptas ut distinctio aspernatur."
|
|
55
60
|
*/
|
|
56
61
|
userId?: string;
|
|
57
62
|
/**
|
|
@@ -61,7 +66,7 @@ export interface ImpactedTarget {
|
|
|
61
66
|
userName?: string;
|
|
62
67
|
/**
|
|
63
68
|
* Variant name
|
|
64
|
-
* @example "
|
|
69
|
+
* @example "Dolorum nisi ad illum recusandae modi."
|
|
65
70
|
*/
|
|
66
71
|
variantName: string;
|
|
67
72
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OverrideResult } from '../schemas/OverrideResult';
|
|
2
2
|
/**
|
|
3
3
|
* Information about a Security Issue
|
|
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"},"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","harnessAugmentation":{"Id recusandae iste dolor reiciendis voluptas labore.":"Et non aut numquam.","Qui ut ut odio omnis.":"Eum quos alias."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"originStatus":"approved","origins":["app","base"],"overrides":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"overridesAtScan":[{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}],"productId":"product1234567890abcde","reachability":"reachable","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
|
|
5
5
|
*/
|
|
6
6
|
export interface Issue {
|
|
7
7
|
/**
|
|
@@ -22,7 +22,7 @@ export interface Issue {
|
|
|
22
22
|
created: number;
|
|
23
23
|
/**
|
|
24
24
|
* Current status of the Exemption
|
|
25
|
-
* @example "
|
|
25
|
+
* @example "Approved"
|
|
26
26
|
*/
|
|
27
27
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
28
28
|
/**
|
|
@@ -61,12 +61,12 @@ export interface Issue {
|
|
|
61
61
|
exemptionId?: string;
|
|
62
62
|
/**
|
|
63
63
|
* Exemption's status at the Security Scan created time
|
|
64
|
-
* @example "
|
|
64
|
+
* @example "Approved"
|
|
65
65
|
*/
|
|
66
66
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
67
67
|
/**
|
|
68
68
|
* Harness Augmentation details
|
|
69
|
-
* @example {"
|
|
69
|
+
* @example {"Magni dolor repellendus iste aut consequatur assumenda.":"Nam nulla omnis omnis.","Officiis sit veniam mollitia aspernatur eum.":"Quo nulla omnis in."}
|
|
70
70
|
*/
|
|
71
71
|
harnessAugmentation?: {
|
|
72
72
|
[key: string]: any;
|
|
@@ -116,7 +116,7 @@ export interface Issue {
|
|
|
116
116
|
overrides?: OverrideResult[];
|
|
117
117
|
/**
|
|
118
118
|
* List of issue overrides at scan time
|
|
119
|
-
* @example [{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}]
|
|
119
|
+
* @example [{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"},{"created":1651578240,"fieldName":"severityCode","impactedTargetId":"target1111111111111111","originalFieldValue":"Low","overrideFieldValue":"Low","overrideId":"override1234","reason":"Waiting on upstream bug fix","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname"}]
|
|
120
120
|
*/
|
|
121
121
|
overridesAtScan?: OverrideResult[];
|
|
122
122
|
/**
|
|
@@ -124,6 +124,11 @@ export interface Issue {
|
|
|
124
124
|
* @example "product1234567890abcde"
|
|
125
125
|
*/
|
|
126
126
|
productId: string;
|
|
127
|
+
/**
|
|
128
|
+
* Reachability status of the issue (reachable or unreachable)
|
|
129
|
+
* @example "reachable"
|
|
130
|
+
*/
|
|
131
|
+
reachability?: string;
|
|
127
132
|
/**
|
|
128
133
|
* Numeric severity, from 0 (lowest) to 10 (highest)
|
|
129
134
|
* @format float
|