From ff13d8f92281b1bdbb927e9a27ce9b4e230a730d Mon Sep 17 00:00:00 2001 From: Tugdual Saunier Date: Fri, 25 Nov 2022 14:33:29 -0500 Subject: [PATCH] Migrate to Symfony CLI Docker image --- Dockerfile | 8 -------- action.yml | 6 +++--- 2 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 6ae8ed1..0000000 --- a/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM golang:1.18-alpine AS builder -RUN wget -O checker https://github.com/fabpot/local-php-security-checker/releases/download/v2.0.5/local-php-security-checker_2.0.5_linux_amd64 -RUN chmod 755 checker - -FROM scratch -COPY --from=builder /go/checker / -COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ -CMD ["/checker"] diff --git a/action.yml b/action.yml index 8e40ed3..ab7f17b 100644 --- a/action.yml +++ b/action.yml @@ -21,11 +21,11 @@ outputs: description: 'The detected vulnerabilities as JSON' runs: using: 'docker' - image: 'Dockerfile' + image: 'docker://ghcr.io/symfony-cli/symfony-cli:v5' args: - - "/checker" + - "security:check" - "--format" - ${{ inputs.format }} - - "--path" + - "--dir" - ${{ inputs.lock }} - "--disable-exit-code=${{ inputs.disable-exit-code }}"