Add ghcr login to trivy if repo is private
This commit is contained in:
parent
b55880ebf5
commit
0a4302cb42
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue