From 08a5431eb041c780364a4daa9155fcc70142a399 Mon Sep 17 00:00:00 2001 From: Shane C Date: Fri, 6 Sep 2024 22:10:28 -0400 Subject: [PATCH] debugging --- cmd/root.go | 1 + entrypoint.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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