Skip to content

Commit

Permalink
Add junit as a valid output format
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Jul 12, 2024
1 parent 4177485 commit 20f248e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kube-score/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ func scoreFiles(binName string, args []string) error {
return nil
}

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

acceptedColors := map[string]bool{
Expand Down

0 comments on commit 20f248e

Please sign in to comment.