Skip to content

Commit

Permalink
Update pr validation
Browse files Browse the repository at this point in the history
  • Loading branch information
simongottschlag committed Jan 22, 2021
1 parent 3301559 commit 9e93db0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/pr-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,17 @@ jobs:
- name: Build and load (current arch)
run: |
docker buildx build --load -t ${{ env.NAME }}:${{ steps.prep.outputs.VERSION }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.NAME }}:${{ steps.prep.outputs.VERSION }}
format: 'template'
template: '@/contrib/sarif.tpl'
output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: 'trivy-results.sarif'
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down

0 comments on commit 9e93db0

Please sign in to comment.