@@ -71,22 +76,22 @@
{{'CVE_ALLOWLIST.WARNING_SYS'|translate}}
+ class="label label-warning">{{'CVE_ALLOWLIST.WARNING_SYS'|translate}}
{{'CVE_ALLOWLIST.WARNING_PRO'|translate}}
+ class="label label-warning">{{'CVE_ALLOWLIST.WARNING_PRO'|translate}}
+ (click)="showAddModal=!showAddModal"
+ class="btn btn-link">{{'CVE_ALLOWLIST.ADD'|translate}}
+ (click)="addSystem()"
+ class="btn btn-link ml-1">{{'CVE_ALLOWLIST.ADD_SYSTEM'|translate}}
+ shape="window-close">
+ name="cveIds">
{{'CVE_ALLOWLIST.HELP'|translate}}
+ (click)="addToProjectAllowlist()"
+ class="btn btn-link">{{'CVE_ALLOWLIST.ADD'|translate}}
diff --git a/src/portal/src/app/base/project/project-config/project-policy-config/project-policy-config.component.ts b/src/portal/src/app/base/project/project-config/project-policy-config/project-policy-config.component.ts
index 2831c4dd9..85ef4db51 100644
--- a/src/portal/src/app/base/project/project-config/project-policy-config/project-policy-config.component.ts
+++ b/src/portal/src/app/base/project/project-config/project-policy-config/project-policy-config.component.ts
@@ -23,6 +23,7 @@ const TARGET_BLANK = "_blank";
export class ProjectPolicy {
Public: boolean;
ContentTrust: boolean;
+ ContentTrustCosign: boolean;
PreventVulImg: boolean;
PreventVulImgSeverity: string;
ScanImgOnPush: boolean;
@@ -30,6 +31,7 @@ export class ProjectPolicy {
constructor() {
this.Public = false;
this.ContentTrust = false;
+ this.ContentTrustCosign = false;
this.PreventVulImg = false;
this.PreventVulImgSeverity = LOW;
this.ScanImgOnPush = false;
@@ -38,6 +40,7 @@ export class ProjectPolicy {
initByProject(pro: Project) {
this.Public = pro.metadata.public === 'true';
this.ContentTrust = pro.metadata.enable_content_trust === 'true';
+ this.ContentTrustCosign = pro.metadata.enable_content_trust_cosign === 'true';
this.PreventVulImg = pro.metadata.prevent_vul === 'true';
if (pro.metadata.severity) {
this.PreventVulImgSeverity = pro.metadata.severity;
diff --git a/src/portal/src/app/base/project/project-config/project-policy-config/project.ts b/src/portal/src/app/base/project/project-config/project-policy-config/project.ts
index 8499d2ba8..0eb5d6779 100644
--- a/src/portal/src/app/base/project/project-config/project-policy-config/project.ts
+++ b/src/portal/src/app/base/project/project-config/project-policy-config/project.ts
@@ -15,6 +15,7 @@ export class Project {
metadata?: {
public: string | boolean;
enable_content_trust: string | boolean;
+ enable_content_trust_cosign?: string | boolean;
prevent_vul: string | boolean;
severity: string;
auto_scan: string | boolean;
@@ -24,6 +25,7 @@ export class Project {
constructor () {
this.metadata.public = false;
this.metadata.enable_content_trust = false;
+ this.metadata.enable_content_trust_cosign = false;
this.metadata.prevent_vul = false;
this.metadata.severity = 'low';
this.metadata.auto_scan = false;
diff --git a/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html b/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html
index e7459f489..35ac7a564 100644
--- a/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html
+++ b/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html
@@ -157,7 +157,7 @@