Skip to content

Commit 73562e7

Browse files
claudeEliahKagan
authored andcommitted
Run the zizmor job on ubuntu-slim
The `zizmor` job is fast, single-threaded, and uses little RAM, so it is the kind of job that `ubuntu-slim` runners are for. Such runners are created and destroyed faster than full VM runners, and they don't count toward the concurrent limit on full Ubuntu runners. But the job could not use `ubuntu-slim`, because `zizmorcore/zizmor-action` ran `zizmor` in a Docker container. `ubuntu-slim` runners have a `docker` client but no daemon, so container-based steps can't run there. Starting in version 0.7.0, `zizmor-action` no longer uses Docker. Instead, it uses the runner's `python3 -m pip download` to fetch a hash-pinned `zizmor` wheel, then extracts and runs the executable. The upstream change was made to support `ubuntu-slim`, and the action's own selftests now run on it: zizmorcore/zizmor-action#169 The `ubuntu-slim` image provides Python 3.12 with `pip`, which is all the new installation method needs. So this upgrades `zizmor-action` from 0.6.2 to 0.7.1 and switches the job's runner to `ubuntu-slim`. 0.7.1 is used rather than the newer 0.8.0, because 0.8.0 is still within the 7-day cooldown we give Dependabot for updates. The `advanced-security` and `annotations` inputs used here are unchanged in 0.7.1. `zizmor-action` 0.7.1 defaults to `zizmor` 1.31.1 (up from 1.29.0). Running both versions locally with the `pedantic` persona reports the same single finding, a low-severity `ref-version-mismatch` on an existing line in `release.yml`, so the upgrade should not by itself introduce any new results. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 34c27b2 commit 73562e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/zizmor.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616
jobs:
1717
zizmor:
1818
name: Audit GitHub Actions
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-slim
2020
permissions:
2121
contents: read # Inspect the checked-out workflow files.
2222
actions: read # Inspect referenced actions during online audits.
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
persist-credentials: false
2929
- name: Analyze workflow security
30-
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
30+
uses: zizmorcore/zizmor-action@85b2b9fb8e3325e7a23d7d0a9d7ba5ae0f999e3e # v0.7.1
3131
with:
3232
persona: pedantic
3333
advanced-security: ${{ !github.event.repository.private }}

0 commit comments

Comments
 (0)