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,