Skip to content

Commit 41178bf

Browse files
committed
fix: pip-audit GitHub Action
1 parent bb2ed03 commit 41178bf

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/pypa-pip-audit.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# https://github.com/pypa/gh-action-pip-a
12
name: 'PyPA pip-audit'
23

34
on:
@@ -15,5 +16,10 @@ jobs:
1516
steps:
1617
- uses: actions/checkout@v4
1718
- name: install
18-
run: python -m pip install .
19-
- uses: pypa/gh-action-pip-audit@v1.1.0
19+
run: |
20+
python -m venv env/
21+
source env/bin/activate
22+
python -m pip install .
23+
- uses: pypa/gh-action-pip-audit@v1.1.0
24+
with:
25+
virtual-environment: env/

0 commit comments

Comments
 (0)