-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (34 loc) · 908 Bytes
/
pip_audit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
...