File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ permissions:
1919 # To report GitHub Actions status checks
2020 statuses : write
2121 id-token : write
22+ # upload trivy scan results
23+ security-events : write
2224
2325on :
2426 push :
@@ -143,6 +145,6 @@ jobs:
143145 name : Trivy scan image for vulnerabilities
144146 needs : files_changed
145147 if : |
146- needs.files_changed.outputs.trivyscan == 'true'
148+ needs.files_changed.outputs.trivyscan == 'true' || github.event_name != 'pull_request'
147149 uses : ./.github/workflows/trivyscan.yml
148150 secrets : inherit
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ permissions:
1414 packages : write
1515 # To report GitHub Actions status checks
1616 statuses : write
17+ # upload trivy scan results
18+ security-events : write
1719
1820jobs :
1921 scan :
You can’t perform that action at this time.
0 commit comments