Skip to content

A very simple action to apply security scanning of all python code with bandit. - #394

Draft
jonasbardino wants to merge 1 commit into
nextfrom
add/python-code-security-scanning-action
Draft

A very simple action to apply security scanning of all python code with bandit.#394
jonasbardino wants to merge 1 commit into
nextfrom
add/python-code-security-scanning-action

Conversation

@jonasbardino

@jonasbardino jonasbardino commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

A very simple action to apply security scanning of all python code with the bandit code scanner:
https://github.com/PyCQA/bandit
using the PyCQA bandit-action from
https://bandit.readthedocs.io/en/latest/ci-cd/github-actions.html

Might need tuning and limit target to changed code like we do it for linting.

the `bandit` scanner. Might need tuning and limit target to change code.
@jonasbardino jonasbardino self-assigned this Dec 10, 2025
@jonasbardino jonasbardino added the test-only Improvements or additions solely for better test coverage - without functionality changes label Dec 10, 2025
@jonasbardino

Copy link
Copy Markdown
Contributor Author

Consider implementing as a make target as well or instead.

jonasbardino added a commit that referenced this pull request Jul 29, 2026
…ble easy

inline security scanning of our python code.
Reuses the existing lint model with scanning of files in `LINT_ENFORCE_DIRS`.
Example use to scan all code in the `mig/lib/` folder:
```
make secscan-python LINT_ENFORCE_DIRS=mig/lib/
```

Might be used in conjunction with or in a future replacement for #394.

Updated the Makefile inline help and polished some details to make sure
local dependencies are automatically installed on first use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-only Improvements or additions solely for better test coverage - without functionality changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant