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)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This will trigger gosec
|
||||||
file, err := os.OpenFile("testing.txt", os.O_APPEND|os.O_CREATE|os.O_WRONLY, os.ModePerm)
|
file, err := os.OpenFile("testing.txt", os.O_APPEND|os.O_CREATE|os.O_WRONLY, os.ModePerm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
|
|
|
@ -3,3 +3,4 @@
|
||||||
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b /usr/local/bin
|
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"
|
# 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