@harnessio/react-sto-core-client 0.3.9 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sto-core/src/services/hooks/useExemptionsApproveExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsCreateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsFindExemptionByIdQuery.d.ts +1 -2
- package/dist/sto-core/src/services/hooks/useExemptionsListExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsPromoteExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useExemptionsUpdateExemptionMutation.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/useFrontendExpiringExemptionsQuery.d.ts +1 -1
- package/dist/sto-core/src/services/hooks/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/usePullRequestsCreatePullRequestMutation.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/usePullRequestsGetPullRequestCorrelationQuery.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/usePullRequestsUpdatePullRequestMutation.d.ts +2 -2
- package/dist/sto-core/src/services/hooks/useScansScanIssueOccurrencesQuery.d.ts +4 -4
- package/dist/sto-core/src/services/hooks/useScansScanIssueQuery.d.ts +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/schemas/AllIssueSummary.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesDetailsResult.d.ts +6 -6
- package/dist/sto-core/src/services/schemas/AllIssuesFiltersResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/AllIssuesListResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AllIssuesOccurrenceDetailsResult.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/AugmentRemediationMetadata.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/AugmentRemediationResult.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/AugmentRemediationWarning.d.ts +3 -3
- package/dist/sto-core/src/services/schemas/BaselineExecutions.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/Exemption.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/ExemptionImpactedTargetsResult.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/ExemptionsListExemptionsResponseBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/FrontendExemption.d.ts +1 -1
- package/dist/sto-core/src/services/schemas/GitMetadata.d.ts +5 -6
- package/dist/sto-core/src/services/schemas/HistoricalCounts.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/HistoricalIssueCounts.d.ts +0 -1
- package/dist/sto-core/src/services/schemas/ImpactedTarget.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/Issue.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/IssueForExemptionResult.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/IssueInScan.d.ts +4 -4
- package/dist/sto-core/src/services/schemas/IssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/IssueSummary.d.ts +9 -9
- package/dist/sto-core/src/services/schemas/IssuesAugmentRemediationRequestBody.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PaginatedIssueSummaries.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityCounts.d.ts +7 -7
- package/dist/sto-core/src/services/schemas/PipelineSecurityIssuesResult.d.ts +2 -2
- package/dist/sto-core/src/services/schemas/PipelineSecurityStepsResult.d.ts +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/TestTargetResult.d.ts +2 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import type { IssueSummary } from '../schemas/IssueSummary';
|
|
|
2
2
|
import type { PendingChanges } from '../schemas/PendingChanges';
|
|
3
3
|
/**
|
|
4
4
|
* Exemption summary for frontend use
|
|
5
|
-
* @example {"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueSummary":{"currentStatus":"
|
|
5
|
+
* @example {"approverId":"user111111111111111111","canApproveFor":["ACCOUNT","ORG","PROJECT","PIPELINE"],"canCancel":true,"canCreate":true,"canReApprove":true,"canReject":true,"created":1651578240,"expiration":1651578240,"id":"abcdef1234567890ghijkl","isDeleted":true,"issueSummary":{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},"lastModified":1651578240,"link":"Upstream bug","numOccurrences":10,"orgId":"STO","pendingChanges":{"durationDays":7},"pipelineId":"pipeline_1","projectId":"STO","reason":"Upstream bug","requesterId":"user111111111111111111","scope":"PROJECT","status":"Approved","targetId":"target2222222222222222","totalOccurrences":10,"type":"Other"}
|
|
6
6
|
*/
|
|
7
7
|
export interface FrontendExemption {
|
|
8
8
|
/**
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Git Metadata associated with the Scan
|
|
3
|
-
* @example {"detectedName":"
|
|
3
|
+
* @example {"detectedName":"Est sequi.","detectedVariant":"Reprehenderit deserunt.","droneCorrelated":false,"provider":"Rerum ea.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Laboriosam quas vero.","Atque aut est et dolores consequatur.","Beatae quas inventore."],"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 "Voluptates minima adipisci aspernatur inventore."
|
|
9
9
|
*/
|
|
10
10
|
detectedName?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Detected Variant
|
|
13
|
-
* @example "
|
|
13
|
+
* @example "Ab omnis sed aspernatur."
|
|
14
14
|
*/
|
|
15
15
|
detectedVariant?: string;
|
|
16
16
|
/**
|
|
17
17
|
* Drone Correlated
|
|
18
|
-
* @example true
|
|
19
18
|
*/
|
|
20
19
|
droneCorrelated?: boolean;
|
|
21
20
|
/**
|
|
22
21
|
* Git Provider
|
|
23
|
-
* @example "
|
|
22
|
+
* @example "Amet unde ut totam beatae."
|
|
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 ["Est ad possimus.","Et ut."]
|
|
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}}]
|
|
9
9
|
*/
|
|
10
10
|
counts: HistoricalIssueCounts[];
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"
|
|
2
|
+
* @example {"exemptionId":"abcdef1234567890ghijkl","exemptionStatus":"Pariatur rerum.","id":"target1111111111111111","lastDetected":1634836529,"name":"The Target Name","numOccurrences":10,"userId":"Aut nulla possimus ipsa et porro.","variantName":"Dicta rerum."}
|
|
3
3
|
*/
|
|
4
4
|
export interface ImpactedTarget {
|
|
5
5
|
/**
|
|
@@ -9,7 +9,7 @@ export interface ImpactedTarget {
|
|
|
9
9
|
exemptionId?: string;
|
|
10
10
|
/**
|
|
11
11
|
* Exemption Status
|
|
12
|
-
* @example "
|
|
12
|
+
* @example "Aut eum nostrum possimus."
|
|
13
13
|
*/
|
|
14
14
|
exemptionStatus?: string;
|
|
15
15
|
/**
|
|
@@ -36,12 +36,12 @@ export interface ImpactedTarget {
|
|
|
36
36
|
numOccurrences: number;
|
|
37
37
|
/**
|
|
38
38
|
* The user id associated with the last scan run
|
|
39
|
-
* @example "
|
|
39
|
+
* @example "Debitis quam dolores ad voluptatem optio sint."
|
|
40
40
|
*/
|
|
41
41
|
userId?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Variant name
|
|
44
|
-
* @example "
|
|
44
|
+
* @example "Et facere et."
|
|
45
45
|
*/
|
|
46
46
|
variantName: string;
|
|
47
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Information about a Security Issue
|
|
3
|
-
* @example {"baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"
|
|
3
|
+
* @example {"baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Expired","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Approved","harnessAugmentation":{"Autem reiciendis reiciendis voluptatem.":"Aut omnis quo delectus.","Velit velit omnis et et voluptatem.":"Accusamus qui."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}
|
|
4
4
|
*/
|
|
5
5
|
export interface Issue {
|
|
6
6
|
/**
|
|
@@ -16,7 +16,7 @@ export interface Issue {
|
|
|
16
16
|
created: number;
|
|
17
17
|
/**
|
|
18
18
|
* Current status of the Exemption
|
|
19
|
-
* @example "
|
|
19
|
+
* @example "Expired"
|
|
20
20
|
*/
|
|
21
21
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
22
22
|
/**
|
|
@@ -38,12 +38,12 @@ export interface Issue {
|
|
|
38
38
|
exemptionId?: string;
|
|
39
39
|
/**
|
|
40
40
|
* Exemption's status at the Security Scan created time
|
|
41
|
-
* @example "
|
|
41
|
+
* @example "Approved"
|
|
42
42
|
*/
|
|
43
43
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
44
44
|
/**
|
|
45
45
|
* Harness Augmentation details
|
|
46
|
-
* @example {"
|
|
46
|
+
* @example {"Animi laborum praesentium ullam eos expedita.":"Aut consectetur qui voluptatem quisquam veritatis ipsum.","Est omnis ea accusantium voluptas facere.":"Tenetur et repudiandae quia.","Nobis minima omnis eum.":"Et qui eos rem sit quas iure."}
|
|
47
47
|
*/
|
|
48
48
|
harnessAugmentation?: {
|
|
49
49
|
[key: string]: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Approved","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"
|
|
3
|
+
* @example {"baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Approved","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Pending","harnessAugmentation":{"Dolor qui velit ea ab.":"Facilis accusantium blanditiis praesentium sequi eaque cupiditate.","Est corrupti et occaecati nemo iusto minus.":"Eos iste consequatur occaecati.","Ut soluta nam provident laborum veniam est.":"Temporibus quis dolor est."},"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},"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","targets":[{"targetId":"target2222222222222222","targetName":"Target 1"}],"title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}
|
|
4
4
|
*/
|
|
5
5
|
export interface IssueForExemptionResult {
|
|
6
6
|
/**
|
|
@@ -16,7 +16,7 @@ export interface IssueForExemptionResult {
|
|
|
16
16
|
created: number;
|
|
17
17
|
/**
|
|
18
18
|
* Current status of the Exemption
|
|
19
|
-
* @example "
|
|
19
|
+
* @example "Approved"
|
|
20
20
|
*/
|
|
21
21
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
22
22
|
/**
|
|
@@ -38,12 +38,12 @@ export interface IssueForExemptionResult {
|
|
|
38
38
|
exemptionId?: string;
|
|
39
39
|
/**
|
|
40
40
|
* Exemption's status at the Security Scan created time
|
|
41
|
-
* @example "
|
|
41
|
+
* @example "Approved"
|
|
42
42
|
*/
|
|
43
43
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
44
44
|
/**
|
|
45
45
|
* Harness Augmentation details
|
|
46
|
-
* @example {"
|
|
46
|
+
* @example {"Corporis reiciendis quas quidem id.":"Voluptas expedita et quis aliquid.","Ducimus magni aut quia accusantium ullam sunt.":"Incidunt voluptas consequatur id quas.","Quia adipisci perferendis et voluptate.":"Corrupti nihil ipsa veritatis quidem ratione tempore."}
|
|
47
47
|
*/
|
|
48
48
|
harnessAugmentation?: {
|
|
49
49
|
[key: string]: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GitMetadata } from '../schemas/GitMetadata';
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Rejected","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"
|
|
4
|
+
* @example {"baseImageName":"baseImageName","baselineVariantId":"abcdef1234567890ghijkl","created":1651578240,"currentStatus":"Rejected","details":{"package":"json-schema","version":"v0.2.3"},"exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","gitMetadata":{"detectedName":"Et earum.","detectedVariant":"Sit fugiat quia.","droneCorrelated":true,"provider":"Vero est ipsum.","pullRequestNumber":11,"repositoryHttp":"https://github.com/harness/drone-cli.git","repositoryPath":["Fuga aspernatur voluptas vero et.","Fugit est consequatur."],"repositorySsh":"git@github.com:harness/drone-cli.git","sourceBranch":"feat/shiny-object","targetBranch":"develop","workspace":"/harness"},"harnessAugmentation":{"Adipisci ut.":"Vel hic provident.","Aut quis doloribus facere.":"Nihil similique magni sit velit.","Rerum quos.":"Expedita repellendus esse saepe soluta blanditiis."},"id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNonExemptedOccurrences":10,"numOccurrences":10,"occurrenceId":12345,"occurrences":[{"line":"42"},{"line":"666"}],"occurrencesPagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"origins":["app","base"],"primaryOccurrenceId":12345,"productId":"product1234567890abcde","severity":8.5,"severityCode":"High","status":"Remediated","subproduct":"product","targetId":"abcdef1234567890ghijkl","targetName":"abcdef1234567890ghijkl","targetType":"repository","targetVariantId":"abcdef1234567890ghijkl","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}
|
|
5
5
|
*/
|
|
6
6
|
export interface IssueInScan {
|
|
7
7
|
/**
|
|
@@ -22,7 +22,7 @@ export interface IssueInScan {
|
|
|
22
22
|
created: number;
|
|
23
23
|
/**
|
|
24
24
|
* Current status of the Exemption
|
|
25
|
-
* @example "
|
|
25
|
+
* @example "Approved"
|
|
26
26
|
*/
|
|
27
27
|
currentStatus?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
28
28
|
/**
|
|
@@ -44,13 +44,13 @@ export interface IssueInScan {
|
|
|
44
44
|
exemptionId?: string;
|
|
45
45
|
/**
|
|
46
46
|
* Exemption's status at the Security Scan created time
|
|
47
|
-
* @example "
|
|
47
|
+
* @example "Pending"
|
|
48
48
|
*/
|
|
49
49
|
exemptionStatusAtScan?: 'Approved' | 'Expired' | 'Pending' | 'Rejected';
|
|
50
50
|
gitMetadata?: GitMetadata;
|
|
51
51
|
/**
|
|
52
52
|
* Harness Augmentation details
|
|
53
|
-
* @example {"
|
|
53
|
+
* @example {"Fugit et aut modi culpa.":"Et error provident."}
|
|
54
54
|
*/
|
|
55
55
|
harnessAugmentation?: {
|
|
56
56
|
[key: string]: any;
|
|
@@ -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":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}]}
|
|
5
5
|
*/
|
|
6
6
|
export interface IssueSummaries {
|
|
7
7
|
/**
|
|
8
8
|
* Short summary of an Issue
|
|
9
|
-
* @example [{"currentStatus":"
|
|
9
|
+
* @example [{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}]
|
|
10
10
|
*/
|
|
11
11
|
issues: IssueSummary[];
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Short summary of an Issue
|
|
3
|
-
* @example {"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":
|
|
3
|
+
* @example {"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Expired","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":7293533708134938000,"numOccurrences":7596871011815837000,"numRemediatedOccurrences":612000219206768500,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}
|
|
4
4
|
*/
|
|
5
5
|
export interface IssueSummary {
|
|
6
6
|
/**
|
|
@@ -35,29 +35,29 @@ export interface IssueSummary {
|
|
|
35
35
|
key: string;
|
|
36
36
|
/**
|
|
37
37
|
* @format int64
|
|
38
|
-
* @example
|
|
38
|
+
* @example 7607197514219314000
|
|
39
39
|
*/
|
|
40
40
|
numNewOccurrences?: number;
|
|
41
41
|
/**
|
|
42
42
|
* @format int64
|
|
43
|
-
* @example
|
|
43
|
+
* @example 6085126860989000000
|
|
44
44
|
*/
|
|
45
45
|
numOccurrences?: number;
|
|
46
46
|
/**
|
|
47
47
|
* @format int64
|
|
48
|
-
* @example
|
|
48
|
+
* @example 8667845606241881000
|
|
49
49
|
*/
|
|
50
50
|
numRemediatedOccurrences?: number;
|
|
51
|
-
/**
|
|
52
|
-
* The origin of the issue, either 'app' or 'base'
|
|
53
|
-
* @example "base"
|
|
54
|
-
*/
|
|
55
|
-
origin?: string;
|
|
56
51
|
/**
|
|
57
52
|
* The status of the origin, either 'approved' or 'unapproved'
|
|
58
53
|
* @example "approved"
|
|
59
54
|
*/
|
|
60
55
|
originStatus?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The origin of the issue, either 'app' or 'base'
|
|
58
|
+
* @example ["app","base"]
|
|
59
|
+
*/
|
|
60
|
+
origins?: string[];
|
|
61
61
|
/**
|
|
62
62
|
* Indicates the issue has been overridden
|
|
63
63
|
* @example {"originalSeverity":"medium","reason":"snyk"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"connectorId":"
|
|
2
|
+
* @example {"connectorId":"Cupiditate modi.","occurrenceId":12345,"referenceId":"CWE-123","scanId":"abcdefghijkl1234567890","userSnippet":"func example() int {\n return 0\n}"}
|
|
3
3
|
*/
|
|
4
4
|
export interface IssuesAugmentRemediationRequestBody {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Iste quos."
|
|
7
7
|
*/
|
|
8
8
|
connectorId?: string;
|
|
9
9
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IssueSummary } from '../schemas/IssueSummary';
|
|
2
2
|
import type { Pagination } from '../schemas/Pagination';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"issues":[{"currentStatus":"
|
|
4
|
+
* @example {"issues":[{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}
|
|
5
5
|
*/
|
|
6
6
|
export interface PaginatedIssueSummaries {
|
|
7
7
|
/**
|
|
8
8
|
* Diff-ed Issues related to this scan step, resulting from a diff between a scan and its target's latest baseline scan (previous scan if no baseline)
|
|
9
|
-
* @example [{"currentStatus":"
|
|
9
|
+
* @example [{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}]
|
|
10
10
|
*/
|
|
11
11
|
issues: IssueSummary[];
|
|
12
12
|
pagination: Pagination;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FrontendIssueCounts } from '../schemas/FrontendIssueCounts';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"existing":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"new":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediated":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"totalActive":
|
|
3
|
+
* @example {"existing":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"new":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediated":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"totalActive":6662647114598511000,"totalExempted":5791979623976046000,"totalPartiallyExempted":707951191544887600,"totalPending":5877484981795204000,"totalRejected":7222309139594212000,"totalRemediated":7026416524165377000}
|
|
4
4
|
*/
|
|
5
5
|
export interface PipelineSecurityCounts {
|
|
6
6
|
existing: FrontendIssueCounts;
|
|
@@ -8,32 +8,32 @@ export interface PipelineSecurityCounts {
|
|
|
8
8
|
remediated: FrontendIssueCounts;
|
|
9
9
|
/**
|
|
10
10
|
* @format int64
|
|
11
|
-
* @example
|
|
11
|
+
* @example 7252413801969914000
|
|
12
12
|
*/
|
|
13
13
|
totalActive: number;
|
|
14
14
|
/**
|
|
15
15
|
* @format int64
|
|
16
|
-
* @example
|
|
16
|
+
* @example 733198269069877400
|
|
17
17
|
*/
|
|
18
18
|
totalExempted?: number;
|
|
19
19
|
/**
|
|
20
20
|
* @format int64
|
|
21
|
-
* @example
|
|
21
|
+
* @example 1809116079800142600
|
|
22
22
|
*/
|
|
23
23
|
totalPartiallyExempted?: number;
|
|
24
24
|
/**
|
|
25
25
|
* @format int64
|
|
26
|
-
* @example
|
|
26
|
+
* @example 5561715922786098000
|
|
27
27
|
*/
|
|
28
28
|
totalPending?: number;
|
|
29
29
|
/**
|
|
30
30
|
* @format int64
|
|
31
|
-
* @example
|
|
31
|
+
* @example 5844228238430216000
|
|
32
32
|
*/
|
|
33
33
|
totalRejected?: number;
|
|
34
34
|
/**
|
|
35
35
|
* @format int64
|
|
36
|
-
* @example
|
|
36
|
+
* @example 4804991779445100000
|
|
37
37
|
*/
|
|
38
38
|
totalRemediated?: number;
|
|
39
39
|
}
|
|
@@ -3,13 +3,13 @@ import type { PaginatedIssueSummaries } from '../schemas/PaginatedIssueSummaries
|
|
|
3
3
|
import type { StageStepId } from '../schemas/StageStepId';
|
|
4
4
|
/**
|
|
5
5
|
* Data needed by the PipelineSecurityView
|
|
6
|
-
* @example {"counts":{"existing":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"new":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediated":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"totalActive":
|
|
6
|
+
* @example {"counts":{"existing":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"new":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"remediated":{"active":150,"critical":1,"high":3,"ignored":1,"info":11,"low":39,"medium":17},"totalActive":5139898542685508000,"totalExempted":994847810101533700,"totalPartiallyExempted":2069489949273739000,"totalPending":29249517116362028,"totalRejected":7550549389047021000,"totalRemediated":4387963668533744000},"existing":{"issues":[{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}},"matchingSteps":[{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}],"new":{"issues":[{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"},{"currentStatus":"Rejected","exemptionCoverage":"Partially Exempted","exemptionId":"abcdef1234567890ghijkl","exemptionStatusAtScan":"Rejected","id":"abcdef1234567890ghijkl","key":"json-schema@0.2.3","numNewOccurrences":1994727814474261200,"numOccurrences":2198470381101129700,"numRemediatedOccurrences":4859032376615438000,"originStatus":"approved","origins":["app","base"],"override":{"originalSeverity":"medium","reason":"snyk"},"scanId":"scan111111111111111111","severity":8.5,"severityCode":"High","status":"Remediated","targetVariantName":"nodegoat:master","title":"json-schema@0.2.3 is vulnerable to Prototype Pollution","type":"SAST"}],"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12}}}
|
|
7
7
|
*/
|
|
8
8
|
export interface PipelineSecurityIssuesResult {
|
|
9
9
|
counts: PipelineSecurityCounts;
|
|
10
10
|
existing: PaginatedIssueSummaries;
|
|
11
11
|
/**
|
|
12
|
-
* @example [{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}
|
|
12
|
+
* @example [{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"},{"stageId":"stage_id","stepId":"step_id"}]
|
|
13
13
|
*/
|
|
14
14
|
matchingSteps: StageStepId[];
|
|
15
15
|
new: PaginatedIssueSummaries;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StepInfo } from '../schemas/StepInfo';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"steps":[{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}
|
|
3
|
+
* @example {"steps":[{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"},{"baselineVariant":"branch: main","scanId":"scan111111111111111111","scanTool":"owasp","stageId":"stage_id","stepId":"step_id","subproduct":"product","targetId":"target1111111111111111","targetName":"The Target","targetType":"repository","targetVariant":"branch: feature"}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface PipelineSecurityStepsResult {
|
|
6
6
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"pullRequestNumber":
|
|
2
|
+
* @example {"pullRequestNumber":8764529224143323000,"pullRequestUrl":"Quasi exercitationem.","sourceBranch":"feat/shiny-object"}
|
|
3
3
|
*/
|
|
4
4
|
export interface PullRequestResult {
|
|
5
5
|
/**
|
|
6
6
|
* The number of the Pull Request
|
|
7
7
|
* @format int64
|
|
8
|
-
* @example
|
|
8
|
+
* @example 5411015633234553000
|
|
9
9
|
*/
|
|
10
10
|
pullRequestNumber: number;
|
|
11
11
|
/**
|
|
12
12
|
* The URL of the Pull Request
|
|
13
|
-
* @example "
|
|
13
|
+
* @example "Illum molestiae rerum in."
|
|
14
14
|
*/
|
|
15
15
|
pullRequestUrl: string;
|
|
16
16
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"id":"
|
|
2
|
+
* @example {"id":"Voluptatibus quis aut dolorem aut velit.","type":"Saepe voluptatem sit ipsum rerum itaque."}
|
|
3
3
|
*/
|
|
4
4
|
export interface RefIds {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Est tenetur aut repellendus."
|
|
7
7
|
*/
|
|
8
8
|
id?: string;
|
|
9
9
|
/**
|
|
10
|
-
* @example "
|
|
10
|
+
* @example "Facilis perferendis."
|
|
11
11
|
*/
|
|
12
12
|
type?: string;
|
|
13
13
|
}
|