Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
DnPlas committed Sep 25, 2024
1 parent 7f5c5a9 commit f78780a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/scan-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f78780a

Please sign in to comment.