File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed
Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,35 @@ jobs:
2626 source venv/bin/activate
2727 pip install --upgrade pip
2828 pip install black
29+ pip install pip-audit
2930 sudo pip install flake8
3031 pip install -r requirements.txt -r requirements/dev.txt
3132 working-directory : xero-python
3233
34+ - name : Run audit on requirements.txt
35+ run : |
36+ pip-audit -r requirements.txt -o json > audit-result.json
37+ if [ -s audit-result.json ]; then
38+ echo "Vulnerabilities found!"
39+ cat audit-result.json
40+ exit 1
41+ else
42+ echo "No vulnerabilities found"
43+ fi
44+ working-directory : xero-python
45+
46+ - name : Run audit on dev.txt
47+ run : |
48+ pip-audit -r requirements/dev.txt -o json > audit-result.json
49+ if [ -s audit-result.json ]; then
50+ echo "Vulnerabilities found!"
51+ cat audit-result.json
52+ exit 1
53+ else
54+ echo "No vulnerabilities found"
55+ fi
56+ working-directory : xero-python
57+
3358 - name : Run Flake8
3459 run : flake8 xero_python
3560 working-directory : xero-python
Original file line number Diff line number Diff line change 11# make sure content of this file can be parsed by setup.load_requirements
22python-dateutil >= 2.7
3- urllib3
3+ urllib3 >= 2.2.3
44certifi
5+ setuptools >= 75.1.0
Original file line number Diff line number Diff line change 1+ prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero_accounting.yaml --host 127.0.0.1 --port 4010 &
2+ prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero-app-store.yaml --host 127.0.0.1 --port 4011 &
3+ prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero_assets.yaml --host 127.0.0.1 --port 4012 &
4+ prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero_bankfeeds.yaml --host 127.0.0.1 --port 4013 &
5+ prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero-finance.yaml --host 127.0.0.1 --port 4014 &
6+ prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero-payroll-uk.yaml --host 127.0.0.1 --port 4015 &
7+ prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero-payroll-nz.yaml --host 127.0.0.1 --port 4016 &
8+ prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero-payroll-au.yaml --host 127.0.0.1 --port 4017 &
9+ prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero-projects.yaml --host 127.0.0.1 --port 4018
You can’t perform that action at this time.
0 commit comments