Skip to content

Commit 61a7479

Browse files
committed
Fix workflow
1 parent 942e951 commit 61a7479

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/osv-scanner.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,15 @@ permissions:
2626
security-events: write
2727
# Read commit contents
2828
contents: read
29+
# Actions read-only
30+
actions: read
2931

3032
jobs:
31-
scan-scheduled:
32-
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
33+
scan:
3334
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@ba0b4d196d231340e0ae94ae00933c8be0984192" # v1.7.4
3435
with:
3536
# Example of specifying custom arguments
3637
scan-args: |-
3738
-r
3839
--skip-git
3940
./
40-
scan-pr:
41-
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
42-
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@ba0b4d196d231340e0ae94ae00933c8be0984192" # v1.7.4
43-
with:
44-
# Example of specifying custom arguments
45-
scan-args: |-
46-
-r
47-
--skip-git
48-
./

0 commit comments

Comments
 (0)