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"
|
"github.com/sethvargo/go-githubactions"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
@ -191,6 +192,16 @@ var rootCmd = &cobra.Command{
|
||||||
log.Fatalln(err)
|
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 len(issues) == 0 {
|
||||||
if _, _, err := forgeClient.CreateIssue(repoOwner, repoName, forgejo.CreateIssueOption{
|
if _, _, err := forgeClient.CreateIssue(repoOwner, repoName, forgejo.CreateIssueOption{
|
||||||
Title: "GoSec Report",
|
Title: "GoSec Report",
|
||||||
|
|
Loading…
Reference in a new issue