File tree 3 files changed +19
-1
lines changed
3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 22
22
run : |
23
23
python -m pip install --upgrade pip
24
24
pip install ".[dev]"
25
+ - name : Audit Python packages for known vulnerabilities
26
+ run : |
27
+ if ! RES=$(ossaudit --installed --config setup.cfg); then
28
+ RES="${RES//'%'/'%25'}"
29
+ RES="${RES//$'\n'/'%0A'}"
30
+ RES="${RES//$'\r'/'%0D'}"
31
+ echo "::error ::${RES}"
32
+ exit 1
33
+ fi
34
+ echo ${RES}
25
35
- name : Format with black
26
36
run : |
27
37
if ! RES=$(black --check $(git diff --name-only --diff-filter=AM master -- "*.py") 2>&1); then
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pytest-mock==1.10.4
10
10
pytest-profiling==1.7.0
11
11
pytest-sugar==0.9.2
12
12
tzlocal
13
-
14
13
invoke==1.3.0
15
14
readme-renderer==24.0
16
15
twine==1.15.0
16
+ ossaudit; python_version >= '3.5'
Original file line number Diff line number Diff line change @@ -9,3 +9,11 @@ python_classes = *Test *Benchmark
9
9
markers =
10
10
api: test requiring an initialized API
11
11
request_context: switch the request
12
+
13
+ [ossaudit]
14
+
15
+ # The issue is fixed since the v40.8.0 of setuptools, but
16
+ # the python3.5 and python3.6 use the old versions.
17
+ # https://ossindex.sonatype.org/vuln/06e60262-8241-42ef-8f64-e3d72091de19
18
+ # Ignore it until we suppor python < 3.7
19
+ ignore-ids = 06e60262-8241-42ef-8f64-e3d72091de19
You can’t perform that action at this time.
0 commit comments