From f78780a4d8753af54118ace0994162061e4a4ba3 Mon Sep 17 00:00:00 2001 From: Daniela Plascencia Date: Wed, 25 Sep 2024 03:02:34 +0200 Subject: [PATCH] debug --- .github/workflows/scan-images.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/scan-images.yaml b/.github/workflows/scan-images.yaml index dc057a98..a34152b4 100644 --- a/.github/workflows/scan-images.yaml +++ b/.github/workflows/scan-images.yaml @@ -10,7 +10,7 @@ jobs: name: Get images runs-on: ubuntu-22.04 outputs: - image-array: ${{ steps.set-images-array.outputs.image-array }} + images-array: ${{ steps.set-images-array.outputs.images-array }} strategy: matrix: # specify location of bundle(s) to be scanned @@ -32,9 +32,9 @@ jobs: RISK=${BUNDLE_SPLIT[2]} pip3 install -r scripts/requirements.txt - python3 scripts/get-all-images.py ${{ matrix.bundle }}/bundle.yaml > /tmp/image_list.txt + python3 scripts/get-all-images.py ${{ matrix.bundle }}/bundle.yaml > /tmp/images_list.txt echo "Image list:" - cat /tmp/image_list.txt + cat /tmp/images_list.txt echo "release_risk=${RELEASE}-${RISK}" >> $GITHUB_OUTPUT - name: Generate an array of images @@ -43,13 +43,12 @@ jobs: # Output the images as an array that can be used in the matrix strategy for the scan images job # This array contains all the images from /tmp/image_list.txt sudo snap install jq - DATA=$(cat images.txt | jq -R -s -c 'split("\n")[:-1]') - echo "::set-output name=image-array::$DATA" - # echo "matrix=$DATA" >> "$GITHUB_OUTPUT" + DATA=$(cat /tmp/images_list.txt | jq -R -s -c 'split("\n")[:-1]') + echo "::set-output name=images-array::$DATA" - name: Debug run: | - echo ${{ steps.set-images-array.outputs.image-array }} + echo ${{ steps.set-images-array.outputs.images-array }} scan-images: name: Scan images in bundle