Skip to content

Commit

Permalink
test: Add audit and bandit (#532)
Browse files Browse the repository at this point in the history
Co-authored-by: Bigad Soleiman <bigadsoleiman@gmail.com>
  • Loading branch information
charles-marion and bigadsoleiman authored Aug 12, 2024
1 parent 096299c commit c1fa5fe
Show file tree
Hide file tree
Showing 5 changed files with 2,077 additions and 1,807 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,22 @@ jobs:
- name: Backend
run: |
npm ci
npm audit
npm run build
npm run test
npx cdk synth
- name: PyTests
# Suppression of pip audit failure until langchain is upgraded.
run: |
pip install -r pytest_requirements.txt
bandit -r .
pip-audit -r pytest_requirements.txt || true
pip-audit -r lib/shared/web-crawler-batch-job/requirements.txt || true
pip-audit -r lib/shared/file-import-batch-job/requirements.txt || true
pytest tests/
- name: Frontend
working-directory: ./lib/user-interface/react-app
run: |
npm ci
npm audit
npm run build
1 change: 1 addition & 0 deletions bandit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude_dirs: ['tests', 'cdk.out', 'dist', 'node_modules', 'lib/user-interface/react-app']
Loading

0 comments on commit c1fa5fe

Please sign in to comment.