File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1515
1616jobs :
1717 scan :
18+ permissions :
19+ # contents: read # for actions/checkout to fetch code
20+ security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
1821 runs-on : ubuntu-latest
1922
20- if : ${{ github.repository == 'CrunchyData/postgres-operator' }}
23+ # if: ${{ github.repository == 'CrunchyData/postgres-operator' }}
2124
2225 steps :
2326 - uses : actions/checkout@v3
2427
28+ - name : Log all detected vulnerabilities
29+ uses : aquasecurity/trivy-action@master
30+ with :
31+ scan-type : fs
32+ hide-progress : true
33+ # exit-code: 1
34+
2535 # Upload actionable results to the GitHub Security tab.
2636 # Pull request checks fail according to repository settings.
2737 #
3545 format : ' sarif'
3646 output : ' trivy-results.sarif'
3747 hide-progress : true
38- exit-code : 1
3948
4049 - name : Upload Trivy scan results to GitHub Security tab
4150 uses : github/codeql-action/upload-sarif@v2
You can’t perform that action at this time.
0 commit comments