Skip to content

Commit e7e0f1a

Browse files
authored
change OSV-scanner for pull_request as recommended (#615)
Signed-off-by: Fedor Partanskiy <[email protected]>
1 parent 7a86629 commit e7e0f1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/vulnerability-scan.yml

+4
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ permissions:
2121

2222
jobs:
2323
scan-scheduled:
24+
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
2425
uses: "google/osv-scanner-action/.github/workflows/[email protected]"
26+
scan-pr:
27+
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
28+
uses: "google/osv-scanner-action/.github/workflows/[email protected]"

0 commit comments

Comments
 (0)