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 ca7bee7 commit 89a04b4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/scan-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ jobs:
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.images-array }}
scan-images:
name: Scan images in bundle
runs-on: ubuntu-22.04
Expand All @@ -58,6 +54,9 @@ jobs:
matrix:
image: ${{ fromJSON(needs.get-images.outputs.images-array) }}
steps:
- name: Prepare environment
run: mkdir -p /tmp/trivy-reports

- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
Expand All @@ -67,6 +66,11 @@ jobs:
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'

- name: Change name of output
run: |
FILENAME=$(echo ${{ matrix.image }} | sed 's/:/-/g; s/\//-/g; s/\./-/g')
mv /tmp/trivy-reports/${{ matrix.image }}* /tmp/trivy-reports/$FILENAME
#
# - name: Prepare artifacts
# run: |
Expand Down

0 comments on commit 89a04b4

Please sign in to comment.