write to file
All checks were successful
Gosec Check / Gosec Check (push) Successful in 24s

This commit is contained in:
Shane C 2024-09-06 22:31:55 -04:00
parent 08a5431eb0
commit 097359cc77
Signed by: shanec
GPG key ID: E46B5FEA35B22FF9

View file

@ -199,6 +199,10 @@ var rootCmd = &cobra.Command{
log.Fatalln(err)
}
if err := os.WriteFile("output.md", []byte(markdownOutputStr), 0644); err != nil {
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 {