Repository navigation
Commit 0bb6dbd
ci: require zizmor in final (#1535)
<!-- entire-trail-link-start -->
https://entire.io/gh/jdx/usage/trails/80
<!-- entire-trail-link-end -->
zizmor ran as its own workflow (\`zizmor.yml\`), so the \`final\` check
that branch protection requires never saw it. A zizmor failure could not
block merging.
This moves the zizmor job into \`test.yml\` and makes \`final\` depend
on it:
- Adds a \`zizmor\` job to \`test.yml\` with the same steps, pinned SHAs
and \`advanced-security: false\` as before, and \`contents: read\`
permissions.
- Adds \`zizmor\` to \`final\`'s \`needs\`. \`final\` now fails unless
\`needs.zizmor.result == success\`, so a failed, cancelled or skipped
zizmor run blocks the merge.
- Deletes \`zizmor.yml\`.
Behavior change: zizmor previously ran only on pushes to main and on PRs
touching \`.github/workflows/**\`. It now runs on every PR and push,
because a path-filtered job would be skipped and a skipped job would
fail \`final\`. It is a short job.
Not validated locally beyond reading the diff: no YAML parser,
actionlint or zizmor was usable here. CI on this PR is the validation.
Mirrors jdx/hk#1679.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
*AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5;
version: unavailable.*
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> CI workflow wiring only; no runtime or application code changes.
>
> **Overview**
> **Moves the zizmor workflow security scan into `test.yml` so branch
protection’s `final` check can block merges when it fails.**
>
> The standalone `.github/workflows/zizmor.yml` is removed and replaced
with a `zizmor` job in `test.yml` (same pinned actions and
`advanced-security: false`). `final` now lists `zizmor` in `needs` and
exits non-zero unless `needs.zizmor.result` is `success`, so failed,
cancelled, or skipped zizmor runs fail the required check.
>
> **Behavior change:** zizmor previously ran only on `main` pushes and
PRs touching `.github/workflows/**`; it now runs on every `test`
workflow trigger so a path-filtered skip would not fail `final`.
>
> Also updates a version comment on
`apple-actions/import-codesign-certs` in `publish-cli.yml` (`# v7` → `#
v7.0.0`).
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
fcc1959. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* The test workflow now runs an additional security scan, and the final
check requires that scan to succeed.
* The separate workflow that ran security scans on pushes to the main
branch and qualifying pull requests has been removed. Security scanning
is now part of the test workflow instead.
* No changes to app functionality are included.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>1 parent b3f7f5e commit 0bb6dbd
3 files changed
Lines changed: 21 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
27 | 41 | | |
28 | 42 | | |
29 | 43 | | |
30 | 44 | | |
31 | | - | |
| 45 | + | |
32 | 46 | | |
33 | 47 | | |
34 | 48 | | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
38 | 52 | | |
| 53 | + | |
39 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
40 | 59 | | |
41 | 60 | | |
42 | 61 | | |
| |||
This file was deleted.
0 commit comments