Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update actions #47

Merged
merged 7 commits into from
Nov 17, 2024
10 changes: 5 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,34 @@ jobs:
- vroom
steps:
- name: Build docker images
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
push: false
tags: '${{ matrix.image-name }}-hh:${{ github.sha }}'
file: 'docker/Dockerfile.${{ matrix.image-name }}'

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2
with:
image-ref: '${{ matrix.image-name }}-hh:${{ github.sha }}'
format: sarif
output: '${{ matrix.image-name }}-trivy-results.sarif'
severity: 'CRITICAL,HIGH'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: '${{ matrix.image-name }}-trivy-results.sarif'

- name: Run the Anchore Grype scan action
uses: anchore/scan-action@d5aa5b6cb9414b0c7771438046ff5bcfa2854ed7
uses: anchore/scan-action@f2ba85e044c8f5e5014c9a539328a9c78d3bfa49
id: scan
with:
image: '${{ matrix.image-name }}-hh:${{ github.sha }}'
fail-build: false
severity-cutoff: critical

- name: Upload vulnerability report
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: '${{ steps.scan.outputs.sarif }}'
Loading