📦 Bump versions of multiple dependencies to address vulnerabilities #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Python Security Scan | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| scan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - run: | | |
| pip install pip-audit safety bandit || true | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt || true; fi | |
| if [ -f setup.py ]; then pip install . || true; fi | |
| if [ -f pyproject.toml ]; then pip install . || true; fi | |
| pip-audit || true | |
| safety check --full-report || true | |
| bandit -q -r . || true |