File tree Expand file tree Collapse file tree 6 files changed +49
-5
lines changed Expand file tree Collapse file tree 6 files changed +49
-5
lines changed Original file line number Diff line number Diff line change 9
9
strategy :
10
10
matrix :
11
11
os : [ubuntu-latest, macos-latest, windows-latest]
12
- python-version : [3.6, 3.7, 3. 8]
12
+ python-version : [3.8]
13
13
steps :
14
14
- uses : actions/checkout@v2
15
15
- name : Set up Python 3.7
Original file line number Diff line number Diff line change
1
+ name : Upload depscan Python Package
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
7
+
8
+
9
+ jobs :
10
+ deploy :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v1
18
+ with :
19
+ python-version : ' 3.x'
20
+ - name : Install dependencies
21
+ run : |
22
+ python -m pip install --upgrade pip
23
+ pip install setuptools wheel twine
24
+ - name : Create Release
25
+ id : create_release
26
+ uses : actions/create-release@v1
27
+ env :
28
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
+ with :
30
+ tag_name : ${{ github.ref }}
31
+ release_name : Release ${{ github.ref }}
32
+ draft : false
33
+ prerelease : false
34
+ - name : Build and publish
35
+ env :
36
+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
37
+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
38
+ run : |
39
+ python setup.py sdist bdist_wheel
40
+ twine upload dist/*
Original file line number Diff line number Diff line change 21
21
"Intended Audience :: System Administrators" ,
22
22
"Topic :: Utilities" ,
23
23
"Topic :: Security" ,
24
- "Programming Language :: Python :: 3.6" ,
25
- "Programming Language :: Python :: 3.7" ,
26
24
"Programming Language :: Python :: 3.8" ,
27
25
"License :: OSI Approved :: MIT License" ,
28
26
"Operating System :: OS Independent" ,
29
27
],
30
- python_requires = ">=3.6 " ,
28
+ python_requires = ">=3.8 " ,
31
29
)
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def test_cve_json():
19
19
def test_convert (test_cve_json ):
20
20
nvdlatest = NvdSource ()
21
21
data = nvdlatest .convert (test_cve_json )
22
- assert len (data ) == 385
22
+ assert len (data ) == 384
23
23
for v in data :
24
24
details = v .details
25
25
for detail in details :
Original file line number Diff line number Diff line change @@ -342,6 +342,9 @@ def from_values(
342
342
version_right = "<=" + max_affected_version_including
343
343
if version_left and not version_right :
344
344
version = version_left
345
+ # Convert >0.0.0 to *
346
+ if version == ">0.0.0" :
347
+ version = "*"
345
348
elif not version_left and version_right :
346
349
version = version_right
347
350
elif version_left and version_right :
Original file line number Diff line number Diff line change @@ -123,6 +123,9 @@ def convert_vuln(vuln):
123
123
severity = None
124
124
base_score = None
125
125
description = vuln ["cve" ]["description" ]["description_data" ][0 ]["value" ]
126
+ # Issue 12 - Ignore disputed vulnerabilities
127
+ if "** DISPUTED **" in description :
128
+ return None
126
129
rdata = vuln ["cve" ]["references" ]["reference_data" ]
127
130
related_urls = [r ["url" ] for r in rdata ]
128
131
if "baseMetricV3" in vuln ["impact" ]:
You can’t perform that action at this time.
0 commit comments