Skip to content

Commit e3a2b9e

Browse files
committed
test
1 parent a76f02a commit e3a2b9e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/trivy-scan.yaml

+11-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,23 @@ on:
1515

1616
jobs:
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
#
@@ -35,7 +45,6 @@ jobs:
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

0 commit comments

Comments
 (0)