remove excess logging
All checks were successful
Gosec Check / Gosec Check (push) Successful in 53s

This commit is contained in:
Shane C 2024-09-11 19:11:34 -04:00
parent 5f1ac28901
commit 0a69642bd6
Signed by: shanec
GPG key ID: E46B5FEA35B22FF9

View file

@ -9,7 +9,6 @@ import (
"fmt"
"git.eggactyl.cloud/Eggactyl/shell/linux"
"github.com/go-git/go-git/v5"
"github.com/kr/pretty"
"github.com/nao1215/markdown"
"github.com/owenrumney/go-sarif/sarif"
"github.com/sethvargo/go-githubactions"
@ -198,9 +197,11 @@ var rootCmd = &cobra.Command{
}
issues, _, err := forgeClient.ListRepoIssues(repoOwner, repoName, forgejo.ListIssueOption{
State: forgejo.StateOpen,
ListOptions: forgejo.ListOptions{
Page: -1,
},
Type: forgejo.IssueTypeIssue,
})
if err != nil {
log.Fatalln(err)
@ -208,7 +209,6 @@ var rootCmd = &cobra.Command{
for _, issue := range issues {
if issue.State == forgejo.StateOpen && issue.Title == "GoSec Report" && repoOwner+"/"+repoName == issue.Repository.FullName && myUser.UserName == issue.Poster.UserName {
pretty.Println(issue)
if _, _, err := forgeClient.EditIssue(repoOwner, repoName, issue.Index, forgejo.EditIssueOption{
Body: &markdownOutputStr,
}); err != nil {