From 52f3495f91d72ff176a531e0dcef76fd2489f9c8 Mon Sep 17 00:00:00 2001 From: Ross Murphy Date: Tue, 2 Jul 2024 12:15:39 +0100 Subject: [PATCH 1/2] add EPSS score to policies Signed-off-by: Ross Murphy --- package-lock.json | 2 +- src/views/policy/PolicyCondition.vue | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index dfdaf20ce..e1913106e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -77,7 +77,7 @@ "vue-template-compiler": "2.7.16" }, "engines": { - "node": ">= 18", + "node": ">= 20", "npm": ">= 9" } }, diff --git a/src/views/policy/PolicyCondition.vue b/src/views/policy/PolicyCondition.vue index 205999aae..559c5e046 100644 --- a/src/views/policy/PolicyCondition.vue +++ b/src/views/policy/PolicyCondition.vue @@ -205,6 +205,7 @@ export default { { value: 'VERSION', text: this.$t('message.version') }, { value: 'COMPONENT_HASH', text: this.$t('message.component_hash') }, { value: 'CWE', text: this.$t('message.cwe_full') }, + { value: 'EPSS', text: this.$t('message.epss_score') }, { value: 'VULNERABILITY_ID', text: this.$t('message.vulnerability_vuln_id'), @@ -285,6 +286,8 @@ export default { return false; case 'VERSION_DISTANCE': return false; + case 'EPSS': + return false; default: return false; } @@ -356,6 +359,9 @@ export default { case 'VERSION_DISTANCE': this.operators = this.numericOperators; break; + case 'EPSS': + this.operators = this.numericOperators; + break; default: this.operators = []; } From 27efe4db5282221fdccb42ee43c079953da09f2f Mon Sep 17 00:00:00 2001 From: Ross Murphy <77832827+2000rosser@users.noreply.github.com> Date: Tue, 2 Jul 2024 15:13:57 +0000 Subject: [PATCH 2/2] undo node version change Signed-off-by: Ross Murphy <77832827+2000rosser@users.noreply.github.com> --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index e1913106e..dfdaf20ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -77,7 +77,7 @@ "vue-template-compiler": "2.7.16" }, "engines": { - "node": ">= 20", + "node": ">= 18", "npm": ">= 9" } },