-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 852 Bytes
/
audit.yaml
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
name: Pip Audit
on:
workflow_call:
inputs:
python-version:
required: true
type: string
jobs:
audit:
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
shell: bash
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
allow-prereleases: true
- uses: pdm-project/setup-pdm@v4
name: Setup PDM
with:
python-version: 3.12
allow-python-prereleases: true
cache: true
- name: Install dependencies
run: pdm install -G:all
- name: Set pythonpath
run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV
- name: Run pip audit
uses: pypa/gh-action-pip-audit@v1.0.8