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 89a04b4 commit 90d7aef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/scan-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
name: Scan images in bundle
runs-on: ubuntu-22.04
needs: get-images
outputs:
report-path: ${{ steps.report-path.outputs.report-path }}
strategy:
matrix:
image: ${{ fromJSON(needs.get-images.outputs.images-array) }}
Expand All @@ -61,16 +63,18 @@ jobs:
uses: aquasecurity/[email protected]
with:
image-ref: ${{ matrix.image }}
output: ${{ format('/tmp/trivy-reports/{0}.json', matrix.image) }}
output: ${{ steps.report-path.outputs.report-path }}
format: 'json'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'

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

0 comments on commit 90d7aef

Please sign in to comment.