make tides resilient to flaky NOAA upstream #32
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/**' | |
| - 'frontend/**' | |
| - '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) | |
| # PYSEC-2026-89 affects markdown 3.10.2; no upstream fix available yet. | |
| run: pip-audit -r requirements.txt --ignore-vuln PYSEC-2026-89 |