Skip to content

Commit

Permalink
change violation type to security and fix logger
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Murphy <[email protected]>
  • Loading branch information
2000rosser committed May 23, 2024
1 parent 203028a commit cc24d08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import alpine.common.logging.Logger;

public class EpssPolicyEvaluator extends AbstractPolicyEvaluator {
private static final Logger LOGGER = Logger.getLogger(CpePolicyEvaluator.class);
private static final Logger LOGGER = Logger.getLogger(EpssPolicyEvaluator.class);

/**
* {@inheritDoc}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/dependencytrack/policy/PolicyEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ public PolicyViolation.Type determineViolationType(final PolicyCondition.Subject
return null;
}
return switch (subject) {
case CWE, SEVERITY, VULNERABILITY_ID -> PolicyViolation.Type.SECURITY;
case AGE, COORDINATES, PACKAGE_URL, CPE, SWID_TAGID, COMPONENT_HASH, VERSION, VERSION_DISTANCE, EPSS ->
case CWE, SEVERITY, VULNERABILITY_ID, EPSS -> PolicyViolation.Type.SECURITY;
case AGE, COORDINATES, PACKAGE_URL, CPE, SWID_TAGID, COMPONENT_HASH, VERSION, VERSION_DISTANCE ->
PolicyViolation.Type.OPERATIONAL;
case LICENSE, LICENSE_GROUP -> PolicyViolation.Type.LICENSE;
};
Expand Down

0 comments on commit cc24d08

Please sign in to comment.