Repository navigation
fix(workflow): route sync target input through env in bootstrap step - #1287
Merged
Merged
Conversation
c-vigo
added a commit
that referenced
this pull request
Jul 28, 2026
…on blocks (#1288) ## Summary Advances the pinned `nixpkgs` rev from nixos-26.05 @ `34268251` (2026-06-22) to @ `8623c4c2` (2026-07-26) and drops the `.vulnixignore` exception blocks whose fixes have propagated to the channel. Deliberately kept out of the 1.4.2 patch train (mass rebuild); the jq block's expiry (2026-08-03) was the nearest deadline. ## Before/after vulnix diff (per docs/CONTAINER_SECURITY.md §4) Scanned `.#devkitImageEnv` closure at both pins against the nvd-mirror. **Unique CVEs: 112 → 56. No new HIGH/CRITICAL (CVSS ≥ 7.0) findings introduced.** | Package | Before | After | Register action | |---|---|---|---| | openssl | 3.6.2 | **3.6.3** | block dropped (10 CVEs) | | curl | 8.20.0 | **8.21.0** | block dropped (17 CVEs) | | openssh | 10.3p1 | **10.4p1** | block dropped (CVE-2026-60002) | | jq | 1.8.1 | **1.8.2** | CVE-2026-49839 entry dropped (line-granular; shared `Expiration: 2026-08-03` directive and libssh2/socat survivors preserved) | | unbound | 1.25.1 | 1.25.1 | kept — fix not propagated | | gawk | 5.4.0 | 5.4.0 | kept — fix not propagated | | podman | 5.8.2 | 5.8.2 | kept — fix not propagated | | fzf | 0.72.0 | 0.72.0 | kept — fix not propagated | | libssh2 | 1.11.1 | 1.11.1 | kept — fix not propagated | - Kept blocks' re-verification notes refreshed to 2026-07-28 with the new pin context. - New surface: jq 1.8.2 shows three unrelated advisories (CVE-2026-33948 5.3, CVE-2026-39979 6.5, CVE-2026-44777 5.5) — all below the 7.0 gate threshold, awareness-only, **no new exceptions added**. - gzip/ldns/libxml2 also cleared from the report incidentally; their (harmless, non-gating) register entries were left untouched per minimal diff. ## Verification - `nix flake update nixpkgs` — flake.lock diff touches only the nixpkgs node - `uv run check-expirations .trivyignore .vulnixignore` — 37 exceptions validated, exit 0 - `uv run vulnix-gate vulnix-after.json --register .vulnixignore` — "No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 33 exception(s) applied", exit 0 (independently re-run at review) - `nix build .#devkitImage` — image builds at the new pin - `prek run --all-files` — all hooks green - TDD n/a (lockfile + exception-register change) Includes a merge of current dev (changelog-overlap resolution with #1286/#1287). Closes #1273
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
DEVKIT_SYNC_TARGETmirror-bootstrap step (injected at scaffold time byrender_sync_settings()inassets/init-workspace.sh) interpolated thetarget-branchworkflow_dispatch input directly into itsrun:block — a zizmor template-injection (High) in the rendered consumer workflow. First hit in the wild: vig-os/org-config#80, which carries a local forward-port of this exact fix until the template ships it. The #1182 hardening sweep never saw it because the step only renders when the knob is set.The heredoc now uses standard env indirection, matching the template's existing
TARGET_BRANCH:pattern: the dispatch input is forwarded asTARGET_INPUTin the step'senv:, and the run body readsTARGET="${TARGET_INPUT:-<manifest-target>}". The scaffold-time default is safe as a literal —DEVKIT_SYNC_TARGETis allowlist-validated ([A-Za-z0-9._/-]) at scaffold time. Cron-triggered runs still fall back to the default (empty input →:-expansion).Changes
assets/init-workspace.sh— env indirection in the bootstrap-step heredoctests/bats/init-workspace.bats— new test: rendered bootstrap step forwards the input via env, has no inline${{ github.event.inputsin the run body, and still lands the default (TDD: committed RED first)CHANGELOG.md+assets/workspace/.devcontainer/CHANGELOG.md—### Securityentry (mirror synced by the sync-manifest hook)Verification
26bdb254), fix turns it green (953a930a)bats tests/bats/init-workspace.bats: 244/244 ok, including the hostile-DEVKIT_SYNC_TARGETguard testDEVKIT_SYNC_TARGET=sync/issue-mirror) structural check: 0 inline${{ github.event.inputsin the run body, 1TARGET_INPUT:env forward; rendered form is functionally identical to org-config#80's forward-portassets/init-workspace.sh: clean;prek run --all-files: all hooks greenRollout note
org-config#80 can drop its local forward-port once this ships — and conversely, org-config's next devkit upgrade would re-introduce the zizmor finding if this doesn't ship first.
Closes #1279