Add ghcr login to trivy if repo is private

This commit is contained in:
Vladimir Remenar 2024-03-16 23:01:52 +01:00
parent b55880ebf5
commit 0a4302cb42
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ jobs:
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
env:
TRIVY_USERNAME: ${{ github.actor }}
TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
if: always()