feat: comprehensive package enhancements and infrastructure #1
Workflow file for this run
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: Dependency Scanning | |
| on: | |
| schedule: | |
| - cron: '0 9 * * 5' # Run at 9:00 UTC every Friday | |
| push: | |
| paths: | |
| - 'pyproject.toml' | |
| pull_request: | |
| paths: | |
| - 'pyproject.toml' | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| scan: | |
| name: Security Scan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install poetry safety | |
| poetry export -f requirements.txt --without-hashes -o requirements.txt | |
| - name: Run safety check | |
| run: | | |
| safety check -r requirements.txt --full-report | |
| - name: Check for outdated dependencies | |
| run: | | |
| pip install pip-audit | |
| pip-audit -r requirements.txt || true # Don't fail workflow on findings | |
| - name: Cache results | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cache/pip | |
| .audit-results | |
| key: ${{ runner.os }}-dependency-scan-${{ hashFiles('pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-dependency-scan-${{ hashFiles('pyproject.toml') }} |