ci: add registry credentials to trivy image scan

This commit is contained in:
2026-02-23 14:01:31 +00:00
parent b7e11da2da
commit aece2d739d

View File

@@ -110,6 +110,9 @@ jobs:
output: trivy-image-${{ matrix.name }}.sarif
severity: HIGH,CRITICAL
exit-code: 0 # warn only; change to 1 to block on vulnerabilities
env:
TRIVY_USERNAME: ${{ github.actor }}
TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Trivy image results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3