Commit 75cf8f4
committed
Auto-sync version comments after Dependabot Actions bumps
When Dependabot updates a SHA pin on a uses: line that carries a
trailing `# zizmor: ignore[...]` comment, its comment-rewriter often
chokes and leaves the `# vX.Y.Z` version comment stale. zizmor's
ref-version-mismatch audit then turns red until the comment is fixed by
hand — see PR #70 for an example.
Add a workflow that fires on every push to dependabot/github_actions/**,
runs `zizmor --fix=safe .github/workflows`, and pushes a fixup commit
back to the dependabot branch when there's anything to fix. Modeled on
the `basecamp/fizzy` repo's `dependabot-sync-saas-lockfile.yml` pattern
(push trigger, contents: write, `git diff --cached --quiet` guard to
prevent loops). zizmor's CLI is installed via the prebuilt linux-x86_64
tarball at a pinned version since the official zizmorcore/zizmor-action
exposes only audit-shaped inputs and cannot apply fixes.1 parent b7afa5c commit 75cf8f4
1 file changed
Lines changed: 40 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 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments