Repository navigation
redesign: dark glacier UI, vite/bun frontend, full test suite #15
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: Code Scanning | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'Dockerfile' | |
| - 'app/**' | |
| - 'tests/**' | |
| - 'pyproject.toml' | |
| - 'requirements.txt' | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| security-events: write | |
| contents: read | |
| jobs: | |
| 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' | |
| cache: 'pip' | |
| - name: Install scanning tools | |
| run: | | |
| pip install --upgrade pip | |
| pip install bandit[sarif] pip-audit | |
| - name: Run Bandit (SAST) | |
| run: bandit -r app/ -f sarif -o bandit-results.sarif --severity-level medium | |
| - name: Upload Bandit SARIF | |
| uses: github/codeql-action/upload-sarif@v3 | |
| if: always() | |
| with: | |
| sarif_file: bandit-results.sarif | |
| category: bandit | |
| - name: Run pip-audit (dependency vulnerabilities) | |
| run: pip-audit -r requirements.txt |