Skip to content

Commit

Permalink
Merge pull request #132 from vil02/add_pip_audit
Browse files Browse the repository at this point in the history
chore: add `pip_audit`
  • Loading branch information
vil02 authored Nov 11, 2024
2 parents cff5b93 + fbf10d0 commit 1ac51c7
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/pip_audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: pip_audit

'on':
workflow_dispatch:
push:
branches:
- master
pull_request:
schedule:
- cron: '10 2 * * 1,3'

jobs:
pip_audit:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Set up Poetry
uses: snok/install-poetry@v1

- name: Install poetry-plugin-export
run: |
poetry self add poetry-plugin-export
- name: Generate requirements
run: |
poetry export --format=requirements.txt --output=requirements.txt
poetry export --with dev --format=requirements.txt --output=dev-requirements.txt
- name: Run pip-audit
uses: pypa/[email protected]
with:
inputs: requirements.txt dev-requirements.txt
...

0 comments on commit 1ac51c7

Please sign in to comment.