|
6 | 6 | # Bandit is a security linter designed to find common security issues in Python code. |
7 | 7 | # This action will run Bandit on your codebase. |
8 | 8 | # The results of the scan will be found under the Security tab of your repository. |
| 9 | +# |
| 10 | +# Configuration: This workflow uses pyproject.toml for centralized security settings. |
| 11 | +# Local development: make security (uses pyproject.toml) |
| 12 | +# CI/CD: This workflow (uses pyproject.toml via ini_path) |
9 | 13 |
|
10 | 14 | # https://github.com/marketplace/actions/bandit-scan is ISC licensed, by abirismyname |
11 | 15 | # https://pypi.org/project/bandit/ is Apache v2.0 licensed, by PyCQA |
@@ -38,14 +42,11 @@ jobs: |
38 | 42 | # Github token of the repository (automatically created by Github) |
39 | 43 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information. |
40 | 44 | # File or directory to run bandit on |
41 | | - # path: # optional, default is . |
| 45 | + path: archipy/ # Scan the archipy directory (matches local make security command) |
42 | 46 | # Report only issues of a given severity level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything) |
43 | 47 | # level: # optional, default is UNDEFINED |
44 | 48 | # Report only issues of a given confidence level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything) |
45 | 49 | # confidence: # optional, default is UNDEFINED |
46 | | - # comma-separated list of paths (glob patterns supported) to exclude from scan (note that these are in addition to the excluded paths provided in the config file) (default: .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg) |
47 | | - excluded_paths: "features,docs,scripts" |
48 | | - # comma-separated list of test IDs to skip |
49 | | - # skips: # optional, default is DEFAULT |
| 50 | + # Exclusions and skips are now configured in pyproject.toml for centralized management |
50 | 51 | # path to a .bandit file that supplies command line arguments |
51 | | - # ini_path: # optional, default is DEFAULT |
| 52 | + ini_path: pyproject.toml # Use pyproject.toml configuration for centralized security settings |
0 commit comments