This commit is contained in:
parent
e64774abec
commit
08a5431eb0
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue