move gosec to entrypoint
Some checks failed
GoSec Scan / Gosec Check (push) Failing after -36s

This commit is contained in:
Shane C 2024-09-11 20:09:04 -04:00
parent 26a7d7a72a
commit b9e0f1e9d4
Signed by: shanec
GPG key ID: E46B5FEA35B22FF9
2 changed files with 1 additions and 3 deletions

View file

@ -13,8 +13,6 @@ COPY --from=builder /app/build/goscan /goscan
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /goscan && chmod +x /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}" ENV PATH="/usr/local/go/bin:${PATH}"
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b /usr/local/bin
/goscan --is-action /goscan --is-action
cat output.sarif