From 7e0eca2af33f5cc31838d68a2a25bb6652a069d7 Mon Sep 17 00:00:00 2001 From: Shane C Date: Sun, 8 Sep 2024 18:16:19 -0400 Subject: [PATCH] remove random dockerfile run command --- Dockerfile | 1 - cmd/root.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cdd0a37..4c67507 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ RUN wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz && tar -xf go1.23.1.linux COPY --from=builder /app/build/goscan /goscan COPY ./entrypoint.sh /entrypoint.sh -COPY --from=builder /app . RUN chmod +x /goscan && chmod +x /entrypoint.sh RUN curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b /usr/local/bin diff --git a/cmd/root.go b/cmd/root.go index 497bcfc..a944f5c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -200,7 +200,7 @@ var rootCmd = &cobra.Command{ isFound := false for _, issue := range issues { - if issue.Title == "GoSec Report" && strings.Contains(issue.Body, "GoSec Report:") && actionCtx.Repository == issue.Repository.FullName { + if issue.Title == "GoSec Report" && actionCtx.Repository == issue.Repository.FullName { isFound = true if _, _, err := forgeClient.EditIssue(repoOwner, repoName, issue.Index, forgejo.EditIssueOption{ Body: &markdownOutputStr,