Skip to content

Commit a694200

Browse files
committed
return error to shell if sbom export fails
1 parent c34b330 commit a694200

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

actions/socket-export-sbom/main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,9 @@ func main() {
138138
}
139139
log.Printf("Last scan id for %s is %s", repo, id)
140140
log.Printf("exporting sbom to %s", output)
141-
client.ExportSBOM(id, output)
141+
err = client.ExportSBOM(id, output)
142+
if err != nil {
143+
log.Printf("ERROR: failed to export SBOM: %s\n", err)
144+
os.Exit(1)
145+
}
142146
}

0 commit comments

Comments
 (0)