Skip to content

Commit bcbb68f

Browse files
fix: actions permissions and upgrade osv to 1.9.1 (#76)
* fix: actions permissions and upgrade osv to 1.9.1 * fix: change scan path --------- Co-authored-by: hardy <[email protected]>
1 parent 9dce08d commit bcbb68f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/osv-scanner.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,19 @@ on:
1616
branches: [ "main" ]
1717

1818
permissions:
19+
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
20+
actions: read
1921
# Require writing security events to upload SARIF file to security tab
2022
security-events: write
21-
# Read commit contents
23+
# Only need to read contents
2224
contents: read
2325

2426
jobs:
2527
scan-pr:
26-
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@1f1242919d8a60496dd1874b24b62b2370ed4c78" # v1.7.1
28+
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.9.1"
2729
with:
2830
# Example of specifying custom arguments
2931
scan-args: |-
3032
-r
3133
--skip-git
32-
./
34+
/github/workspace

0 commit comments

Comments
 (0)