Skip to content

Commit

Permalink
Add EPSS score policy condition (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
nscuro authored Aug 8, 2024
1 parent 88ac2c1 commit b42dab7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/views/policy/PolicyCondition.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -318,6 +319,8 @@ export default {
return false;
case 'VERSION_DISTANCE':
return false;
case 'EPSS':
return false;
case 'EXPRESSION':
return false;
default:
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b42dab7

Please sign in to comment.