Skip to content

Commit a4ebf2f

Browse files
authored
Create osv-scanner-unified.yml (#3666)
* Create osv-scanner-unified.yml OSV-Scanner is used to find existing vulnerabilities that affect the project's dependencies Issue - b/275499664 * Adding version number
1 parent a8e4057 commit a4ebf2f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)