Commit 3820bb9
authored
ci: add zizmor static analysis workflow (#1012)
* ci: add zizmor static analysis for workflows
Runs zizmor (https://docs.zizmor.sh) on every PR that touches workflow
or zizmor config files, and on every push to main. Findings upload to
the Security tab via SARIF; the workflow itself never fails (per
zizmor-action's recommended Advanced Security mode -- gate merges with
a code scanning ruleset if desired).
The zizmor.yml at the repo root ignores a small, deliberately-chosen
set of findings:
- dangerous-triggers: pull_request_target / workflow_run on the six
workflows that use them defensively (don't execute PR code; only
inspect metadata or apply pre-vetted artifacts).
- excessive-permissions on cla.yml: the third-party CLA assistant
action needs the listed scopes; the workflow has one job that uses
all of them.
Everything else (template-injection, artipacked, secrets-inherit,
use-trusted-publishing) stays visible. With the upstream fixes in
#1009 applied, the baseline is 0 High / 10 Medium / 13 Informational --
all advisory, all worth surfacing.
* ci(zizmor): move config to .github/zizmor.yml, tidy trigger
Addresses Copilot review on #1012:
- Move zizmor.yml from repo root to .github/zizmor.yml. The workflow's
paths filter already pointed at .github/zizmor.yml, and zizmor
auto-discovers either location; co-locating with the workflows makes
the relationship obvious.
- Drop branches: ["**"] on pull_request (default is all base branches).
- Drop the zizmor.yml path entry (the config no longer lives there).1 parent e440b82 commit 3820bb9
2 files changed
Lines changed: 75 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments