@harnessio/react-sto-core-client 0.3.22 → 0.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sto-core/src/services/hooks/useExemptionsApproveExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsCreateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsFindExemptionByIdQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsListExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesListQuery.d.ts +4 -0
- package/dist/sto-core/src/services/hooks/useFrontendAllIssuesOccurrenceDetailsQuery.d.ts +5 -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/useProductsListProductsQuery.d.ts +1 -8
- 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 +6 -6
- 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 +7 -7
- package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AugmentRemediationResult.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/AugmentRemediationWarning.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/BaselineExecutions.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Exemption.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExemptionImpactedTargetsResult.d.ts +2 -2
- 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/FrontendExemption.d.ts +1 -1
- 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/HistoricalIssueCounts.d.ts +2 -1
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/Issue.d.ts +22 -5
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +23 -6
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +28 -6
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- 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/PaginatedIssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +33 -8
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ProductsListProductsResponseBody.d.ts +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 +2 -2
- package/dist/sto-core/src/services/schemas/TestTargetResult.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PendingChanges } from '../schemas/PendingChanges';
|
|
2
2
|
/**
|
|
3
3
|
* Information about an Exemption
|
|
4
|
-
* @example {"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"
|
|
4
|
+
* @example {"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Pending","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Pending","targetId":"abcdef1234567890ghijkl","type":"Other"}
|
|
5
5
|
*/
|
|
6
6
|
export interface Exemption {
|
|
7
7
|
/**
|
|
@@ -148,7 +148,7 @@ export interface Exemption {
|
|
|
148
148
|
/**
|
|
149
149
|
* Approval status of Exemption
|
|
150
150
|
* @default "Pending"
|
|
151
|
-
* @example "
|
|
151
|
+
* @example "Rejected"
|
|
152
152
|
*/
|
|
153
153
|
status: 'Approved' | 'Canceled' | 'Expired' | 'Pending' | 'Rejected';
|
|
154
154
|
/**
|
|
@@ -2,12 +2,12 @@ import type { FrontendExemptionTargets } from '../schemas/FrontendExemptionTarge
|
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
4
|
* List of targets for an exemption
|
|
5
|
-
* @example {"impactedTargets":[{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
5
|
+
* @example {"impactedTargets":[{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
6
6
|
*/
|
|
7
7
|
export interface ExemptionImpactedTargetsResult {
|
|
8
8
|
/**
|
|
9
9
|
* Impacted target details
|
|
10
|
-
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}]
|
|
10
|
+
* @example [{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"},{"executionId":"abcdef1234567890ghijkl","hash":"d1998db4b4651a4b9be9ecf320a2dfb8b4710e35","lastScanned":1634836529,"name":"NodeGoat","numExemptedOccurrences":150,"numOccurrences":150,"orgId":"example_org","parameters":{"branch":"main"},"pipelineId":"pipeline_1","projectId":"example_project","scanId":"abcdef1234567890ghijkl","targetId":"abcdef1234567890ghijkl","type":"repository"}]
|
|
11
11
|
*/
|
|
12
12
|
impactedTargets: FrontendExemptionTargets[];
|
|
13
13
|
pagination: Pagination;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { Exemption } from '../schemas/Exemption';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"
|
|
4
|
+
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Approved","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Approved","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Approved","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"}]}
|
|
5
5
|
*/
|
|
6
6
|
export interface ExemptionsListExemptionsResponseBody {
|
|
7
7
|
pagination: Pagination;
|
|
8
8
|
/**
|
|
9
|
-
* @example [{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"
|
|
9
|
+
* @example [{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Approved","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"},{"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"comment":"This exemption was reviewed by the security team.","created":1651578240,"exemptionStatusAtScan":"Approved","expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueId":"abcdef1234567890ghijkl","lastModified":1651578240,"link":"https://example.com/ABC-1234","numOccurrences":10,"occurrences":[42,666],"orgId":"your_project","orgName":"Organization Name","pendingChanges":{"durationDays":7},"pipelineId":"your_pipeline","projectId":"your_project","projectName":"Project Name","reason":"Waiting on upstream bug fix","requesterId":"user111111111111111111","scanId":"abcdef1234567890ghijkl","scope":"PROJECT","search":"CWE-123,5","status":"Canceled","targetId":"abcdef1234567890ghijkl","type":"Other"}]
|
|
10
10
|
*/
|
|
11
11
|
results: Exemption[];
|
|
12
12
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"data":[["
|
|
2
|
+
* @example {"data":[["Impedit dolore.","Minima sed sunt.","Aut optio rerum distinctio consectetur molestiae laboriosam."],["Amet enim.","Ex iure architecto a."],["Accusamus repellendus amet.","Ut totam beatae.","Aliquam voluptas optio est nihil magni."]],"executionId":"Omnis sed.","filename":"Ipsa est ad possimus deserunt et ut.","headers":["Fugiat laboriosam dolores corrupti voluptatem dolor.","Ut doloremque deserunt debitis.","Minus asperiores facere aut voluptas nobis."],"totalRows":2852626654559817700}
|
|
3
3
|
*/
|
|
4
4
|
export interface ExportPipelineSecurityIssuesCsvResponseBody {
|
|
5
5
|
/**
|
|
6
6
|
* CSV data rows
|
|
7
|
-
* @example [["
|
|
7
|
+
* @example [["Minima labore fugiat quos temporibus.","Eaque suscipit."],["Et voluptate mollitia.","Quod illum occaecati cumque voluptas quam tempora.","Ducimus ullam nobis."],["Nostrum impedit autem molestiae aliquid minima et.","Corporis occaecati maiores dolor totam quasi.","Nostrum dolor ut aut qui itaque."],["Voluptates est et rerum.","Praesentium assumenda magni.","Dolores nihil ab."]]
|
|
8
8
|
*/
|
|
9
9
|
data: Array<string[]>;
|
|
10
10
|
/**
|
|
11
11
|
* Execution ID for this export
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Quasi quo non iste quos quia."
|
|
13
13
|
*/
|
|
14
14
|
executionId: string;
|
|
15
15
|
/**
|
|
16
16
|
* Suggested filename for download
|
|
17
|
-
* @example "
|
|
17
|
+
* @example "Omnis laudantium dolores et accusamus."
|
|
18
18
|
*/
|
|
19
19
|
filename: string;
|
|
20
20
|
/**
|
|
21
21
|
* CSV column headers
|
|
22
|
-
* @example ["
|
|
22
|
+
* @example ["Est omnis ea accusantium voluptas facere.","Tenetur et repudiandae quia.","Nobis minima omnis eum."]
|
|
23
23
|
*/
|
|
24
24
|
headers: string[];
|
|
25
25
|
/**
|
|
26
26
|
* Total number of data rows
|
|
27
27
|
* @format int64
|
|
28
|
-
* @example
|
|
28
|
+
* @example 1505306422482311200
|
|
29
29
|
*/
|
|
30
30
|
totalRows: number;
|
|
31
31
|
}
|
|
@@ -2,7 +2,7 @@ import type { IssueSummary } from '../schemas/IssueSummary';
|
|
|
2
2
|
import type { PendingChanges } from '../schemas/PendingChanges';
|
|
3
3
|
/**
|
|
4
4
|
* Exemption summary for frontend use
|
|
5
|
-
* @example {"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"
|
|
5
|
+
* @example {"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"isOccurrenceLevelExemption":true,"issueSummary":{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"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","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"}
|
|
6
6
|
*/
|
|
7
7
|
export interface FrontendExemption {
|
|
8
8
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Git Metadata associated with the Scan
|
|
3
|
-
* @example {"detectedName":"
|
|
3
|
+
* @example {"detectedName":"Aliquam in est possimus non.","detectedVariant":"Ea quia sunt assumenda sit similique.","droneCorrelated":true,"provider":"Aliquid quasi aut occaecati commodi.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Provident voluptatum sit et qui molestias amet.","Quasi ex quia minus quia soluta.","Et eveniet nostrum maiores."],"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 "Quo natus."
|
|
9
9
|
*/
|
|
10
10
|
detectedName?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Detected Variant
|
|
13
|
-
* @example "
|
|
13
|
+
* @example "Placeat excepturi est tempora quis eligendi."
|
|
14
14
|
*/
|
|
15
15
|
detectedVariant?: string;
|
|
16
16
|
/**
|
|
@@ -19,7 +19,7 @@ export interface GitMetadata {
|
|
|
19
19
|
droneCorrelated?: boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Git Provider
|
|
22
|
-
* @example "
|
|
22
|
+
* @example "Sunt eos quam cum porro."
|
|
23
23
|
*/
|
|
24
24
|
provider?: string;
|
|
25
25
|
/**
|
|
@@ -35,7 +35,7 @@ export interface GitMetadata {
|
|
|
35
35
|
repositoryHttp?: string;
|
|
36
36
|
/**
|
|
37
37
|
* Git Repository Path
|
|
38
|
-
* @example ["
|
|
38
|
+
* @example ["Cupiditate velit ipsum.","Eum est.","Dolor aut quia illo repellendus ducimus.","Assumenda veniam ea voluptatem tenetur nihil."]
|
|
39
39
|
*/
|
|
40
40
|
repositoryPath?: string[];
|
|
41
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}},{"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}}]
|
|
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":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 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":"
|
|
2
|
+
* @example {"executionId":"abcdef1234567890ghijkl","exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pending","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"pipelineId":"example_pipeline","userId":"Ut iusto explicabo molestiae.","variantName":"Ex maiores."}
|
|
3
3
|
*/
|
|
4
4
|
export interface ImpactedTarget {
|
|
5
5
|
/**
|
|
@@ -13,8 +13,8 @@ export interface ImpactedTarget {
|
|
|
13
13
|
*/
|
|
14
14
|
exemptionId?: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @example "
|
|
16
|
+
* Status of project scoped exemption for this issue
|
|
17
|
+
* @example "Pending"
|
|
18
18
|
*/
|
|
19
19
|
exemptionStatus?: string;
|
|
20
20
|
/**
|
|
@@ -24,7 +24,7 @@ export interface ImpactedTarget {
|
|
|
24
24
|
id: string;
|
|
25
25
|
/**
|
|
26
26
|
* Timestamp of the last detection of this issue
|
|
27
|
-
* @format
|
|
27
|
+
* @format int64
|
|
28
28
|
* @example 1634836529
|
|
29
29
|
*/
|
|
30
30
|
lastDetected: number;
|
|
@@ -46,12 +46,12 @@ export interface ImpactedTarget {
|
|
|
46
46
|
pipelineId: string;
|
|
47
47
|
/**
|
|
48
48
|
* The user id associated with the last scan run
|
|
49
|
-
* @example "
|
|
49
|
+
* @example "Aperiam assumenda et adipisci sit est est."
|
|
50
50
|
*/
|
|
51
51
|
userId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* Variant name
|
|
54
|
-
* @example "
|
|
54
|
+
* @example "Voluptas nulla ad illum tempore."
|
|
55
55
|
*/
|
|
56
56
|
variantName: string;
|
|
57
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Information about a Security Issue
|
|
3
|
-
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Rejected","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","harnessAugmentation":{"
|
|
3
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Rejected","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":{"Nisi deserunt.":"Qui consequuntur velit."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"originStatus":"approved","origins":["app","base"],"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
|
|
4
4
|
*/
|
|
5
5
|
export interface Issue {
|
|
6
6
|
/**
|
|
@@ -31,24 +31,41 @@ export interface Issue {
|
|
|
31
31
|
details: {
|
|
32
32
|
[key: string]: any;
|
|
33
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Last date the issue EPSS data was last modified
|
|
36
|
+
* @example "2025-05-01"
|
|
37
|
+
*/
|
|
38
|
+
epssLastModified?: string;
|
|
39
|
+
/**
|
|
40
|
+
* EPSS percentile of the issue CVE identifier
|
|
41
|
+
* @format double
|
|
42
|
+
* @example 0.15
|
|
43
|
+
*/
|
|
44
|
+
epssPercentile?: number;
|
|
45
|
+
/**
|
|
46
|
+
* EPSS score of the issue CVE identifier
|
|
47
|
+
* @format double
|
|
48
|
+
* @example 0.035
|
|
49
|
+
*/
|
|
50
|
+
epssScore?: number;
|
|
34
51
|
/**
|
|
35
52
|
* Indicates if the Security Issue was found to be Exempted, Partially Exempted.
|
|
36
53
|
* @example "Partially Exempted"
|
|
37
54
|
*/
|
|
38
55
|
exemptionCoverage?: string;
|
|
39
56
|
/**
|
|
40
|
-
* ID of
|
|
57
|
+
* ID of Security Test Exemption
|
|
41
58
|
* @example "abcdef1234567890ghijkl"
|
|
42
59
|
*/
|
|
43
60
|
exemptionId?: string;
|
|
44
61
|
/**
|
|
45
62
|
* Exemption's status at the Security Scan created time
|
|
46
|
-
* @example "
|
|
63
|
+
* @example "Rejected"
|
|
47
64
|
*/
|
|
48
65
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
49
66
|
/**
|
|
50
67
|
* Harness Augmentation details
|
|
51
|
-
* @example {"
|
|
68
|
+
* @example {"Enim sint labore modi at.":"Error eum occaecati eum aut quia.","Iure omnis et.":"Nemo quas eos nam molestiae quisquam modi."}
|
|
52
69
|
*/
|
|
53
70
|
harnessAugmentation?: {
|
|
54
71
|
[key: string]: any;
|
|
@@ -144,7 +161,7 @@ export interface Issue {
|
|
|
144
161
|
targetVariantName?: string;
|
|
145
162
|
/**
|
|
146
163
|
* Title of the Security Issue
|
|
147
|
-
* @example "
|
|
164
|
+
* @example "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"
|
|
148
165
|
*/
|
|
149
166
|
title: string;
|
|
150
167
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"
|
|
3
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Rejected","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":{"Quo laborum.":"Laboriosam aut."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"occurrencesPagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"originStatus":"approved","origins":["app","base"],"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","targets":[{"targetId":"target2222222222222222","targetName":"Target 1"}],"title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
|
|
4
4
|
*/
|
|
5
5
|
export interface IssueForExemptionResult {
|
|
6
6
|
/**
|
|
@@ -21,7 +21,7 @@ export interface IssueForExemptionResult {
|
|
|
21
21
|
created: number;
|
|
22
22
|
/**
|
|
23
23
|
* Current status of the Exemption
|
|
24
|
-
* @example "
|
|
24
|
+
* @example "Rejected"
|
|
25
25
|
*/
|
|
26
26
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
27
27
|
/**
|
|
@@ -31,24 +31,41 @@ export interface IssueForExemptionResult {
|
|
|
31
31
|
details: {
|
|
32
32
|
[key: string]: any;
|
|
33
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Last date the issue EPSS data was last modified
|
|
36
|
+
* @example "2025-05-01"
|
|
37
|
+
*/
|
|
38
|
+
epssLastModified?: string;
|
|
39
|
+
/**
|
|
40
|
+
* EPSS percentile of the issue CVE identifier
|
|
41
|
+
* @format double
|
|
42
|
+
* @example 0.15
|
|
43
|
+
*/
|
|
44
|
+
epssPercentile?: number;
|
|
45
|
+
/**
|
|
46
|
+
* EPSS score of the issue CVE identifier
|
|
47
|
+
* @format double
|
|
48
|
+
* @example 0.035
|
|
49
|
+
*/
|
|
50
|
+
epssScore?: number;
|
|
34
51
|
/**
|
|
35
52
|
* Indicates if the Security Issue was found to be Exempted, Partially Exempted.
|
|
36
53
|
* @example "Partially Exempted"
|
|
37
54
|
*/
|
|
38
55
|
exemptionCoverage?: string;
|
|
39
56
|
/**
|
|
40
|
-
* ID of
|
|
57
|
+
* ID of Security Test Exemption
|
|
41
58
|
* @example "abcdef1234567890ghijkl"
|
|
42
59
|
*/
|
|
43
60
|
exemptionId?: string;
|
|
44
61
|
/**
|
|
45
62
|
* Exemption's status at the Security Scan created time
|
|
46
|
-
* @example "
|
|
63
|
+
* @example "Rejected"
|
|
47
64
|
*/
|
|
48
65
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
49
66
|
/**
|
|
50
67
|
* Harness Augmentation details
|
|
51
|
-
* @example {"
|
|
68
|
+
* @example {"Minima hic.":"Incidunt nemo."}
|
|
52
69
|
*/
|
|
53
70
|
harnessAugmentation?: {
|
|
54
71
|
[key: string]: any;
|
|
@@ -151,7 +168,7 @@ export interface IssueForExemptionResult {
|
|
|
151
168
|
}>;
|
|
152
169
|
/**
|
|
153
170
|
* Title of the Security Issue
|
|
154
|
-
* @example "
|
|
171
|
+
* @example "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"
|
|
155
172
|
*/
|
|
156
173
|
title: string;
|
|
157
174
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GitMetadata } from '../schemas/GitMetadata';
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"baseImageName":"baseImageName","baseImageOrgId":"default","baseImageProjectId":"STO","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"
|
|
4
|
+
* @example {"baseImageName":"baseImageName","baseImageOrgId":"default","baseImageProjectId":"STO","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":"Expired","gitMetadata":{"detectedName":"Quaerat consequatur illum consequatur ad est porro.","detectedVariant":"Impedit voluptatum non fugiat quam delectus.","droneCorrelated":true,"provider":"Ex sapiente.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Qui sunt doloremque corporis facere aut quasi.","Aut perferendis minima.","Pariatur rem tenetur.","Quod vitae tenetur."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"},"harnessAugmentation":{"Beatae facere maiores maiores.":"Totam aut sit omnis.","Distinctio aut blanditiis debitis.":"Expedita expedita ad dolorem nesciunt.","Fugiat eum eligendi consequatur asperiores ipsam corporis.":"Excepturi temporibus vel odio neque."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","lastBaseImageScanAt":1651578240,"numNonExemptedOccurrences":10,"numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"occurrencesPagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"originStatus":"approved","origins":["app","base"],"pipelineId":"your_harness_pipeline","primaryOccurrenceId":12345,"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash","type":"SAST"}
|
|
5
5
|
*/
|
|
6
6
|
export interface IssueInScan {
|
|
7
7
|
/**
|
|
@@ -32,7 +32,7 @@ export interface IssueInScan {
|
|
|
32
32
|
created: number;
|
|
33
33
|
/**
|
|
34
34
|
* Current status of the Exemption
|
|
35
|
-
* @example "
|
|
35
|
+
* @example "Approved"
|
|
36
36
|
*/
|
|
37
37
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
38
38
|
/**
|
|
@@ -42,25 +42,42 @@ export interface IssueInScan {
|
|
|
42
42
|
details: {
|
|
43
43
|
[key: string]: any;
|
|
44
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Last date the issue EPSS data was last modified
|
|
47
|
+
* @example "2025-05-01"
|
|
48
|
+
*/
|
|
49
|
+
epssLastModified?: string;
|
|
50
|
+
/**
|
|
51
|
+
* EPSS percentile of the issue CVE identifier
|
|
52
|
+
* @format double
|
|
53
|
+
* @example 0.15
|
|
54
|
+
*/
|
|
55
|
+
epssPercentile?: number;
|
|
56
|
+
/**
|
|
57
|
+
* EPSS score of the issue CVE identifier
|
|
58
|
+
* @format double
|
|
59
|
+
* @example 0.035
|
|
60
|
+
*/
|
|
61
|
+
epssScore?: number;
|
|
45
62
|
/**
|
|
46
63
|
* Indicates if the Security Issue was found to be Exempted, Partially Exempted.
|
|
47
64
|
* @example "Partially Exempted"
|
|
48
65
|
*/
|
|
49
66
|
exemptionCoverage?: string;
|
|
50
67
|
/**
|
|
51
|
-
* ID of
|
|
68
|
+
* ID of Security Test Exemption
|
|
52
69
|
* @example "abcdef1234567890ghijkl"
|
|
53
70
|
*/
|
|
54
71
|
exemptionId?: string;
|
|
55
72
|
/**
|
|
56
73
|
* Exemption's status at the Security Scan created time
|
|
57
|
-
* @example "
|
|
74
|
+
* @example "Expired"
|
|
58
75
|
*/
|
|
59
76
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
60
77
|
gitMetadata?: GitMetadata;
|
|
61
78
|
/**
|
|
62
79
|
* Harness Augmentation details
|
|
63
|
-
* @example {"
|
|
80
|
+
* @example {"Assumenda quibusdam deleniti dolore ut repellat praesentium.":"Id quo."}
|
|
64
81
|
*/
|
|
65
82
|
harnessAugmentation?: {
|
|
66
83
|
[key: string]: any;
|
|
@@ -117,6 +134,11 @@ export interface IssueInScan {
|
|
|
117
134
|
* @example ["app","base"]
|
|
118
135
|
*/
|
|
119
136
|
origins?: string[];
|
|
137
|
+
/**
|
|
138
|
+
* Harness Organization ID
|
|
139
|
+
* @example "your_harness_pipeline"
|
|
140
|
+
*/
|
|
141
|
+
pipelineId?: string;
|
|
120
142
|
/**
|
|
121
143
|
* The primary occurrence's ID
|
|
122
144
|
* @format int64
|
|
@@ -176,7 +198,7 @@ export interface IssueInScan {
|
|
|
176
198
|
targetVariantName?: string;
|
|
177
199
|
/**
|
|
178
200
|
* Title of the Security Issue
|
|
179
|
-
* @example "
|
|
201
|
+
* @example "Semgrep Finding: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash"
|
|
180
202
|
*/
|
|
181
203
|
title: string;
|
|
182
204
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IssueSummary } from '../schemas/IssueSummary';
|
|
2
2
|
/**
|
|
3
3
|
* List of issue summaries
|
|
4
|
-
* @example {"issues":[{"currentStatus":"
|
|
4
|
+
* @example {"issues":[{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"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"},{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"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"},{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"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"},{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"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"}]}
|
|
5
5
|
*/
|
|
6
6
|
export interface IssueSummaries {
|
|
7
7
|
/**
|
|
8
8
|
* Short summary of an Issue
|
|
9
|
-
* @example [{"currentStatus":"
|
|
9
|
+
* @example [{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"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"},{"currentStatus":"Expired","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":3377424198788989400,"numOccurrences":1899859185254683600,"numRemediatedOccurrences":1967706377109304800,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"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"}]
|
|
10
10
|
*/
|
|
11
11
|
issues: IssueSummary[];
|
|
12
12
|
}
|