intentional gosec issue for testing
Some checks failed
Gosec Check / Gosec Check (push) Failing after 36s
Some checks failed
Gosec Check / Gosec Check (push) Failing after 36s
This commit is contained in:
parent
626bee5cac
commit
72dac5190d
1 changed files with 11 additions and 0 deletions
11
cmd/root.go
11
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",
|
||||
|
|
Loading…
Reference in a new issue