Explorar el Código

always write sarif results

Zach Rice hace 4 años
padre
commit
44d7d89e19
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      report/sarif.go

+ 1 - 1
report/sarif.go

@@ -64,7 +64,7 @@ func messageText(f Finding) string {
 }
 
 func getResults(findings []Finding) []Results {
-	var results []Results
+	results := []Results{}
 	for _, f := range findings {
 		r := Results{
 			Message: Message{