From a8b6a05385d5902fbed10fb980f7a03ae5478474 Mon Sep 17 00:00:00 2001 From: Patipat Chewprecha Date: Sun, 23 Jun 2024 21:03:30 +0700 Subject: [PATCH] Update vulnerability_check.yml --- .github/workflows/vulnerability_check.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/vulnerability_check.yml b/.github/workflows/vulnerability_check.yml index fccda764..dd43c28f 100644 --- a/.github/workflows/vulnerability_check.yml +++ b/.github/workflows/vulnerability_check.yml @@ -21,25 +21,19 @@ jobs: uses: docker/build-push-action@v4 with: context: ./ckan - load: true - push: false - file: ./ckan/Dockerfile + outputs: type=docker,dest=/tmp/ckan-image.tar tags: ckan-docker/ckan:test-valner-scan - name: Build and load CKAN xloader uses: docker/build-push-action@v4 with: context: ./ckan/ckanext-xloader - load: true - push: false - file: ./ckan/ckanext-xloader/Dockerfile - tags: ckan-docker/ckan:test-valner-scan + outputs: type=docker,dest=/tmp/ckan-xloader-image.tar + tags: ckan-docker/ckan-xloader:test-valner-scan - name: Scan for vulnerabilities for CKAN image uses: crazy-max/ghaction-container-scan@v3 with: - image: ckan-docker/ckan:test-valner-scan - dockerfile: ./ckan/Dockerfile + tarball: /tmp/ckan-image.tar - name: Scan for vulnerabilities for CKAN xloader image uses: crazy-max/ghaction-container-scan@v3 with: - image: ckan-docker/ckan-xloader:test-valner-scan - dockerfile: ./ckan/ckanext-xloader/Dockerfile + tarball: /tmp/ckan-xloader-image.tar