From 451448c2b7a3d7ece0d4be2c9c8f5533f6a0bce7 Mon Sep 17 00:00:00 2001 From: Dejan Milisavljevic Date: Tue, 26 Nov 2024 18:01:41 +0100 Subject: SONAR-23569 Add STIG and CASA to the PDF Security Report --- .../src/main/java/org/sonar/server/security/SecurityStandards.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/sonar-server-common') 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 CASA_ROOT_CATEGORIES = + IntStream.rangeClosed(1, 14).mapToObj(String::valueOf).collect(Collectors.toUnmodifiableList()); + private final Set standards; private final Set cwe; private final Set casaCategories; -- cgit v1.2.3