From 3bdae3c54cccd75bba1947ec201d9db74efbc476 Mon Sep 17 00:00:00 2001 From: zwitschi Date: Wed, 12 Nov 2025 11:53:34 +0100 Subject: [PATCH] fix: Update Bandit command in CI workflows to run checks on tests directory --- .bandit | 3 --- .gitea/workflows/ci_backup.yml | 2 +- .gitea/workflows/cicache.yml | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 .bandit diff --git a/.bandit b/.bandit deleted file mode 100644 index 62b15ee..0000000 --- a/.bandit +++ /dev/null @@ -1,3 +0,0 @@ -[bandit] -skips = B101,B601 -exclude_dirs = alembic,scripts diff --git a/.gitea/workflows/ci_backup.yml b/.gitea/workflows/ci_backup.yml index 836fdcd..30a39b7 100644 --- a/.gitea/workflows/ci_backup.yml +++ b/.gitea/workflows/ci_backup.yml @@ -51,7 +51,7 @@ jobs: run: black --check . - name: Run bandit - run: bandit --ini .\.bandit -c pyproject.toml . + run: bandit -c pyproject.toml -r tests test: runs-on: ubuntu-latest diff --git a/.gitea/workflows/cicache.yml b/.gitea/workflows/cicache.yml index 77deb4d..e843f6b 100644 --- a/.gitea/workflows/cicache.yml +++ b/.gitea/workflows/cicache.yml @@ -57,7 +57,7 @@ jobs: run: black --check . - name: Run Bandit - run: bandit --ini .\.bandit -c pyproject.toml . + run: bandit -c pyproject.toml -r tests test: runs-on: ubuntu-latest