-
Notifications
You must be signed in to change notification settings - Fork 67
37 lines (37 loc) · 1.2 KB
/
auto_import.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Auto advisory import
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
job:
continue-on-error: false
name: Auto import
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v2
with:
go-version: '^1.16.4'
- run: |
wget http://pypa-advisory-db.storage.googleapis.com/triage/pypi_links.json
wget http://pypa-advisory-db.storage.googleapis.com/triage/pypi_versions.json
- run: |
wget https://storage.googleapis.com/cve-osv-conversion/nvd/nvdcve-2.0-2024.json
- run: |
go install github.com/google/osv/vulnfeeds/cmd/pypi@master
pypi -false_positives triage/false_positives.yaml \
-nvd_json nvdcve-2.0-2024.json \
-pypi_links pypi_links.json \
-pypi_versions pypi_versions.json \
-out_dir vulns \
-without_notes \
-exclude_unbounded
git config user.name github-actions
git config user.email [email protected]
git add vulns
git diff --cached
env:
GONOPROXY: github.com/google/osv
- run: git diff --cached --quiet || git commit -m 'Auto import'
- run: git push