File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 7171 tmp/bandit_output.json >> tmp/pr-body.md
7272
7373 - name : Create Pull Request (if vulnerabilities found)
74- if : ${{ steps.scan.outputs.bandit_high_found == 'true' }}
74+ if : ${{ github.event_name == 'push' && steps.scan.outputs.bandit_high_found == 'true' }}
7575 uses : peter-evans/create-pull-request@v5
7676 with :
7777 commit-message : ' chore: issues detected by Bandit (HIGH)'
@@ -157,7 +157,7 @@ jobs:
157157 ' tmp/trivy.json >> tmp/pr-body.md
158158
159159 - name : Create Pull Request (if vulnerabilities found)
160- if : ${{ steps.scan.outputs.trivy_issues_found == 'true' }}
160+ if : ${{ github.event_name == 'push' && steps.scan.outputs.trivy_issues_found == 'true' }}
161161 uses : peter-evans/create-pull-request@v5
162162 with :
163163 commit-message : ' chore: vulnerabilities detected by Trivy (HIGH/CRITICAL)'
You can’t perform that action at this time.
0 commit comments