@harnessio/react-sto-core-client 0.7.2 → 0.7.4
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/useExemptionsGetProjectLevelExemptionForIssueQuery.d.ts +46 -0
- package/dist/sto-core/src/services/hooks/useExemptionsGetProjectLevelExemptionForIssueQuery.js +14 -0
- 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/useFrontendAllIssuesDetailsV2Query.d.ts +61 -0
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesDetailsV2Query.js +14 -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/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 +5 -5
- package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +4 -4
- package/dist/sto-core/src/services/hooks/useTargetsFindTargetByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useTargetsPatchTargetMutation.d.ts +1 -1
- package/dist/sto-core/src/services/index.d.ts +7 -0
- package/dist/sto-core/src/services/index.js +2 -0
- package/dist/sto-core/src/services/schemas/AllBaselineIssueSummary.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/AllIssueSummary.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/AllIssuesCountsV2Result.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsV2Result.d.ts +88 -0
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsV2Result.js +1 -0
- 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/AllIssuesListV2Result.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AugmentRemediationResult.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/AugmentRemediationWarning.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/BaselineExecutions.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Exemption.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExemptionImpactedTargetsResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExemptionsFiltersResult.d.ts +6 -6
- 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/FrontendAllIssuesDetailsV2ResponseBody.d.ts +2 -0
- package/dist/sto-core/src/services/schemas/FrontendAllIssuesDetailsV2ResponseBody.js +1 -0
- package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +5 -6
- package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/HistoricalIssueCounts.d.ts +2 -1
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/ImpactedTargetV2.d.ts +77 -0
- package/dist/sto-core/src/services/schemas/ImpactedTargetV2.js +4 -0
- package/dist/sto-core/src/services/schemas/Issue.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +5 -5
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/OccurrenceDataflowResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Override.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/OverridesListOverridesResponseBody.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 +13 -13
- 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/ProductsListProductsResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PullRequestResult.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/RefIds.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/SecurityReviewResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/TestTarget.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +2 -2
- package/package.json +1 -1
|
@@ -3,32 +3,32 @@ 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":["Vel est rerum temporibus repellendus facilis.","Cum ab.","Sit quae doloremque recusandae qui nostrum."],"reasons":["Qui commodi ea id et iste.","Occaecati laboriosam.","Nihil sed."],"scanners":[{"scannerId":"snyk","scannerName":"Snyk"},{"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"}],"users":[{"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 ["Eum nemo velit voluptatem ut.","Voluptates expedita.","Non eligendi est fugit id et."]
|
|
12
12
|
*/
|
|
13
13
|
pipelines: string[];
|
|
14
14
|
/**
|
|
15
15
|
* List of exemption reasons
|
|
16
|
-
* @example ["
|
|
16
|
+
* @example ["Id voluptates qui necessitatibus quidem iste.","Iste magnam dignissimos reprehenderit accusamus ducimus quis."]
|
|
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"},{"scannerId":"snyk","scannerName":"Snyk"}]
|
|
21
|
+
* @example [{"scannerId":"snyk","scannerName":"Snyk"},{"scannerId":"snyk","scannerName":"Snyk"},{"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
|
/**
|
|
30
30
|
* List of all users in the account/scope
|
|
31
|
-
* @example [{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"},{"email":"john.doe@example.com","name":"John Doe","userId":"user1111111111111111"}]
|
|
31
|
+
* @example [{"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"}]
|
|
32
32
|
*/
|
|
33
33
|
users: ExemptionFilterUser[];
|
|
34
34
|
}
|
|
@@ -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":"
|
|
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":"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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","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":"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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","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":"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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","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":"
|
|
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":"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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","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":"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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","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":"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","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Approved","targetId":"abcdef1234567890ghijkl","type":"Other"}]
|
|
10
10
|
*/
|
|
11
11
|
results: Exemption[];
|
|
12
12
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"data":[["
|
|
2
|
+
* @example {"data":[["Est tempora quis eligendi quia quo.","Atque aliquid quasi aut occaecati commodi.","Perferendis et provident voluptatum sit."],["Molestias amet odio.","Ex quia minus quia.","Autem et eveniet nostrum maiores asperiores.","Quia sunt assumenda."],["Dolores aliquam.","Est possimus non similique.","Quidem tenetur itaque."]],"executionId":"Enim inventore et expedita vitae adipisci.","filename":"Odit laudantium ab.","headers":["Eum est.","Dolor aut quia illo repellendus ducimus.","Assumenda veniam ea voluptatem tenetur nihil."],"totalRows":2620582180733212000}
|
|
3
3
|
*/
|
|
4
4
|
export interface ExportPipelineSecurityIssuesCsvResponseBody {
|
|
5
5
|
/**
|
|
6
6
|
* CSV data rows
|
|
7
|
-
* @example [["
|
|
7
|
+
* @example [["Odio qui quia officiis perspiciatis voluptatem.","Aut accusantium est."],["Quos veniam eius totam id.","Omnis sapiente repellendus ipsum.","Esse sit consequuntur.","Doloremque velit possimus."],["Neque consequatur odit et.","Sunt eos quam cum porro."]]
|
|
8
8
|
*/
|
|
9
9
|
data: Array<string[]>;
|
|
10
10
|
/**
|
|
11
11
|
* Execution ID for this export
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Ut laborum sunt non cupiditate velit."
|
|
13
13
|
*/
|
|
14
14
|
executionId: string;
|
|
15
15
|
/**
|
|
16
16
|
* Suggested filename for download
|
|
17
|
-
* @example "
|
|
17
|
+
* @example "Reiciendis dolores."
|
|
18
18
|
*/
|
|
19
19
|
filename: string;
|
|
20
20
|
/**
|
|
21
21
|
* CSV column headers
|
|
22
|
-
* @example ["
|
|
22
|
+
* @example ["Odit voluptatem facere.","Et sed quis praesentium amet aliquid cum."]
|
|
23
23
|
*/
|
|
24
24
|
headers: string[];
|
|
25
25
|
/**
|
|
26
26
|
* Total number of data rows
|
|
27
27
|
* @format int64
|
|
28
|
-
* @example
|
|
28
|
+
* @example 4455461551600233500
|
|
29
29
|
*/
|
|
30
30
|
totalRows: number;
|
|
31
31
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 {"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"
|
|
5
|
+
* @example {"approverEmail":"user@harness.io","approverId":"user111111111111111111","approverName":"firstname lastname","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"Rejected","epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","lastDetected":1634836529,"numNewOccurrences":7362191042328059000,"numOccurrences":1888324143447813600,"numRemediatedOccurrences":6460488492756118000,"occurrenceInternalId":12345,"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"}],"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"}],"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"},"lastModified":1651578240,"link":"Upstream bug","numOccurrences":10,"orgId":"STO","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","projectName":"Project Name","reason":"Upstream bug","requesterEmail":"user@harness.io","requesterId":"user111111111111111111","requesterName":"firstname lastname","reviewedOn":1651578240,"scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","targetName":"my-target","totalOccurrences":10,"type":"Other"}
|
|
6
6
|
*/
|
|
7
7
|
export interface FrontendExemption {
|
|
8
8
|
/**
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Git Metadata associated with the Scan
|
|
3
|
-
* @example {"detectedName":"
|
|
3
|
+
* @example {"detectedName":"Sit dolorem velit dicta quasi quaerat rerum.","detectedVariant":"Rerum qui inventore rerum et.","droneCorrelated":false,"provider":"Ullam nesciunt.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Odit occaecati omnis earum quod.","Quia nihil praesentium tempore."],"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 "Quasi molestias esse."
|
|
9
9
|
*/
|
|
10
10
|
detectedName?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Detected Variant
|
|
13
|
-
* @example "
|
|
13
|
+
* @example "Laborum cumque sit."
|
|
14
14
|
*/
|
|
15
15
|
detectedVariant?: string;
|
|
16
16
|
/**
|
|
17
17
|
* Drone Correlated
|
|
18
|
-
* @example true
|
|
19
18
|
*/
|
|
20
19
|
droneCorrelated?: boolean;
|
|
21
20
|
/**
|
|
22
21
|
* Git Provider
|
|
23
|
-
* @example "Ut
|
|
22
|
+
* @example "Ut quia sit sed quia non est."
|
|
24
23
|
*/
|
|
25
24
|
provider?: string;
|
|
26
25
|
/**
|
|
@@ -36,7 +35,7 @@ export interface GitMetadata {
|
|
|
36
35
|
repositoryHttp?: string;
|
|
37
36
|
/**
|
|
38
37
|
* Git Repository Path
|
|
39
|
-
* @example ["
|
|
38
|
+
* @example ["Fuga officia neque optio dolorem totam.","Odit cum magni rerum ut.","Est cupiditate cupiditate non debitis rerum voluptas.","Est qui."]
|
|
40
39
|
*/
|
|
41
40
|
repositoryPath?: string[];
|
|
42
41
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { HistoricalIssueCounts } from '../schemas/HistoricalIssueCounts';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"counts":[{"active":
|
|
3
|
+
* @example {"counts":[{"active":false,"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":false,"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":false,"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":false,"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":false,"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":false,"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,10 +1,11 @@
|
|
|
1
1
|
import type { MinimalIssueCounts } from '../schemas/MinimalIssueCounts';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"active":
|
|
3
|
+
* @example {"active":false,"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 HistoricalIssueCounts {
|
|
6
6
|
/**
|
|
7
7
|
* True if at least one baseline was scanned on this date
|
|
8
|
+
* @example true
|
|
8
9
|
*/
|
|
9
10
|
active: boolean;
|
|
10
11
|
counts: MinimalIssueCounts;
|
|
@@ -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","reachability":"reachable","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":"Sint repudiandae.","userName":"firstname lastname","variantName":"Placeat aut."}
|
|
3
3
|
*/
|
|
4
4
|
export interface ImpactedTarget {
|
|
5
5
|
/**
|
|
@@ -56,7 +56,7 @@ export interface ImpactedTarget {
|
|
|
56
56
|
userEmail?: string;
|
|
57
57
|
/**
|
|
58
58
|
* The user id associated with the last scan run
|
|
59
|
-
* @example "
|
|
59
|
+
* @example "Recusandae iste dolor reiciendis voluptas."
|
|
60
60
|
*/
|
|
61
61
|
userId?: string;
|
|
62
62
|
/**
|
|
@@ -66,7 +66,7 @@ export interface ImpactedTarget {
|
|
|
66
66
|
userName?: string;
|
|
67
67
|
/**
|
|
68
68
|
* Variant name
|
|
69
|
-
* @example "
|
|
69
|
+
* @example "Quae et non aut numquam aliquid in."
|
|
70
70
|
*/
|
|
71
71
|
variantName: string;
|
|
72
72
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","reachability":"reachable","status":"Exempted","userEmail":"user@gmail.com","userId":"Modi rerum vel tenetur exercitationem molestias.","userName":"firstname lastname","variantName":"Officiis aspernatur sint sunt magni ad."}
|
|
3
|
+
*/
|
|
4
|
+
export interface ImpactedTargetV2 {
|
|
5
|
+
/**
|
|
6
|
+
* Harness Execution ID
|
|
7
|
+
* @example "abcdef1234567890ghijkl"
|
|
8
|
+
*/
|
|
9
|
+
executionId: string;
|
|
10
|
+
/**
|
|
11
|
+
* ID of Security Test Exemption
|
|
12
|
+
* @example "abcdef1234567890ghijkl"
|
|
13
|
+
*/
|
|
14
|
+
exemptionId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Status of project scoped exemption for this issue
|
|
17
|
+
* @example "Pending"
|
|
18
|
+
*/
|
|
19
|
+
exemptionStatus?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The ID of the impacted target
|
|
22
|
+
* @example "target1111111111111111"
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Timestamp of the last detection of this issue
|
|
27
|
+
* @format int64
|
|
28
|
+
* @example 1634836529
|
|
29
|
+
*/
|
|
30
|
+
lastDetected: number;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the impacted target
|
|
33
|
+
* @example "The Target Name"
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates the number of Occurrences on the Issue
|
|
38
|
+
* @format int64
|
|
39
|
+
* @example 10
|
|
40
|
+
*/
|
|
41
|
+
numOccurrences: number;
|
|
42
|
+
/**
|
|
43
|
+
* Harness Pipeline ID
|
|
44
|
+
* @example "example_pipeline"
|
|
45
|
+
*/
|
|
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;
|
|
52
|
+
/**
|
|
53
|
+
* Issue Status
|
|
54
|
+
* @example "Remediated"
|
|
55
|
+
*/
|
|
56
|
+
status: 'Active' | 'Exempted' | 'Remediated';
|
|
57
|
+
/**
|
|
58
|
+
* The email associated with the user id
|
|
59
|
+
* @example "user@gmail.com"
|
|
60
|
+
*/
|
|
61
|
+
userEmail?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The user id associated with the last scan run
|
|
64
|
+
* @example "Unde aut nihil."
|
|
65
|
+
*/
|
|
66
|
+
userId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The user name associated with the user id
|
|
69
|
+
* @example "firstname lastname"
|
|
70
|
+
*/
|
|
71
|
+
userName?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Variant name
|
|
74
|
+
* @example "Molestiae et velit."
|
|
75
|
+
*/
|
|
76
|
+
variantName: string;
|
|
77
|
+
}
|
|
@@ -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":"Expired","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":{"Accusantium aut doloremque.":"At ducimus nobis nobis qui voluptas maxime.","Expedita accusamus voluptate aperiam itaque velit modi.":"Architecto vitae."},"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 "Pending"
|
|
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 {"Et aliquid.":"Vel sit.","Laborum tempore beatae nihil quod et.":"Quae accusamus nihil velit culpa quas perspiciatis."}
|
|
70
70
|
*/
|
|
71
71
|
harnessAugmentation?: {
|
|
72
72
|
[key: string]: any;
|
|
@@ -111,12 +111,12 @@ export interface Issue {
|
|
|
111
111
|
origins?: string[];
|
|
112
112
|
/**
|
|
113
113
|
* List of issue overrides
|
|
114
|
-
* @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"}
|
|
114
|
+
* @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"}]
|
|
115
115
|
*/
|
|
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"}
|
|
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"}]
|
|
120
120
|
*/
|
|
121
121
|
overridesAtScan?: OverrideResult[];
|
|
122
122
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { OverrideResult } from '../schemas/OverrideResult';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"
|
|
4
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Approved","details":{"package":"json-schema","version":"v0.2.3"},"epssLastModified":"2025-05-01","epssPercentile":0.15,"epssScore":0.035,"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","harnessAugmentation":{"Consequatur aut voluptas optio.":"Maxime consequuntur voluptates aut necessitatibus dolorum animi.","Voluptates ducimus odio libero in vel aut.":"Dolorum impedit labore nostrum nam quis."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","lastDetected":1634836529,"numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"occurrencesPagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"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"}],"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","targets":[{"targetId":"target2222222222222222","targetName":"Target 1"}],"title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
|
|
5
5
|
*/
|
|
6
6
|
export interface IssueForExemptionResult {
|
|
7
7
|
/**
|
|
@@ -22,7 +22,7 @@ export interface IssueForExemptionResult {
|
|
|
22
22
|
created: number;
|
|
23
23
|
/**
|
|
24
24
|
* Current status of the Exemption
|
|
25
|
-
* @example "
|
|
25
|
+
* @example "Pending"
|
|
26
26
|
*/
|
|
27
27
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
28
28
|
/**
|
|
@@ -61,12 +61,12 @@ export interface IssueForExemptionResult {
|
|
|
61
61
|
exemptionId?: string;
|
|
62
62
|
/**
|
|
63
63
|
* Exemption's status at the Security Scan created time
|
|
64
|
-
* @example "
|
|
64
|
+
* @example "Pending"
|
|
65
65
|
*/
|
|
66
66
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
67
67
|
/**
|
|
68
68
|
* Harness Augmentation details
|
|
69
|
-
* @example {"
|
|
69
|
+
* @example {"Eos natus velit fugit blanditiis.":"Repellat sint voluptas consectetur nisi illum."}
|
|
70
70
|
*/
|
|
71
71
|
harnessAugmentation?: {
|
|
72
72
|
[key: string]: any;
|
|
@@ -118,7 +118,7 @@ export interface IssueForExemptionResult {
|
|
|
118
118
|
origins?: string[];
|
|
119
119
|
/**
|
|
120
120
|
* List of issue overrides
|
|
121
|
-
* @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"}
|
|
121
|
+
* @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"}]
|
|
122
122
|
*/
|
|
123
123
|
overrides?: OverrideResult[];
|
|
124
124
|
/**
|