diff --git a/cmd/root.go b/cmd/root.go index d9d787b..a1a4df2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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",