edit issue get settings
Some checks failed
Gosec Check / Gosec Check (push) Failing after 52s

This commit is contained in:
Shane C 2024-09-06 16:19:55 -04:00
parent 72dac5190d
commit 276217ad2d
Signed by: shanec
GPG key ID: E46B5FEA35B22FF9

View file

@ -14,7 +14,6 @@ import (
"github.com/sethvargo/go-githubactions"
"log"
"os"
"runtime"
"strconv"
"strings"
@ -184,9 +183,8 @@ var rootCmd = &cobra.Command{
repoOwner, repoName := actionCtx.Repo()
issues, _, err := forgeClient.ListIssues(forgejo.ListIssueOption{
CreatedBy: "forgejo-actions",
KeyWord: "GoSec Report",
Type: forgejo.IssueTypeIssue,
KeyWord: "GoSec Report",
Type: forgejo.IssueTypeIssue,
})
if err != nil {
log.Fatalln(err)
@ -199,9 +197,6 @@ var rootCmd = &cobra.Command{
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",