Skip to content

Commit

Permalink
testing bandit scan config file
Browse files Browse the repository at this point in the history
  • Loading branch information
nambi21 committed Jan 15, 2025
1 parent cd1ec49 commit 4c714c6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Perform Bandit Analysis
uses: PyCQA/bandit-action@v1
with:
configfile: 'DEFAULT'
configfile: 'pre_commit.toml'
profile: 'DEFAULT'
tests: 'DEFAULT'
skips: 'DEFAULT'
Expand Down
17 changes: 17 additions & 0 deletions pre_commit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool.bandit]
# Exclude specific directories or files from the scan
exclude = ["docs/"]

# Specify the test IDs to be skipped
skips = [
"B323", # _create_unverified_context
"B314", # xml.etree.ElementTree.parse
"B404", # subprocess module
"B405", # xml.etree.ElementTree
"B311", # Standard pseudo-random generators
"B403" # pickle module
]

# Set the severity and confidence levels
severity = "LOW"
confidence = "HIGH"

0 comments on commit 4c714c6

Please sign in to comment.