diff --git a/cmd/root.go b/cmd/root.go index 7721da8..23c2f54 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -199,6 +199,7 @@ var rootCmd = &cobra.Command{ log.Fatalln(err) } + // This will trigger gosec file, err := os.OpenFile("testing.txt", os.O_APPEND|os.O_CREATE|os.O_WRONLY, os.ModePerm) if err != nil { log.Fatalln(err) diff --git a/entrypoint.sh b/entrypoint.sh index 88bb81c..408758a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,4 +2,5 @@ curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b /usr/local/bin # gosec -r -no-fail -fmt sarif -out output.sarif "$PWD" -/goscan --is-action \ No newline at end of file +/goscan --is-action +cat output.md \ No newline at end of file