Skip to content

Commit 20f248e

Browse files
committed
Add junit as a valid output format
1 parent 4177485 commit 20f248e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/kube-score/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ func scoreFiles(binName string, args []string) error {
126126
return nil
127127
}
128128

129-
if *outputFormat != "human" && *outputFormat != "ci" && *outputFormat != "json" && *outputFormat != "sarif" {
129+
if *outputFormat != "human" && *outputFormat != "ci" && *outputFormat != "json" && *outputFormat != "sarif" && *outputFormat != "junit" {
130130
fs.Usage()
131-
return fmt.Errorf("Error: --output-format must be set to: 'human', 'json', 'sarif' or 'ci'")
131+
return fmt.Errorf("Error: --output-format must be set to: 'human', 'json', 'sarif', 'junit' or 'ci'")
132132
}
133133

134134
acceptedColors := map[string]bool{

0 commit comments

Comments
 (0)