diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f06cfd8..8ae587d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -72,3 +72,15 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + - name: Run Trivy vulnerability scanner + uses: aquasecurity/trivy-action@master + with: + image-ref: ${{ env.DOCKER_IMAGE }} + format: 'sarif' + output: 'trivy-results.sarif' + + - name: Upload Trivy scan results to GitHub Security tab + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: 'trivy-results.sarif'