Sync action pin version comments + port the dependabot sync automation

Merged
JE
4mo ago
+22-11

Problem

Dependabot PR #454 bumped 12 action SHAs but left stale # vX.Y.Z comments on 9 lines. Two compounding causes:

  1. Dependabot only rewrites bare version comments. Every stale line carried a trailing # zizmor: ignore[...] suffix; dependabot updated the SHA but wouldn't touch the compound comment (verified empirically in 61a5d6b8: bare comments were rewritten, compound ones untouched).
  2. Current zizmor can't see or fix compound comments either. Since ~1.26, # v6.4.0 # zizmor: ignore[...] no longer parses as a version comment; ref-version-mismatch degrades from a regular-persona auto-fixable warning to a pedantic-persona help with no auto-fix. CI runs zizmor-action version: latest → audit green, --fix=all a no-op on exactly these lines.

Change

Fix the 9 stale comments and restructure all 11 compound-comment pin lines: each inline # zizmor: ignore[...] moves to its own line directly below the uses: line (reason text kept). Verified against zizmor 1.28.0: the target audit stays ignored (ignored-count unchanged at 15), and the now-bare version comment can be maintained by dependabot and by zizmor's ref-version-mismatch auto-fix. Version values verified against upstream tags via git ls-remote:

ActionComment
setup-gov6.4.0 → v7.0.0
checkout (go tag push)v6.0.2 → v7.0.1
setup-ruby ×2v1.302.0 → v1.319.0
setup-node ×2v6.3.0 → v7.0.0
setup-gradle ×2v6.1.0 → v6.2.0
action-gh-releasev3.0.0 → v3.0.2
setup-uv ×2v8.3.2 (already correct — restructure only)

dependabot-auto-merge.yml:14 is untouched — its ignore is on an if: line, not a pin.

Automation withdrawn from this PR

An earlier revision also ported the push-triggered dependabot-sync-actions-comments.yml from basecamp-mcp-server. Review surfaced two real problems with that lineage: the push-triggered form executes the freshly-bumped (unreviewed) checkout action with a write token, and GITHUB_TOKEN cannot push workflow-file modifications at all (openclaw-basecamp hit exactly this on its first live run — openclaw-basecamp@54c96d3e — and moved to a deploy key). The automation is being rebuilt instead on openclaw-basecamp's hardened model (workflow_run from the default branch, head branch fetched as data only, deploy-key lease push) as a reusable workflow in basecamp/.github with thin callers across basecamp-sdk, basecamp-cli, hey-cli, fizzy-cli, and cli. This PR is now the comment fix only.

Verification

  • zizmor 1.28.0 (matches CI's latest): no findings, 15 ignored (unchanged). Local Homebrew zizmor upgraded 1.24.1 → 1.28.0; 1.24.1 was already failing make lint-actions on main (it still warned on the 9 stale compound comments).
  • make lint-actions (actionlint + zizmor 1.28.0) passes.
  • Sabotage test: broke # v7.0.0 → # v6.9.9, ran zizmor --fix=all → repaired exactly, no other churn.