Commit 3c0e45b
authored
🐛 fix(ci): repair pre-commit config and remaining zizmor findings (#26)
CI on `main` is red for every job because the `zizmor` hook added in #25
cannot parse `.pre-commit-config.yaml`. The file mixes 2- and 4-space
list indentation, so pre-commit aborts with `InvalidConfigError` before
any hook runs. 🔧
#25 also enabled `zizmor` without running it against `action.yml` or
`.github/dependabot.yaml`, which carry five real findings:
`astral-sh/setup-uv` and `actions/cache` are referenced by floating tag
rather than commit SHA, `${{ inputs.extra_args }}` is interpolated
directly into a `run:` block (template injection), and the Dependabot
config has no `cooldown`. Pinning to SHAs matches the policy already
applied in `.github/workflows/main.yml`. Moving `inputs.extra_args` into
the step's `env:` and referencing it as `${INPUTS_EXTRA_ARGS}` removes
the injection path while preserving word splitting, so callers passing
multiple flags keep working.
The workflow jobs are also renamed from `main-*` to `self-test-*` and
the workflow gains a top-level `name: CI`, so PR status checks read as
`CI / self-test-uvx` instead of `main / main-uvx`. ✨1 parent d8eb059 commit 3c0e45b
4 files changed
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
0 commit comments