diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml index e83122a..6f0a245 100644 --- a/.github/workflows/bandit.yml +++ b/.github/workflows/bandit.yml @@ -2,11 +2,7 @@ name: Security check - Bandit on: workflow_dispatch: - pull_request: push: - branches: - - master - - develop jobs: build: @@ -16,7 +12,7 @@ jobs: - uses: actions/checkout@v3 - name: Run bandit - uses: ioggstream/bandit-report-artifacts@v1.7.4 + uses: VCTLabs/bandit-report-artifacts@v2 with: project_path: redis_ipc.py - ignore_failure: true + config_file: pyproject.toml diff --git a/pyproject.toml b/pyproject.toml index 9e0e09b..3e54343 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,3 +38,6 @@ include_trailing_comma = true force_grid_wrap = 0 use_parentheses = true ensure_newline_before_comments = true + +[tool.bandit] +exclude_dirs = ["docs"]