aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorDejan Milisavljevic <dejan.milisavljevic@sonarsource.com>2024-11-26 18:01:41 +0100
committersonartech <sonartech@sonarsource.com>2024-11-27 20:02:58 +0000
commit451448c2b7a3d7ece0d4be2c9c8f5533f6a0bce7 (patch)
tree776f1ddef95c075aa824963397268108ec52febb /server
parentb9c3c8716b6ed268b0a0b321f7b69bd4fa1d335a (diff)
downloadsonarqube-451448c2b7a3d7ece0d4be2c9c8f5533f6a0bce7.tar.gz
sonarqube-451448c2b7a3d7ece0d4be2c9c8f5533f6a0bce7.zip
SONAR-23569 Add STIG and CASA to the PDF Security Report
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java b/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java
index bc1cdd314ab..163344af7c2 100644
--- a/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java
+++ b/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java
@@ -33,6 +33,7 @@ import java.util.Optional;
import java.util.Set;
import java.util.function.Function;
import java.util.stream.Collectors;
+import java.util.stream.IntStream;
import java.util.stream.Stream;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
@@ -407,6 +408,10 @@ public final class SecurityStandards {
map.put("14.5.2", "346");
CWES_BY_CASA_CATEGORY = Collections.unmodifiableMap(map);
}
+
+ public static final List<String> CASA_ROOT_CATEGORIES =
+ IntStream.rangeClosed(1, 14).mapToObj(String::valueOf).collect(Collectors.toUnmodifiableList());
+
private final Set<String> standards;
private final Set<String> cwe;
private final Set<String> casaCategories;