diff --git a/.github/workflows/ci-docs.yml b/.github/workflows/ci-docs.yml index 4460edd..31cbe06 100644 --- a/.github/workflows/ci-docs.yml +++ b/.github/workflows/ci-docs.yml @@ -46,6 +46,9 @@ jobs: run: pdm checks types - name: Check vulnerabilities in dependencies + uses: pyupio/safety-action@v1 + with: + api-key: ${{ secrets.SAFETY_API_KEY }} run: pdm checks dependencies tests: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b372b84..ddf046b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,9 @@ jobs: run: pdm checks types - name: Check vulnerabilities in dependencies + uses: pyupio/safety-action@v1 + with: + api-key: ${{ secrets.SAFETY_API_KEY }} run: pdm checks dependencies tests: diff --git a/noxfile.py b/noxfile.py index 7f4a9fe..a08f250 100644 --- a/noxfile.py +++ b/noxfile.py @@ -99,7 +99,7 @@ def checks(session: nox.Session, file: str) -> None: requirements_path, ] session.run(*(args + dict(requirements_types)[file]), external=True) - session.run('safety', 'check', '-r', requirements_path) + session.run('safety', 'scan', '-r', requirements_path) @nox.session(python=PYTHON_VERSIONS)