Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
fix: ci and makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Csati <[email protected]>
  • Loading branch information
csatib02 committed Jul 23, 2024
1 parent d855921 commit 9a6bc58
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ gen: gen-api-js gen-api-go gen-bicep gen-helm-docs ## Generating all code, manif
.PHONY: gen-api-js
gen-api-js: ## Generating Javascript library for API specification
$(info Generating API for UI code ...)
npx @openapitools/openapi-generator-cli generate -i ./api/openapi.yaml -g typescript-axios -o ./ui/src/api/generated --openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=VMClarity
@(cd ui && npx @openapitools/openapi-generator-cli generate -i ../api/openapi.yaml -g typescript-axios -o ./src/api/generated --openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=VMClarity)

.PHONY: gen-api-go
gen-api-go: gen-apiserver-api gen-uibackend-api gen-plugin-sdk ## Generating Go API code
Expand Down
1 change: 0 additions & 1 deletion ui/src/api/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.gitignore
.npmignore
.openapi-generator-ignore
api.ts
base.ts
common.ts
Expand Down
105 changes: 77 additions & 28 deletions ui/src/api/generated/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,12 @@ export interface Finding {
* @memberof Finding
*/
'findingInfo'?: FindingInfo;
/**
*
* @type {FindingSummary}
* @memberof Finding
*/
'summary'?: FindingSummary;
}
/**
*
Expand Down Expand Up @@ -1869,6 +1875,31 @@ export interface FindingRelationship {
* @memberof FindingRelationship
*/
'findingInfo'?: FindingInfo;
/**
*
* @type {FindingSummary}
* @memberof FindingRelationship
*/
'summary'?: FindingSummary;
}
/**
*
* @export
* @interface FindingSummary
*/
export interface FindingSummary {
/**
*
* @type {string}
* @memberof FindingSummary
*/
'updatedAt'?: string;
/**
*
* @type {VulnerabilitySeveritySummary}
* @memberof FindingSummary
*/
'totalVulnerabilities'?: VulnerabilitySeveritySummary;
}
/**
*
Expand Down Expand Up @@ -2500,6 +2531,24 @@ export interface PluginsConfig {
* @memberof PluginsConfig
*/
'enabled'?: boolean;
/**
*
* @type {boolean}
* @memberof PluginsConfig
*/
'binary_mode'?: boolean;
/**
*
* @type {string}
* @memberof PluginsConfig
*/
'binary_artifacts_path'?: string;
/**
*
* @type {boolean}
* @memberof PluginsConfig
*/
'binary_artifacts_clean'?: boolean;
/**
*
* @type {Array<string>}
Expand Down Expand Up @@ -3532,10 +3581,10 @@ export interface ScanFindingsSummary {
'totalInfoFinder'?: number;
/**
*
* @type {VulnerabilityScanSummary}
* @type {VulnerabilitySeveritySummary}
* @memberof ScanFindingsSummary
*/
'totalVulnerabilities'?: VulnerabilityScanSummary;
'totalVulnerabilities'?: VulnerabilitySeveritySummary;
/**
*
* @type {number}
Expand Down Expand Up @@ -3739,10 +3788,10 @@ export interface ScanSummary {
'totalInfoFinder'?: number;
/**
*
* @type {VulnerabilityScanSummary}
* @type {VulnerabilitySeveritySummary}
* @memberof ScanSummary
*/
'totalVulnerabilities'?: VulnerabilityScanSummary;
'totalVulnerabilities'?: VulnerabilitySeveritySummary;
/**
*
* @type {number}
Expand Down Expand Up @@ -4557,60 +4606,60 @@ export interface VulnerabilityScan {
*/
'vulnerabilities'?: Array<Vulnerability> | null;
}
/**
*
* @export
* @enum {string}
*/

export const VulnerabilitySeverity = {
Critical: 'CRITICAL',
High: 'HIGH',
Medium: 'MEDIUM',
Low: 'LOW',
Negligible: 'NEGLIGIBLE'
} as const;

export type VulnerabilitySeverity = typeof VulnerabilitySeverity[keyof typeof VulnerabilitySeverity];


/**
* A summary of number of vulnerabilities found per severity.
* @export
* @interface VulnerabilityScanSummary
* @interface VulnerabilitySeveritySummary
*/
export interface VulnerabilityScanSummary {
export interface VulnerabilitySeveritySummary {
/**
*
* @type {number}
* @memberof VulnerabilityScanSummary
* @memberof VulnerabilitySeveritySummary
*/
'totalCriticalVulnerabilities'?: number;
/**
*
* @type {number}
* @memberof VulnerabilityScanSummary
* @memberof VulnerabilitySeveritySummary
*/
'totalHighVulnerabilities'?: number;
/**
*
* @type {number}
* @memberof VulnerabilityScanSummary
* @memberof VulnerabilitySeveritySummary
*/
'totalMediumVulnerabilities'?: number;
/**
*
* @type {number}
* @memberof VulnerabilityScanSummary
* @memberof VulnerabilitySeveritySummary
*/
'totalLowVulnerabilities'?: number;
/**
*
* @type {number}
* @memberof VulnerabilityScanSummary
* @memberof VulnerabilitySeveritySummary
*/
'totalNegligibleVulnerabilities'?: number;
}
/**
*
* @export
* @enum {string}
*/

export const VulnerabilitySeverity = {
Critical: 'CRITICAL',
High: 'HIGH',
Medium: 'MEDIUM',
Low: 'LOW',
Negligible: 'NEGLIGIBLE'
} as const;

export type VulnerabilitySeverity = typeof VulnerabilitySeverity[keyof typeof VulnerabilitySeverity];



/**
* VMClarityApi - axios parameter creator
Expand Down

0 comments on commit 9a6bc58

Please sign in to comment.