From b0538eabf96ec7b8876b15e44afbc936d5d54303 Mon Sep 17 00:00:00 2001 From: iLTeoooD Date: Sun, 15 Mar 2020 17:07:27 +0100 Subject: [PATCH] Included image scan --- .github/workflows/build_only.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_only.yml b/.github/workflows/build_only.yml index 90db050..805b138 100644 --- a/.github/workflows/build_only.yml +++ b/.github/workflows/build_only.yml @@ -16,4 +16,13 @@ jobs: with: tag: latest,1.0 platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6 - imageName: ilteoood/docker-surfshark \ No newline at end of file + imageName: ilteoood/docker-surfshark + - name: Scan image + uses: anchore/scan-action@master + with: + image-reference: "ilteoood/docker-surfshark:latest" + dockerfile-path: "./Dockerfile" + fail-build: true + include-app-packages: true + - name: Anchore inline scan JSON results + run: for j in `ls ./anchore-reports/*.json`; do echo "---- ${j} ----"; cat ${j}; echo; done \ No newline at end of file