Skip to content

Commit 460003e

Browse files
authored
Run Zizmor via uv (#610)
* Run Zizmor via uv * Update PDM while we're at it
1 parent 01e0fb0 commit 460003e

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
python-version: "${{ matrix.python-version }}"
2828
allow-python-prereleases: true
2929
cache: true
30-
version: "2.19.2"
30+
version: "2.21.0"
3131

3232
- name: "Run Tox"
3333
run: |
@@ -113,7 +113,7 @@ jobs:
113113
- uses: "pdm-project/setup-pdm@v4"
114114
with:
115115
python-version: "3.12"
116-
version: "2.19.2"
116+
version: "2.21.0"
117117

118118
- name: "Install check-wheel-content and twine"
119119
run: "python -m pip install twine check-wheel-contents"

.github/workflows/zizmor.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# https://github.com/woodruffw/zizmor
21
name: Zizmor
32

43
on:
@@ -10,24 +9,24 @@ on:
109
permissions:
1110
contents: read
1211

13-
1412
jobs:
1513
zizmor:
16-
name: Zizmor latest via Cargo
14+
name: Zizmor latest via uv
1715
runs-on: ubuntu-latest
1816
permissions:
1917
security-events: write
18+
2019
steps:
2120
- name: Checkout repository
2221
uses: actions/checkout@v4
2322
with:
2423
persist-credentials: false
25-
- name: Setup Rust
26-
uses: actions-rust-lang/setup-rust-toolchain@v1
27-
- name: Get zizmor
28-
run: cargo install zizmor
24+
- name: Install the latest version of uv
25+
uses: astral-sh/setup-uv@v4
26+
with:
27+
version: "latest"
2928
- name: Run zizmor
30-
run: zizmor --format sarif . > results.sarif
29+
run: uvx zizmor --format sarif . > results.sarif
3130
- name: Upload SARIF file
3231
uses: github/codeql-action/upload-sarif@v3
3332
with:

0 commit comments

Comments
 (0)