Skip to content

Commit 3be7ca2

Browse files
authored
Update osv-scanner-unified.yml
1 parent 87af318 commit 3be7ca2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/osv-scanner-unified.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ on:
2323
push:
2424
branches: ["master"]
2525

26-
permissions:
27-
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
28-
actions: read
29-
# Read commit contents
30-
contents: read
26+
# Declare default permissions as read only.
27+
permissions: read-all
28+
3129

3230
jobs:
3331
scan-scheduled:
3432
permissions:
3533
# Required for writing security events to upload SARIF file to security tab
3634
security-events: write
35+
actions: read
36+
contents: read
3737
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
3838
# If you want to copy this config, highly suggest pinning this version to a release rather than tracking the main branch
3939
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@8bd1ce1c4be9d98053ffd9e6e14585276a36762c" # v1.9.1
@@ -47,6 +47,8 @@ jobs:
4747
permissions:
4848
# Required for writing security events to upload SARIF file to security tab
4949
security-events: write
50+
actions: read
51+
contents: read
5052
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
5153
# If you want to copy this config, highly suggest pinning this version to a release rather than tracking the main branch
5254
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@8bd1ce1c4be9d98053ffd9e6e14585276a36762c" # v1.9.1

0 commit comments

Comments
 (0)