Skip to content

Commit 213a102

Browse files
authored
Import CVEs from all years
1 parent cefaa4e commit 213a102

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/auto_import.yaml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,23 @@ jobs:
1414
with:
1515
go-version: '^1.16.4'
1616
- run: |
17-
wget http://pypa-advisory-db.storage.googleapis.com/triage/pypi_links.json
18-
wget http://pypa-advisory-db.storage.googleapis.com/triage/pypi_versions.json
17+
wget https://pypa-advisory-db.storage.googleapis.com/triage/pypi_links.json
18+
wget https://pypa-advisory-db.storage.googleapis.com/triage/pypi_versions.json
1919
- run: |
20-
wget https://storage.googleapis.com/cve-osv-conversion/nvd/nvdcve-2.0-2024.json
20+
for year in $(seq 2002 $(date +%Y)); do
21+
wget https://storage.googleapis.com/cve-osv-conversion/nvd/nvdcve-2.0-$year.json;
22+
done
2123
- run: |
2224
go install github.com/google/osv/vulnfeeds/cmd/pypi@master
23-
pypi -false_positives triage/false_positives.yaml \
24-
-nvd_json nvdcve-2.0-2024.json \
25-
-pypi_links pypi_links.json \
26-
-pypi_versions pypi_versions.json \
27-
-out_dir vulns \
28-
-without_notes \
29-
-exclude_unbounded
25+
for nvdfile in nvdcve-2.0-*.json; do
26+
pypi -false_positives triage/false_positives.yaml \
27+
-nvd_json $nvdfile \
28+
-pypi_links pypi_links.json \
29+
-pypi_versions pypi_versions.json \
30+
-out_dir vulns \
31+
-without_notes \
32+
-exclude_unbounded;
33+
done
3034
git config user.name github-actions
3135
git config user.email github-actions@github.com
3236
git add vulns

0 commit comments

Comments
 (0)