From b9e0f1e9d4c1fb411054d4f588b6f5e12b800993 Mon Sep 17 00:00:00 2001 From: Shane C Date: Wed, 11 Sep 2024 20:09:04 -0400 Subject: [PATCH] move gosec to entrypoint --- Dockerfile | 2 -- entrypoint.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8bec53a..0851dd5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,6 @@ COPY --from=builder /app/build/goscan /goscan COPY ./entrypoint.sh /entrypoint.sh 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 - ENV PATH="/usr/local/go/bin:${PATH}" ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index f0789c7..98fc9ab 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ #!/bin/sh +curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b /usr/local/bin /goscan --is-action -cat output.sarif \ No newline at end of file