You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sync-issues template: mirror-bootstrap step interpolates target-branch input into run block (zizmor template-injection) #1279
The DEVKIT_SYNC_TARGET mirror-bootstrap step in the sync-issues template (assets/workspace/.github/workflows/sync-issues.yml) interpolates the target-branch workflow_dispatch input directly into a run: block:
run: | set -euo pipefail TARGET="${{ github.event.inputs.target-branch || 'sync/issue-mirror' }}"
zizmor flags this as template-injection (High confidence) and the consumer zizmor gate (#1182) fails the render. First hit in the wild: vig-os/org-config#80 (first consumer to set DEVKIT_SYNC_TARGET) — the step only renders when the knob is set, which is why the #1182 hardening sweep never saw it.
Fix
Standard env indirection, as used elsewhere in the template (cf. the TARGET_BRANCH: env pattern in the commit step):
env:
TARGET_INPUT: ${{ github.event.inputs.target-branch }}run: | set -euo pipefail TARGET="${TARGET_INPUT:-sync/issue-mirror}"
org-config carries this exact forward-port locally in PR vig-os/org-config#80 until the template fix ships — its next devkit upgrade will re-introduce the finding if this isn't fixed first.
Surfaced 2026-07-28 while pointing org-config's sync at a mirror branch (#1227 mechanism).
Docs rider for the fix PR (from the "should mirror mode optionally open a PR to main?" exploration, 2026-07-28 — verdict: don't build it, document the manual pattern):
Add a paragraph to the DEVKIT_SYNC_TARGET documentation (the .vig-os comment block and/or the sync-issues docs):
Want the snapshots visible on main? Open a checkpoint PR at your own cadence: gh pr create --base main --head <mirror-branch>. Merges are conflict-free by construction — only the sync job writes docs/issues/ and docs/pull-requests/ — and subsequent checkpoints show only the new sync commits. Note the PR path subjects the generated markdown to the repo's full lint gate, which the direct mirror push never exercises.
Rationale for not automating: the mirror serves git-archival (clone-portable record), live issues remain the browsing/search surface, exactly one consumer (org-config) runs mirror mode today, and an automated PR would add daily update noise plus recurring lint friction on generated content. If more trunk consumers with protected mains appear, revisit with an ephemeral squashed staging branch + one standing auto-refreshed PR rather than PR-ing the permanently-diverging mirror.
Fixed by PR #1287 (merged to dev, milestone 1.4.3). The bootstrap-step heredoc now routes the target-branch dispatch input through env (TARGET_INPUT); org-config can drop the #80 forward-port on its next devkit upgrade.
Activity
chore: env-indirect the target-branch input in the bootstrap step
c-vigo commentedon Jul 28, 2026
Docs rider for the fix PR (from the "should mirror mode optionally open a PR to main?" exploration, 2026-07-28 — verdict: don't build it, document the manual pattern):
Add a paragraph to the
DEVKIT_SYNC_TARGETdocumentation (the.vig-oscomment block and/or the sync-issues docs):Rationale for not automating: the mirror serves git-archival (clone-portable record), live issues remain the browsing/search surface, exactly one consumer (org-config) runs mirror mode today, and an automated PR would add daily update noise plus recurring lint friction on generated content. If more trunk consumers with protected mains appear, revisit with an ephemeral squashed staging branch + one standing auto-refreshed PR rather than PR-ing the permanently-diverging mirror.
test(workflow): assert bootstrap step routes target input via env
fix(workflow): route sync target input through env in bootstrap step
fix(workflow): route sync target input through env in bootstrap step (#…
c-vigo commentedon Jul 28, 2026
Fixed by PR #1287 (merged to dev, milestone 1.4.3). The bootstrap-step heredoc now routes the target-branch dispatch input through env (TARGET_INPUT); org-config can drop the #80 forward-port on its next devkit upgrade.
feat(workspace): scaffold-time Refs policy knob (DEVKIT_REFS_POLICY) (#…
chore: release 1.5.0 (#308)
chore: release 1.5.1 (#330)
chore: release 1.5.1 (#1311)
feat: fold the sync mirror archive at release and reset it at promote (…