Skip to content

Commit

Permalink
chg: dev: update bandit workflow, add config to pyproject.toml
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen L Arnold <[email protected]>
  • Loading branch information
sarnold committed Oct 2, 2023
1 parent af465d5 commit 4436aaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ name: Security check - Bandit

on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- develop

jobs:
build:
Expand All @@ -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
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 4436aaa

Please sign in to comment.