Skip to content

Commit

Permalink
chore: Use new safety API
Browse files Browse the repository at this point in the history
  • Loading branch information
georgedouzas committed Oct 26, 2024
1 parent bf4223d commit 3e883b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e883b0

Please sign in to comment.