File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 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
3230jobs :
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
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
You can’t perform that action at this time.
0 commit comments