intentional gosec issue for testing
Some checks failed
Gosec Check / Gosec Check (push) Failing after 36s

This commit is contained in:
Shane C 2024-09-06 16:14:15 -04:00
parent 626bee5cac
commit 72dac5190d
Signed by: shanec
GPG key ID: E46B5FEA35B22FF9

View file

@ -14,6 +14,7 @@ import (
"github.com/sethvargo/go-githubactions"
"log"
"os"
"runtime"
"strconv"
"strings"
@ -191,6 +192,16 @@ var rootCmd = &cobra.Command{
log.Fatalln(err)
}
file, err := os.OpenFile("testing.txt", os.O_APPEND|os.O_CREATE|os.O_WRONLY, os.ModePerm)
if err != nil {
log.Fatalln(err)
}
defer file.Close()
hello := uint8(runtime.NumCPU())
fmt.Println(hello)
if len(issues) == 0 {
if _, _, err := forgeClient.CreateIssue(repoOwner, repoName, forgejo.CreateIssueOption{
Title: "GoSec Report",