File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 15
15
16
16
jobs :
17
17
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
18
21
runs-on : ubuntu-latest
19
22
20
- if : ${{ github.repository == 'CrunchyData/postgres-operator' }}
23
+ # if: ${{ github.repository == 'CrunchyData/postgres-operator' }}
21
24
22
25
steps :
23
26
- uses : actions/checkout@v3
24
27
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
+
25
35
# Upload actionable results to the GitHub Security tab.
26
36
# Pull request checks fail according to repository settings.
27
37
#
35
45
format : ' sarif'
36
46
output : ' trivy-results.sarif'
37
47
hide-progress : true
38
- exit-code : 1
39
48
40
49
- name : Upload Trivy scan results to GitHub Security tab
41
50
uses : github/codeql-action/upload-sarif@v2
You can’t perform that action at this time.
0 commit comments