Add dependency vulnerability scan CI gates #2
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: deps-scan | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: "0 7 * * 1" | |
| permissions: | |
| contents: read | |
| jobs: | |
| allowlist-expiry: | |
| name: "IntentProof Security: Deps Allowlist" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate dependency allowlist expiry dates | |
| run: bash ./scripts/check-deps-allowlist.sh | |
| pip-audit: | |
| name: "IntentProof Security: pip-audit" | |
| needs: allowlist-expiry | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install package and pip-audit | |
| run: pip install -e ".[dev]" pip-audit | |
| - name: Run pip-audit | |
| run: pip-audit --desc on | |
| osv-scanner: | |
| name: "IntentProof Security: OSV-Scanner" | |
| needs: allowlist-expiry | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run OSV-Scanner gate | |
| run: bash ./scripts/run-osv-scanner-gate.sh |