File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ # Copyright 2024 Google LLC
3+ #
4+ # Licensed under the Apache License, Version 2.0 (the "License");
5+ # you may not use this file except in compliance with the License.
6+ # You may obtain a copy of the License at
7+ #
8+ # http://www.apache.org/licenses/LICENSE-2.0
9+ #
10+ # Unless required by applicable law or agreed to in writing, software
11+ # distributed under the License is distributed on an "AS IS" BASIS,
12+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ # See the License for the specific language governing permissions and
14+ # limitations under the License.
15+
16+ name : OSV-Scanner
17+
18+ on :
19+ pull_request :
20+ branches : ["master"]
21+ schedule :
22+ - cron : " 12 12 * * 1"
23+ push :
24+ branches : ["master"]
25+
26+ permissions :
27+ # Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
28+ actions : read
29+ # Require writing security events to upload SARIF file to security tab
30+ security-events : write
31+ # Read commit contents
32+ contents : read
33+
34+ jobs :
35+ scan-scheduled :
36+ if : ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
37+ # If you want to copy this config, highly suggest pinning this version to a release rather than tracking the main branch
38+ uses : google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@c80d3cb8d7bfabae9f047f6b8ea68792dd2ebcf6 # v1.9.0
39+ scan-pr :
40+ if : ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
41+ # If you want to copy this config, highly suggest pinning this version to a release rather than tracking the main branch
42+ uses : google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@c80d3cb8d7bfabae9f047f6b8ea68792dd2ebcf6 # v1.9.0
You can’t perform that action at this time.
0 commit comments