add thingy for debugging
All checks were successful
Gosec Check / Gosec Check (push) Successful in 55s

This commit is contained in:
Shane C 2024-09-08 20:36:16 -04:00
parent 9b666897c1
commit f05f53499c
Signed by: shanec
GPG key ID: E46B5FEA35B22FF9

View file

@ -9,6 +9,7 @@ import (
"fmt" "fmt"
"git.eggactyl.cloud/Eggactyl/shell/linux" "git.eggactyl.cloud/Eggactyl/shell/linux"
"github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5"
"github.com/kr/pretty"
"github.com/nao1215/markdown" "github.com/nao1215/markdown"
"github.com/owenrumney/go-sarif/sarif" "github.com/owenrumney/go-sarif/sarif"
"github.com/sethvargo/go-githubactions" "github.com/sethvargo/go-githubactions"
@ -196,12 +197,14 @@ var rootCmd = &cobra.Command{
Page: -1, Page: -1,
}, },
Type: forgejo.IssueTypeIssue, Type: forgejo.IssueTypeIssue,
CreatedBy: "forgejo-actions",
}) })
if err != nil { if err != nil {
log.Fatalln(err) log.Fatalln(err)
} }
//god help me
pretty.Logln(issues)
isFound := false isFound := false
for _, issue := range issues { for _, issue := range issues {
if issue.Title == "GoSec Report" && actionCtx.Repository == issue.Repository.FullName { if issue.Title == "GoSec Report" && actionCtx.Repository == issue.Repository.FullName {