Skip to content

Commit 90d9554

Browse files
ci: pin pip-audit version in dependency audit
1 parent c6d6075 commit 90d9554

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/dependency-audit.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
- '.github/workflows/dependency-audit.yml'
1414
permissions:
1515
contents: read
16+
env:
17+
PIP_AUDIT_VERSION: '2.9.0'
1618

1719
jobs:
1820
runtime-audit:
@@ -39,7 +41,7 @@ jobs:
3941
id: audit
4042
continue-on-error: true
4143
run: |
42-
uvx pip-audit -r /tmp/runtime-dependencies.txt --format json -o /tmp/runtime-audit.json
44+
uvx --from pip-audit==${PIP_AUDIT_VERSION} pip-audit -r /tmp/runtime-dependencies.txt --format json -o /tmp/runtime-audit.json
4345
- name: Summarize Runtime Audit
4446
if: always()
4547
id: summarize
@@ -117,7 +119,7 @@ jobs:
117119
id: audit
118120
continue-on-error: true
119121
run: |
120-
uvx pip-audit -r /tmp/development-dependencies.txt --format json -o /tmp/development-audit.json
122+
uvx --from pip-audit==${PIP_AUDIT_VERSION} pip-audit -r /tmp/development-dependencies.txt --format json -o /tmp/development-audit.json
121123
- name: Summarize Development Audit
122124
if: always()
123125
id: summarize

0 commit comments

Comments
 (0)