Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Jun 2, 2024
1 parent b3f3ba7 commit d81424b
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,27 @@ jobs:
# sarif_file: 'trivy-results.sarif'
# category: 'fs'

- name: Build an image from Dockerfile
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/invenio-rdm-starter:${{ github.sha }} .
# - name: Build an image from Dockerfile
# run: |
# docker build -t ghcr.io/${{ github.repository_owner }}/invenio-rdm-starter:${{ github.sha }} .

- name: Run Trivy image scan
uses: aquasecurity/trivy-action@master
with:
image-ref: 'ghcr.io/${{ github.repository_owner }}/invenio-rdm-starter:${{ github.sha }}'
format: 'sarif'
output: 'trivy-results.sarif'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
# - name: Run Trivy image scan
# uses: aquasecurity/trivy-action@master
# with:
# image-ref: 'ghcr.io/${{ github.repository_owner }}/invenio-rdm-starter:${{ github.sha }}'
# format: 'sarif'
# output: 'trivy-results.sarif'
# exit-code: '1'
# ignore-unfixed: true
# vuln-type: 'os,library'
# severity: 'CRITICAL,HIGH'

- name: Upload Trivy image scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: 'trivy-results.sarif'
category: 'image'
# - name: Upload Trivy image scan results to GitHub Security tab
# uses: github/codeql-action/upload-sarif@v3
# if: always()
# with:
# sarif_file: 'trivy-results.sarif'
# category: 'image'

# https://github.com/docker/metadata-action
# Tags:
Expand Down

0 comments on commit d81424b

Please sign in to comment.