Skip to content

Commit

Permalink
test: bandit CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Mar 14, 2024
1 parent 9969b06 commit 4a5c7d7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,21 @@ jobs:
autorest --python --help
$HOME/.autorest/\@autorest_python\@*/node_modules/\@autorest/python/venv/bin/python -m pip install --upgrade setuptools
pytest --no-cov --regenerate-client diracx-client/tests/test_regenerate.py
bandit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
init-shell: bash
post-cleanup: 'all'
- name: Set up environment
run: |
pip install bandit
- name: Run bandit
run: |
bandit --skip B101 -r diracx-{core,api,cli,routers,db}/src/ || true

0 comments on commit 4a5c7d7

Please sign in to comment.