Skip to content

Scan dependencies for vulnerabilities with pip-audit #571

Scan dependencies for vulnerabilities with pip-audit

Scan dependencies for vulnerabilities with pip-audit #571

Workflow file for this run

name: Scan dependencies for vulnerabilities with pip-audit
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "0 12 * * *"
permissions: {}
jobs:
pip-audit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Install Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
# TODO: change to "3.x" once dependencies are updated
python-version: "3.10"
- name: Install project
run: |
python -m venv --upgrade-deps /tmp/pip-audit-env
source /tmp/pip-audit-env/bin/activate
python -m pip install --upgrade wheel
python -m pip install .[dev]
- name: Run pip-audit
uses: pypa/gh-action-pip-audit@1220774d901786e6f652ae159f7b6bc8fea6d266 # v1.1.0
with:
virtual-environment: /tmp/pip-audit-env