ci(security): generate cyclonedx sbom, add sbom upload to ci and update stride security model

This commit is contained in:
Claudecio Martins
2026-10-20 15:13:52 -03:00
parent 300944697f
commit 06c90b4e86
7 changed files with 109 additions and 58 deletions
@@ -41,7 +41,7 @@ public class CyberCoreSignerApplication {
buildFlavor = flavor.trim().toLowerCase();
}
}
} catch (Exception ignored) {}
} catch (java.io.IOException ignored) {}
}
public static String getBuildFlavor() {
@@ -189,7 +189,8 @@ public class CyberCoreSignerApplication {
try {
configuredPort = Integer.parseInt(args[++i].trim());
} catch (NumberFormatException e) {
logger.warn("Porta inválida especificada em --port: '{}'. Usando porta padrão {}.", args[i], CcspServer.DEFAULT_PORT);
String sanitized = args[i].replaceAll("[\r\n]", "");
logger.warn("Porta inválida especificada em --port: '{}'. Usando porta padrão {}.", sanitized, CcspServer.DEFAULT_PORT);
}
}
}