Merge pull request #247 from crytic/dependabot/github_actions/actions… #1531
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: Scan dependencies for vulnerabilities with pip-audit | |
| on: | |
| push: | |
| branches: [ "dev" ] | |
| pull_request: | |
| branches: [ "dev" ] | |
| schedule: | |
| - cron: "0 12 * * *" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pip-audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.x" | |
| - name: Install project | |
| run: | | |
| python -m venv /tmp/pip-audit-env | |
| source /tmp/pip-audit-env/bin/activate | |
| python -m pip install --upgrade pip setuptools wheel | |
| python -m pip install . | |
| - name: Run pip-audit | |
| uses: pypa/[email protected] | |
| with: | |
| virtual-environment: /tmp/pip-audit-env |