From b42dab786cb5f9b1dc70f40e19c86fc784cd276c Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 8 Aug 2024 10:23:56 +0200 Subject: [PATCH] Add EPSS score policy condition (#114) --- src/views/policy/PolicyCondition.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/policy/PolicyCondition.vue b/src/views/policy/PolicyCondition.vue index f2d7376a..1c35bc41 100644 --- a/src/views/policy/PolicyCondition.vue +++ b/src/views/policy/PolicyCondition.vue @@ -231,6 +231,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'), @@ -318,6 +319,8 @@ export default { return false; case 'VERSION_DISTANCE': return false; + case 'EPSS': + return false; case 'EXPRESSION': return false; default: @@ -391,6 +394,9 @@ export default { case 'VERSION_DISTANCE': this.operators = this.numericOperators; break; + case 'EPSS': + this.operators = this.numericOperators; + break; case 'EXPRESSION': this.operators = this.regexOperators; break;