From cee13ad9a0e6e725b454e34b5a347ec7c377466d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Mon, 25 Nov 2024 18:37:34 +0100 Subject: [PATCH] Use bash --- .github/workflows/scan_released.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scan_released.yml b/.github/workflows/scan_released.yml index 85b80b9..6da3721 100644 --- a/.github/workflows/scan_released.yml +++ b/.github/workflows/scan_released.yml @@ -15,13 +15,16 @@ jobs: - runs-on: macos-latest arch: arm64 runs-on: ${{ matrix.runs-on }} + defaults: + run: + shell: bash steps: - name: Checkout uses: actions/checkout@v4 - name: Download container image for the latest release and load it run: | VERSION=$(curl https://api.github.com/repos/freedomofpress/dangerzone/releases/latest | grep "tag_name" | cut -d '"' -f 4) - CONTAINER_FILENAME=container-$(echo "${VERSION}" | cut -c2-)-${{ matrix.arch }}.tar.gz + CONTAINER_FILENAME=container-${VERSION:1}-${{ matrix.arch }}.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