ci: isolate bandit venv outside repo scan path
All checks were successful
All checks were successful
This commit is contained in:
parent
c981e30c00
commit
f29112e8b9
1 changed files with 3 additions and 3 deletions
|
|
@ -150,7 +150,7 @@ jobs:
|
|||
ln -sf /root/.local/bin/uv /usr/local/bin/uv
|
||||
ln -sf /root/.local/bin/uvx /usr/local/bin/uvx
|
||||
uv python install 3.11
|
||||
uv venv --python 3.11 .venv
|
||||
uv pip install --python .venv/bin/python bandit
|
||||
uv venv --python 3.11 /tmp/bandit-venv
|
||||
uv pip install --python /tmp/bandit-venv/bin/python bandit
|
||||
- name: Bandit (high+medium severity)
|
||||
run: source .venv/bin/activate && bandit -r . -x tests/,.venv,__pycache__ -ll
|
||||
run: source /tmp/bandit-venv/bin/activate && bandit -r . -x tests/,.venv,__pycache__ -ll
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue