From 91932046f55bc179414d70fef8b171eab884e8e3 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Wed, 6 Nov 2024 13:41:37 +0200 Subject: [PATCH] ci: Use the new container filename in our assets The filename of the container image tarball that we published in our release assets has changed from `container.tar.gz` to `container-0.8.0-i686.tar.gz`. Change the scan action accordingly. --- .github/workflows/scan_released.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/scan_released.yml b/.github/workflows/scan_released.yml index 7509b86..4e0c962 100644 --- a/.github/workflows/scan_released.yml +++ b/.github/workflows/scan_released.yml @@ -10,12 +10,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Download container image for the latest release + - name: Download container image for the latest release and load it run: | VERSION=$(curl https://api.github.com/repos/freedomofpress/dangerzone/releases/latest | jq -r '.tag_name') - wget https://github.com/freedomofpress/dangerzone/releases/download/${VERSION}/container.tar.gz -O container.tar.gz - - name: Load container image - run: docker load -i container.tar.gz + CONTAINER_FILENAME=container-${VERSION}-i686.tar.gz + wget https://github.com/freedomofpress/dangerzone/releases/download/${VERSION}/${CONTAINER_FILENAME} -O ${CONTAINER_FILENAME} + docker load -i ${CONTAINER_FILENAME} # NOTE: Scan first without failing, else we won't be able to read the scan # report. - name: Scan container image (no fail)