in src/main/java/com/amazon/inspector/jenkins/amazoninspectorbuildstep/AmazonInspectorBuilder.java [135:152]
public void setReportArtifactName(String reportArtifactName) {
if (reportArtifactName == null || reportArtifactName.trim().isEmpty()) {
this.reportArtifactName = "default-report";
return;
}
String sanitizedName = reportArtifactName.trim();
if (sanitizedName.length() > 255) {
throw new IllegalArgumentException("Report artifact name must not exceed 255 characters");
}
if (!sanitizedName.matches("^[a-zA-Z0-9._-]+$")) {
throw new IllegalArgumentException("Report artifact name must only contain letters, numbers, dots, underscores, or hyphens");
}
this.reportArtifactName = sanitizedName;
}