Skip to content

Commit

Permalink
added vulnerable package to text test the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 8, 2024
1 parent a2bdc74 commit 1cfdd02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/build-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,16 @@ jobs:
run: |
pip install pip-audit
pip install -r requirements.txt
pip-audit -r requirements.txt -o json > audit-result.json
if [ -s audit-result.json ]; then
echo "Vulnerabilities found!"
cat audit-result.json
exit 1
else
echo "No vulnerabilities found"
fi
echo "running audit...."
pip-audit -r requirements.txt
working-directory: xero-python

- name: Run audit on dev.txt
run: |
pip install pip-audit
pip install -r requirements/dev.txt
pip-audit -r requirements/dev.txt -o json > audit-result.json
if [ -s audit-result.json ]; then
echo "Vulnerabilities found!"
cat audit-result.json
exit 1
else
echo "No vulnerabilities found"
fi
echo "running audit...."
pip-audit -r requirements/dev.txt
working-directory: xero-python

- name: Run Flake8
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ python-dateutil>=2.7
urllib3>=2.2.3
certifi
setuptools>=75.1.0
django==2.2.9

0 comments on commit 1cfdd02

Please sign in to comment.