Skip to content

Commit 0acd329

Browse files
committed
update rule_type and label
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent 754ea92 commit 0acd329

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

policy/rules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def count_violations(self, product, threshold, parameters):
137137

138138

139139
class UnresolvedVulnerabilityRule(BaseRule):
140-
rule_type = "unresolved_vulnerability"
141-
label = "Unresolved Vulnerability"
140+
rule_type = "vulnerability_unresolved"
141+
label = "Vulnerability Unresolved"
142142
severity = "warning"
143143
description = (
144144
"Detects packages with known vulnerabilities and no completed vulnerability analysis."
@@ -170,8 +170,8 @@ def count_violations(self, product, threshold, parameters):
170170

171171

172172
class StaleVulnerabilityRule(BaseRule):
173-
rule_type = "stale_vulnerability"
174-
label = "Stale Vulnerability"
173+
rule_type = "vulnerability_stale"
174+
label = "Vulnerability Stale"
175175
severity = "error"
176176
description = (
177177
"Detects packages with high-risk vulnerabilities unaddressed"

0 commit comments

Comments
 (0)