Skip to content

Commit 1cfdd02

Browse files
author
sangeet-joy_xero
committed
added vulnerable package to text test the pipeline
1 parent a2bdc74 commit 1cfdd02

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

.github/workflows/build-test-lint.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,16 @@ jobs:
3434
run: |
3535
pip install pip-audit
3636
pip install -r requirements.txt
37-
pip-audit -r requirements.txt -o json > audit-result.json
38-
if [ -s audit-result.json ]; then
39-
echo "Vulnerabilities found!"
40-
cat audit-result.json
41-
exit 1
42-
else
43-
echo "No vulnerabilities found"
44-
fi
37+
echo "running audit...."
38+
pip-audit -r requirements.txt
4539
working-directory: xero-python
4640

4741
- name: Run audit on dev.txt
4842
run: |
4943
pip install pip-audit
5044
pip install -r requirements/dev.txt
51-
pip-audit -r requirements/dev.txt -o json > audit-result.json
52-
if [ -s audit-result.json ]; then
53-
echo "Vulnerabilities found!"
54-
cat audit-result.json
55-
exit 1
56-
else
57-
echo "No vulnerabilities found"
58-
fi
45+
echo "running audit...."
46+
pip-audit -r requirements/dev.txt
5947
working-directory: xero-python
6048

6149
- name: Run Flake8

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ python-dateutil>=2.7
33
urllib3>=2.2.3
44
certifi
55
setuptools>=75.1.0
6+
django==2.2.9

0 commit comments

Comments
 (0)