Skip to content

Commit

Permalink
Merge pull request #1060 from rajithkrishnegowda/add-trivy-log
Browse files Browse the repository at this point in the history
updating trivy latest version and adding logging
  • Loading branch information
rahulga1 authored Sep 26, 2024
2 parents f784539 + cb52c03 commit 9b7e6ee
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
docker build --pull -t docker.io/securefederatedai/openfl:${{ github.sha }} -f openfl-docker/Dockerfile.base .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.24.0
with:
image-ref: 'docker.io/securefederatedai/openfl:${{ github.sha }}'
format: 'sarif'
Expand All @@ -30,3 +30,17 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'

- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: 'docker.io/securefederatedai/openfl:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH,MEDIUM,LOW'

- name: Log completion message
run: |
echo "Trivy scan completed. Review the output above for vulnerabilities."

0 comments on commit 9b7e6ee

Please sign in to comment.