debugging
All checks were successful
Gosec Check / Gosec Check (push) Successful in 29s

This commit is contained in:
Shane C 2024-09-06 22:10:28 -04:00
parent e64774abec
commit 08a5431eb0
Signed by: shanec
GPG key ID: E46B5FEA35B22FF9
2 changed files with 3 additions and 1 deletions

View file

@ -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)

View file

@ -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
/goscan --is-action
cat output.md