Repository navigation
chore: release 1.3.0 - #1138
Merged
Merged
chore: release 1.3.0#1138
Conversation
The changelog freeze commits only the root CHANGELOG.md (scaffold- verbatim); regenerate assets/workspace/.devcontainer/CHANGELOG.md on dev so the sync-manifest hook stays green during the release window.
Automated sync of `main` to `dev` found **merge conflicts** that require manual resolution. ### How to resolve ```bash git fetch origin chore/sync-main-to-dev-20-1:chore/sync-main-to-dev-20-1 git checkout chore/sync-main-to-dev-20-1 git merge origin/dev # resolve conflicts git commit -S git push origin chore/sync-main-to-dev-20-1 ``` Once pushed, this PR will update and become mergeable.
The image shipped the full 222 MiB upstream glibcLocales archive but only ever sets en_US.UTF-8. Bind one overridden derivation (allLocales = false; locales = [ "en_US.UTF-8/UTF-8" ]) and use it in BOTH image references — the imageTools entry AND the LOCALE_ARCHIVE OCI-config env store-path interpolation — so only one small (~3 MiB) locale path lands in the closure. Changing only one site would keep both archives, growing the image. Measured closure drop: ~220 MiB uncompressed, zero functional change. Refs: #1104
The dev-side mirror reconcile must share ancestry with the release branch: the extension fast-forwards dev to the release-branch sync commit (non-force ref update, only while dev still sits on the freeze commit) instead of minting a sibling commit, so the post-promote sync-main-to-dev merge sees the mirror rewrite as common history. Fallback to the sibling-commit reconcile stays pinned for the dev-advanced race. Refs: #1115
The extension previously minted a sibling reconcile commit on dev (same parent and tree as the release-branch sync commit, distinct object), so the mirror's merge base at post-promote sync time was the stale pre-freeze content and sync-main-to-dev conflicted on the mirror every release cycle. Fast-forwarding dev to the release branch's sync commit makes the mirror rewrite shared ancestry, the same property that keeps the root changelog conflict-free. Dev-advanced races and ref-update failures fall back to the sibling-commit reconcile (status quo). Every rollback failure path still leaves dev's root+mirror consistent. Refs: #1115
## Summary The image shipped the full 222 MiB `glibcLocales` archive while only ever setting `en_US.UTF-8`. This binds one overridden derivation (`allLocales = false; locales = [ "en_US.UTF-8/UTF-8" ]`) and points **both** image references at it — the `imageTools` entry **and** the `LOCALE_ARCHIVE` OCI-config Env interpolation. Fixing only one of the two would have kept the full archive in the closure via the Env store-path reference (the trap #1104 exists to avoid). ## Evidence - `.#devkitImageEnv` closure: **2.1 GiB → 1.9 GiB** - `nix path-info -r | grep glibc-locales` → exactly one path, **2.9 MiB** (was 222.4 MiB) - Full hook suite green (`prek run --all-files`, exit 0) - No other `glibcLocales` reference exists repo-wide (dev-shell/home module unaffected); `tests/` locale matches concern dev-shell glibc ABI, not image locales — no test changes needed Part of epic #1103 (sub-issue 1/5). Zero functional change; the overridden derivation was even substitutable from cache.nixos.org. Closes #1104
The baked `bandit` in `imageTools` was built by nixpkgs against CPython 3.13 while the image toolchain is 3.14, dragging a stray second Python package stack (ddt, stevedore, pyyaml, rich, markdown-it-py, mdurl, pygments, gitpython, gitdb, smmap) plus a full git-minimal (via gitpython) into the closure — ~74 MiB, unused. The committed hooks run the venv bandit via `uv run` (pinned `bandit[toml]==1.9.4`); the sandbox `checks.pre-commit` bandit (nix/hooks.nix) is outside the image closure and untouched. Refs: #1105
…1121) ## Summary Every release cycle the post-promote `sync-main-to-dev` PR conflicted on exactly one file: the workspace changelog mirror `assets/workspace/.devcontainer/CHANGELOG.md` (#1091, #1114). Root cause, verified on the 1.2.1 cycle: the prepare extension minted the mirror reconcile as a **sibling commit** on `dev` (`11ff0e1c`) — same parent (freeze `849b324a`) and same tree (`d5b4f190`) as the release-branch sync commit (`e727daf0`), but a distinct object. Dev's copy was never an ancestor of the release branch, so the mirror's merge base at sync time was the stale pre-freeze content → deterministic overlap conflict. The root changelog merges clean precisely because the freeze commit *is* shared ancestry. ## Fix After the extension commits the mirror sync to the release branch, **fast-forward `dev` to that commit** (non-force ref `PATCH` via the COMMIT_APP token) — but only while dev still sits on the freeze commit (`inputs.branch_sha`). Both branches then share the literal commit object, giving the mirror the same shared-ancestry property that already keeps the root changelog conflict-free. - FF target is the release commit-action step's `commit-sha` **output**, not a fresh ref read (avoids the read-after-write ref lag documented in #617). - `force=false` makes the update FF-only and atomic: a dev that advanced in the race window can never be clobbered. Deliberately not retried — a legitimate non-FF rejection must not be retried; transient failures degrade to the fallback. - Dev-advanced race or any PATCH failure → fall back to the previous sibling-commit reconcile (status quo, never worse; that one cycle may conflict). - Rollback interplay preserved: every step after the FF is gated on `ff_done != 'true'`, and the fallback reconcile commit stays the job's last step — every failure path still leaves dev's root+mirror consistent under prepare-release.yml's dev-advanced guard. Header comment rewritten with the full analysis. Devkit-local change only: `prepare-release.yml` stays scaffold-verbatim; the consumer no-op scaffold extension is untouched. ## Verification - TDD: `5f991fa2` pins the new invariants (3 red structural tests), `71dc5d79` turns them green — `tests/test_workflow_prepare_extension.py`: 18 passed. - Full pre-commit suite green locally (actionlint validates the new step's `steps.*.outputs` references and `if` expressions). - Scratch-repo ancestry proof: root-only freeze → sibling mirror commits on both branches → `git merge-tree --write-tree` conflicts on the mirror (reproduces #1114); dev fast-forwarded to the release-branch sync commit instead → same merge is clean. - Real end-to-end proof lands next release cycle: the sync PR should come out titled without "(conflicts)" and auto-merge. Closes #1115
## Summary Removes `bandit` from `imageTools`. The baked copy was vestigial: the committed `.pre-commit-config.yaml` runs `uv run bandit` (the venv bandit, pinned in `pyproject.toml` as `bandit[toml]==1.9.4`), and the only Nix-bandit consumer is the sandbox `checks.pre-commit` profile in `nix/hooks.nix` — outside the image closure and untouched here. nixpkgs builds `bandit` against CPython 3.13 while the image toolchain is 3.14, so this one entry dragged in a stray 3.13 package stack (ddt, stevedore, pyyaml, rich, pygments, gitpython, …) **plus a duplicate `git-minimal` (52 MiB)** via gitpython. ## Evidence - `.#devkitImageEnv` closure: **−78,095,400 bytes (74.5 MiB)** - `nix path-info -r | grep -E 'python3.13-|git-minimal|bandit'` → only `python3.13-pyflakes` remains, anchored solely by `actionlint` (verified with `nix why-depends`) — that is #1107's target, not part of the bandit stack - `checks.pre-commit` still evaluates (`nix eval …pre-commit.drvPath` clean); `uv run bandit --version` → `bandit 1.9.4, python 3.14.4` - Baked-bandit test assertions removed (`test_bandit_installed`, `EXPECTED_VERSIONS` entry) — removal is the intended behavior - Full hook suite green (`prek run --all-files`, exit 0), including the surviving venv bandit hook Part of epic #1103 (sub-issue 2/5). One of the four anchors of the redundant CPython 3.13 interpreter; the interpreter itself falls in #1107. Closes #1105
The image shipped the full local podman runtime (crun, criu, conmon, netavark, rootless-networking/networking helpers, libkrun/libkrunfw, aardvark-dns, fuse-overlayfs, runc) solely to run isolated containers in-container -- the retired podman-in-podman sidecar model, declared non-contract in #1103. All remaining usage is Docker-out-of-Docker against the host's rootless podman socket, where podman is a thin client. Swap the image's podman for a client-only build: .override the helper inputs with an empty stub and drop extraRuntimes, keeping the podman binary, --version, and completions. Scope the swap to imageTools (filter the full podman out of the devTools SSoT and add the client) so the dev-shell keeps its daemonless runtime unchanged. Point the docker->podman shim at the client so it cannot re-pull the full runtime. Drops ~67 MiB of uncompressed image closure; systemd stays (buildInput linked into the podman binary). Allowlist the removed helper's package name in the typos config. Refs: #1106
## Summary The image shipped podman's full local runtime for the retired podman-in-podman sidecar model. Everything the scaffold actually does is **Docker-out-of-Docker** against the host's rootless podman socket (`initialize.sh` mounts it as `/var/run/docker.sock`), so the image now ships a **client-only podman**: `pkgs.podman.override` with the helper inputs (`crun`, `conmon`, `netavark`, `passt`, `aardvark-dns`, `fuse-overlayfs`, `runc`) stubbed and `extraRuntimes = []`. `catatonit` stays (tiny; keeps the installPhase glob non-empty). The `docker → podman` shim is retained and repointed at the client build so it cannot silently re-pull the full runtime. **Scope guard:** the swap is image-only — `devTools` (the SSoT) still ships the full runtime, so dev-shell users keep daemonless `podman run` on real hosts. **Contract:** in-container *isolated* (nested) container execution is removed — declared non-contract in #1103 (`semver:minor`). ## Honest size correction Net closure reduction is **~67 MiB, not the epic's ~254 MiB estimate**. The estimate assumed dropping podman entirely; keeping the client binary (~54 MiB) and `systemd` (rpath-linked into podman; `systemdMinimal` breaks `podman logs` per the nixpkgs pin) accounts for the difference. The strategic goal is fully met regardless: **`criu` is gone**, which removes one of the four anchors of the redundant CPython 3.13 interpreter (unblocks #1107). Changelog and flake comment carry the corrected figure. Epic table will be updated. ## Evidence - Closure: 2,293,215,224 → 2,222,999,680 bytes (**−67 MiB**, 424 → 408 paths) - `grep -E 'crun|criu|conmon|netavark|passt|libkrun|aardvark|fuse-overlayfs|runc-'` over the new closure → **empty** (verified independently, including `gvproxy`, which the pin already excludes on this platform) - `podman --version` → `podman version 5.8.2`; bash/zsh/fish completions present - No test changes needed: `test_image.py` asserts only client-level behavior (`podman --version`, docker shim); no test asserts in-image runtime helpers - `.vulnixignore`: no stranded entries (the `podman` CVE entry stays valid — client still ships; systemd-transitive entries persist since systemd stays) - Full hook suite green (`prek run --all-files`, exit 0) - `.typos.toml`: allowlist `passt` (real package name) Part of epic #1103 (sub-issue 3/5). Closes #1106
The direnv/`nix develop` path never set `core.hooksPath`, so commit-time hooks were silently inactive until the consumer set it by hand. Add a `TestGithooksPathWiring` suite asserting the base dev-shell shellHook wires `core.hooksPath` -> `.githooks`, guards on a scaffold-shaped `.githooks/` dir and the main worktree, and never unsets it. Refine the #908 opt-in guard to allow the sanctioned `.githooks` set while still rejecting any other hooksPath mutation. Refs: #1112
Read DEVKIT_TAG_PREFIX and DEVKIT_FLOATING_TAGS before the managed-template overwrite of .vig-os and write them back when set, mirroring the DEVKIT_MODULES restore. Without this an upgrade reset a consumer's release tag scheme to the empty template defaults, cutting bare tags and stalling floating tags. Refs: #1116
Add regression tests for the post-scaffold `just sync` step: direnv mode must skip the container-side sync entirely, and a failing sync in devcontainer mode must warn-and-continue with init exiting 0. Refs: #1118
…d non-fatal Skip the container-side `just sync` entirely in direnv and bare modes, where the consumer's host nix/direnv shell owns dependency install and a container `npm ci`/`uv sync` would write wrong-platform, wrong-owner artifacts into the bind-mounted workspace. In devcontainer and both modes the sync still runs but warns and continues on failure instead of aborting init with a misleading "Failed to initialize workspace" after an otherwise complete scaffold. Refs: #1118
In direnv / `nix develop` mode the dev-shell never set `core.hooksPath`, so commit-time hooks (pre-commit / commit-msg via prek) were silently inactive until the consumer set it by hand — a local commit could bypass the gate with only CI catching it later. Devcontainer mode already wired it in setup-git-conf.sh. mkProjectShell's base shellHook now runs `git config core.hooksPath .githooks` on shell entry, mirroring the devcontainer and reinforcing the `.githooks` single-entry-point invariant (#908) — it only ever sets `.githooks`, never unsets/resets it or installs into `.git/hooks`. It lives in the shared base so the default `hooks = null` shell and an opted-in shell change identically, keeping the zero-hooks parity. Guarded to a scaffold-shaped repo (`.githooks/` at the git toplevel) and to the main worktree (worktree git-dir == common git-dir), so it leaves non-scaffold consumers untouched and never fights the worktree flow (justfile.worktree deliberately unsets core.hooksPath and installs prek hooks directly in a linked worktree); idempotent on re-entry. Refs: #1112
A flake-hooks consumer's .pre-commit-config.yaml is a symlink into the host /nix/store, which is not mounted inside the image where init-workspace runs, so the symlink is dangling from the container's view. The preserve/exclude gate, the add/preserve report, and the divergence guard tested presence with -e/-f, which follow the link and reported it absent — so rsync -avL overwrote the symlink with the template config and the #1092 ignore auto-seed never fired. Add a path_present helper (-e || -L) that treats a symlink of any kind as present, and route all three gates through it, so the symlink survives untouched and the ignore seed still runs. Refs: #1117
…apped actionlint Swap the image's full git for gitMinimal and drop actionlint's optional python3.13-pyflakes wrapper. With bandit (#1105) and criu (#1106) already gone, these were the last two anchors of the redundant python3-3.13.13 interpreter; the image closure drops ~149 MiB (interpreter + git-doc). Both swaps are image-only (builtins.filter in imageTools) — the dev-shell keeps full git and stock actionlint via devTools. gettext stays (linked by gitMinimal). Corrects the .vulnixignore perl provenance (now anchored by neovim -> wl-clipboard -> xdg-utils, not git). Refs: #1107
## Description An `install.sh --force` upgrade reset `DEVKIT_TAG_PREFIX` and `DEVKIT_FLOATING_TAGS` in a consumer's `.vig-os` manifest back to the empty template defaults, silently discarding consumer-set values. Action-publishing consumers set `DEVKIT_TAG_PREFIX=v` / `DEVKIT_FLOATING_TAGS=major,minor`; after an upgrade the next release cut bare `X.Y.Z` tags and stopped moving floating tags — a silent release-integrity regression, observed on the `vig-os/commit-action` 1.2.0 → 1.2.1 upgrade (vig-os/commit-action#80). Closes #1116 ## Type of Change - [ ] `feat` -- New feature - [x] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [ ] `chore` -- Maintenance task (deps, config, etc.) - [ ] `refactor` -- Code restructuring (no behavior change) - [ ] `test` -- Adding or updating tests - [ ] `ci` -- CI/CD pipeline changes - [ ] `build` -- Build system or dependency changes - [ ] `revert` -- Reverts a previous commit - [ ] `style` -- Code style (formatting, whitespace) ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - `assets/init-workspace.sh`: read `DEVKIT_TAG_PREFIX` / `DEVKIT_FLOATING_TAGS` from the consumer's `.vig-os` **before** the template rsync overwrite (alongside the existing MODE/identity/`DEVKIT_MODULES` reads) and conditionally write them back in the final persist block, mirroring the `DEVKIT_MODULES` preservation pattern (#884). Written back bare, matching the template's unquoted form. Persist-block comment updated. - `tests/bats/init-workspace.bats`: new regression test — scaffold, seed both keys, `--force` upgrade, assert both survive (the preservation gap had no coverage, which is how this regressed). ## Changelog Entry ### Fixed - **Preserve tag-scheme keys across `--force` upgrades** ([#1116](#1116)) - `init-workspace.sh` read back `DEVKIT_MODE`/identity/`DEVKIT_MODULES` before the managed-template overwrite of `.vig-os`, but not `DEVKIT_TAG_PREFIX` or `DEVKIT_FLOATING_TAGS`, so an upgrade silently reset a consumer's release tag scheme to the empty template defaults (observed cutting bare tags and stalling floating tags on the commit-action 1.2.0 → 1.2.1 upgrade). - Both keys are now read before the overwrite and written back (bare, matching the template's unquoted form) when the consumer set them. ## Testing - [x] Tests pass locally (`just test`) - [x] Manual testing performed (describe below) ### Manual Testing Details - TDD: the new bats test was committed failing (RED — `DEVKIT_TAG_PREFIX` reset to empty after upgrade), then the fix turned it GREEN. - Full `tests/bats/init-workspace.bats`: 199 tests, 0 failures, exit 0 (verified twice — implementation run and an independent review run). - `uv run pytest tests/test_release_tag_prefix.py tests/test_floating_tags.py`: 9 passed. - `prek run --all-files`: green. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes Part of the commit-action-deployment bug batch (#1116, #1117, #1118, plus #1111/#1112). Merge order: this PR first (priority high), the others rebase on top. Refs: #1116
…apped actionlint (#1126) ## Summary The image carried a second CPython interpreter (`python3-3.13.13`, 127 MiB) that the chosen 3.14 toolchain never uses, held by four anchors. #1105 (bandit) and #1106 (criu) removed two; this PR removes the last two and completes the eviction: - **full `git` → `gitMinimal`** (stock nixpkgs attr, cached — the exact derivation bandit's gitpython used to pull). Drops the git-p4/python-helper anchor plus `git-doc`. Loses `send-email`/`svn`/`p4`/`gitk`/`git help` man pages — declared non-contract in #1103 (`semver:minor`). Builtin-C porcelain (`log`, `commit`, `rebase -i`, `add -p`, worktrees) and SSH signing unaffected. - **`actionlint` → `overrideAttrs` without the `pyflakes` wrapper** (`.override` only exposes `python3Packages`, so the wrapper's `postInstall` is rewritten to wrap with `shellcheck` only). Loses inline-python lint on workflow `run:` steps; shellcheck-backed lint and the man page stay. Both swaps follow the image-scoped filter pattern from #1106 — `devTools` (the SSoT) is untouched, so the dev-shell keeps full git and stock actionlint. Also fixes the now-false provenance notes in `.vulnixignore`: the perl 5.42 entries claimed perl is in-closure "via git's perl-based subcommands"; after this PR its sole anchor is `neovim → wl-clipboard → xdg-utils` (the #1108 chain). CVE ignore lines themselves unchanged (perl is still present until #1108). ## Evidence (independently re-verified) - Closure: 1,914,744,512 → 1,758,754,952 bytes (**−148.8 MiB**, 395 → 378 paths) - **`nix path-info -r | grep -E 'python3-3.13|python3.13-'` → EMPTY** — the issue's hard gate - git: only `git-minimal-2.54.0` in the closure; `git version 2.54.0`; `git-p4` present only as the upstream "not built with python" stub - actionlint 1.7.12 runs; lints `.github/workflows/ci.yml` clean; its closure contains `shellcheck` and **zero** python paths - `gettext` stays (still linked by gitMinimal for i18n) — the changelog states this honestly rather than claiming it dropped - No test changes needed: `test_image.py` asserts only `git version` (identical string for gitMinimal); no send-email/pyflakes assertions exist - Full hook suite green (`prek run --all-files`, exit 0) Part of epic #1103 (sub-issue 4/5). Unblocks #1108 (perl eviction — git no longer anchors perl; only the neovim chain remains). Closes #1107
## Description In direnv mode a flake-hooks consumer's `.pre-commit-config.yaml` is a symlink into the **host** `/nix/store`. `install.sh` runs `init-workspace.sh` inside the devcontainer image where that store is not mounted, so the symlink is dangling from the container's viewpoint. The preserve/exclude gate used `[[ -e ]]` (which follows the link), reported the file absent, and `rsync -avL` wrote the real ~6 KB template over the symlink — which in turn prevented the #1092 ignore auto-seed (its gate is correctly target-based, but the symlink no longer existed when it ran). Net result on every direnv-mode flake-hooks upgrade: a committed, non-ignored template shadowing the flake-generated config. Observed on the `vig-os/commit-action` 1.2.0 → 1.2.1 upgrade (vig-os/commit-action#80). Closes #1117 ## Type of Change - [ ] `feat` -- New feature - [x] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [ ] `chore` -- Maintenance task (deps, config, etc.) - [ ] `refactor` -- Code restructuring (no behavior change) - [ ] `test` -- Adding or updating tests - [ ] `ci` -- CI/CD pipeline changes - [ ] `build` -- Build system or dependency changes - [ ] `revert` -- Reverts a previous commit - [ ] `style` -- Code style (formatting, whitespace) ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - `assets/init-workspace.sh`: new `path_present()` helper (`[[ -e || -L ]]` — a symlink of any kind, even dangling, is present) routed through all three presence gates: 1. the rsync preserve/exclude builder (the critical clobber fix — the symlink is now excluded from the template copy), 2. the `--preview` classification loop (a dangling store symlink now reports PRESERVED, not ADDED), 3. `PRECOMMIT_CONFIG_PREEXISTED` (was `-f`; the #878 divergence guard is no longer silently skipped). The #1092 ignore-seed gate itself is unchanged — it was already target-based (`readlink | grep /nix/store/`); the fix is that the symlink still exists when it runs. - `tests/bats/init-workspace.bats`: two regression tests reproducing the exact direnv-in-container scenario (dangling `/nix/store/...` target): symlink survives upgrade untouched + ignore seeded; `--preview` classifies PRESERVED. Also updated the existing whitebox exclude-gate assertion that pinned the old literal `-e` line. ## Changelog Entry ### Fixed - **Preserve a dangling flake-hooks store symlink through direnv-mode upgrades** ([#1117](#1117)) - In direnv mode `init-workspace.sh` runs inside the image where the host `/nix/store` is not mounted, so a flake-generated `.pre-commit-config.yaml` symlink is dangling; the `-e`/`-f` presence gates followed the link, reported it absent, and the template rsync overwrote it — also silencing the #1092 ignore auto-seed. - All presence gates now treat a symlink of any kind (including dangling) as present via a shared `path_present()` helper: the symlink survives the copy, the ignore is seeded, `--preview` classifies it as PRESERVED, and the #878 divergence guard sees the pre-existing config. ## Testing - [x] Tests pass locally (`just test`) - [x] Manual testing performed (describe below) ### Manual Testing Details - TDD: both regression tests committed failing (RED — symlink clobbered into a regular file; `--preview` misclassified as ADDED), turned GREEN by the fix. - Full `tests/bats/init-workspace.bats`: 200 tests, 0 failures, exit 0 (implementation run + independent review run). - `prek run --all-files`: green. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes Part of the commit-action-deployment bug batch. Known adjacent, deliberately not fixed here: `print_preserved_template_diff` still gates on `-f`, so the #878 divergence *diff* is not printed for a dangling symlink — harmless (a store symlink has no meaningful template diff and cannot be validated while unmounted). #1111 (root-`.gitignore` migration, same function) follows in a separate PR after this one merges. Refs: #1117
After #1107 swapped full git for gitMinimal, perl 5.42.0's sole image anchor was neovim -> wl-clipboard -> xdg-utils -> perl. The nixpkgs neovim wrapper bakes wl-clipboard as the Wayland clipboard provider, which is dead code in a headless container; nvim >= 0.10 uses OSC52 natively over VS Code remote / SSH. Re-wrap neovim-unwrapped with wrapNeovimUnstable and waylandSupport = false for the image only (dev-shell keeps stock neovim via devTools), evicting the wl-clipboard -> xdg-utils -> perl subtree (~108 MiB). With perl gone from the closure, delete its 5.42.0 CVE exception batch from .vulnixignore (CVE-2026-4176, CVE-2026-13221, CVE-2026-57432) instead of maintaining it pending an upstream stable fix (cf. #1097/#1098). Refs: #1108
…tignore.project (#1129) ## Description The #1092 fix made `.gitignore.project` the durable, preserved home for repo-root ignores, but the upgrade that introduces it seeds it empty: any root ignores a consumer had previously hand-added directly to the managed root `.gitignore` (`.DS_Store`, editor/OS cruft, project paths) were silently dropped when the upgrade regenerated the file from the template. Of the issue's two suggested fixes, this implements the preferred one — **auto-migrate** the consumer's lines into `.gitignore.project` — with the upgrade-note listing as its natural side output. Closes #1111 ## Type of Change - [ ] `feat` -- New feature - [x] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [ ] `chore` -- Maintenance task (deps, config, etc.) - [ ] `refactor` -- Code restructuring (no behavior change) - [ ] `test` -- Adding or updating tests - [ ] `ci` -- CI/CD pipeline changes - [ ] `build` -- Build system or dependency changes - [ ] `revert` -- Reverts a previous commit - [ ] `style` -- Code style (formatting, whitespace) ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - `assets/init-workspace.sh`: - Snapshot the consumer's old root `.gitignore` before the rsync overwrite (placed with the other pre-overwrite state captures). - New single-responsibility `migrate_root_gitignore()`, called just before `render_gitignore()`: appends to `.gitignore.project` every old-root line that is non-blank, non-comment, not a managed entry (template base + active language fragments + the #1092 seed), and not already in `.gitignore.project`. Append-only (never reorders/rewrites the consumer's existing entries), deduplicated, and idempotent — after the first migration the lines live in `.gitignore.project`, so later upgrades re-add nothing. Prints `Migrated N consumer line(s) into .gitignore.project (#1111):` with the list. - The migrated lines flow into the regenerated root `.gitignore` via `render_gitignore()`'s existing `.gitignore.project` append — no separate write. - `tests/bats/init-workspace.bats`: three regression tests — migrate (lines land in `.gitignore.project` and remain effective in the rendered root `.gitignore`, note printed), idempotence (second upgrade adds nothing), managed-lines-not-migrated. ## Changelog Entry ### Fixed - **Migrate hand-added root `.gitignore` lines into `.gitignore.project` on upgrade** ([#1111](#1111)) - The upgrade that introduced the #1092 `.gitignore.project` seam seeded it empty, silently dropping any root ignores a consumer had hand-added to the managed root `.gitignore` (regenerated from the template every upgrade). - Consumer-added entries (non-blank, non-comment, not template/fragment/seed-managed, not already present) are now migrated append-only into `.gitignore.project` before the render — deduplicated, idempotent across upgrades, with an upgrade note listing what moved. ## Testing - [x] Tests pass locally (`just test`) - [x] Manual testing performed (describe below) ### Manual Testing Details - TDD: all three regression tests committed failing (RED — no migration: note absent, `.DS_Store` missing from `.gitignore.project`), turned GREEN by the fix. - Full `tests/bats/init-workspace.bats`: 204 tests, 0 failures (implementation run + independent review run). - `prek run --all-files`: green (including shellcheck on the new function). ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes Wave 2 of the commit-action-deployment bug batch, branched after #1124 (same `render_gitignore()` region) merged. Deliberate design choice worth noting: a template example line a consumer *uncommented* (e.g. activating `.idea/`) migrates into `.gitignore.project` — correct data preservation, since their active ignore survives the upgrade. Refs: #1111
The finalize job's "Build release artifact" step ran `just bundle` without a preceding `just sync`, so a JS-Action consumer's bundler (ncc, a devDependency) was absent from PATH and the step exited 127 — rolling back the final release. Run `just sync` first, matching every other build job. Refs: #1130
) ## What Add `just sync` before `just bundle` in the `Build release artifact` step of the scaffolded `release-core.yml`. ## Why For a JS-Action consumer, `just bundle` → `npm run bundle` → `ncc …`, and `ncc` (`@vercel/ncc`) is a devDependency present only after `npm ci`. The devkit toolchain preamble provisions the dev-shell but not the repo's `node_modules`, so the step exited **127** (`ncc: command not found`) and rolled back the `final` release. It only surfaces on a real `final` release (gated on `release_kind == 'final'` and a detected `bundle` recipe), so it slipped past normal CI. This restores parity with the sync-then-build pattern every other build job already follows (`just sync` is language-neutral: `npm ci` for Node, `uv sync` for Python). No-op for consumers without a bundle recipe. Observed downstream: vig-os/commit-action release 0.3.0 — [failed run](https://github.com/vig-os/commit-action/actions/runs/29423806600). ## Changes - `assets/workspace/.github/workflows/release-core.yml` — `just sync` before `just bundle`. - `CHANGELOG.md` (+ synced `.devcontainer/` mirror) — Fixed entry. Refs: #1130
validate verified the release PR was non-draft, approved, and CI-green but never checked mergeability. Since promote (undraft, irreversible) runs before merge, a BEHIND/BLOCKED/DIRTY PR passed validation, the Release was published, then merge failed — a half-promoted release. Fetch mergeable/mergeStateStatus in the validate PR check and fail fast unless mergeable, re-querying while GitHub reports UNKNOWN. Refs: #1132
## Summary `promote-release.yml`'s `validate` job verified the release PR was non-draft, approved, and CI-green — but never checked whether it was actually **mergeable**. Because the sequence is `validate → promote (undraft, irreversible under immutable releases) → merge`, a PR that was `BEHIND` `main` (or `BLOCKED`/`DIRTY`) passed validation, the GitHub Release was published, and only then did the merge fail — leaving a **half-promoted release** whose PR never reached `main` and which cannot be re-run to recover. Observed on vig-os/commit-action 0.3.0 promote (release branch 5 CI-only commits behind `main`; `main` enforces "require branches up to date"). ## Change In `validate → Find and verify release PR`, after the existing draft/approval/CI checks, fetch `mergeable` + `mergeStateStatus` via `gh pr view` and **fail fast** unless the PR is mergeable: - accept `CLEAN` / `HAS_HOOKS` / `UNSTABLE` (CI already asserted green separately) - reject `BEHIND` (with a "update the release branch" hint), `BLOCKED`, `DIRTY` - re-query while either field is `UNKNOWN` (GitHub computes mergeability async) This keeps the invariant: never start the irreversible publish unless the merge can succeed. Scope is the downstream scaffold template (`assets/workspace/.github/workflows/promote-release.yml`); the primary fail-fast `validate` gate the issue asked for. The secondary considerations in the issue (TOCTOU between `validate` and `merge`; `gh pr merge --auto` / branch-update in the `merge` step) are intentionally left out of this minimal fix. ## Tests - `tests/test_promote_mergeability.py` (new) pins that `validate`'s PR check queries `mergeable`/`mergeStateStatus`, rejects `BEHIND`, and re-queries `UNKNOWN`. Added RED-first, then implemented. - `actionlint` (shellcheck on the embedded run script) and the full pre-commit suite are green. Closes #1132
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-node](https://redirect.github.com/actions/setup-node) | action | major | `v6.4.0` → `v7.0.0` | --- ### Release Notes <details> <summary>actions/setup-node (actions/setup-node)</summary> ### [`v7.0.0`](https://redirect.github.com/actions/setup-node/compare/v6.5.0...v7.0.0) [Compare Source](https://redirect.github.com/actions/setup-node/compare/v7.0.0...v7.0.0) ### [`v7`](https://redirect.github.com/actions/setup-node/compare/v6.5.0...v7.0.0) [Compare Source](https://redirect.github.com/actions/setup-node/compare/v6.5.0...v7.0.0) ### [`v6.5.0`](https://redirect.github.com/actions/setup-node/compare/v6.4.0...v6.5.0) [Compare Source](https://redirect.github.com/actions/setup-node/compare/v6.4.0...v6.5.0) </details> --- ### Configuration 📅 **Schedule**: (in timezone Etc/UTC) - Branch creation - "before 9am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/vig-os/devkit). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNTkuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI1OS4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbXX0=-->
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-node](https://redirect.github.com/actions/setup-node) | action | minor | `v6.4.0` → `v6.5.0` | | [cachix/install-nix-action](https://redirect.github.com/cachix/install-nix-action) | action | minor | `v31.10.7` → `v31.11.0` | | [vig-os/commit-action](https://redirect.github.com/vig-os/commit-action) | action | minor | `v0.2.0` → `v0.3.0` | --- ### Release Notes <details> <summary>actions/setup-node (actions/setup-node)</summary> ### [`v6.5.0`](https://redirect.github.com/actions/setup-node/compare/v6.4.0...v6.5.0) [Compare Source](https://redirect.github.com/actions/setup-node/compare/v6.4.0...v6.5.0) </details> <details> <summary>cachix/install-nix-action (cachix/install-nix-action)</summary> ### [`v31.11.0`](https://redirect.github.com/cachix/install-nix-action/releases/tag/v31.11.0) [Compare Source](https://redirect.github.com/cachix/install-nix-action/compare/v31.10.7...v31.11.0) #### What's Changed - nix: 2.34.8 -> 2.35.1 by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​279](https://redirect.github.com/cachix/install-nix-action/pull/279) Release notes: <https://discourse.nixos.org/t/nix-2-35-0-released/78914> **Full Changelog**: <cachix/install-nix-action@v31.10.7...v31.11.0> </details> <details> <summary>vig-os/commit-action (vig-os/commit-action)</summary> ### [`v0.3.0`](https://redirect.github.com/vig-os/commit-action/blob/HEAD/CHANGELOG.md#v030---2026-07-15) [Compare Source](https://redirect.github.com/vig-os/commit-action/compare/v0.2.0...v0.3.0) ##### Added - A new consumer-owned `js-quality` workflow gates every PR on `just lint` and `just format-check` (a new read-only recipe backed by `prettier --check src`). Neither eslint nor prettier was enforced anywhere before: the scaffold-managed `ci.yml` has a "Lint & Format" job, but it runs only the prek hook suite, which contains no JS linter or formatter. That is precisely how the broken globs above survived — the scripts were never run by anything but a human. Fixing them without a gate would have let them rot again the same way (issue [#​66](https://redirect.github.com/vig-os/commit-action/issues/66)). - A new `e2e-smoke` workflow executes the **committed bundle** against the real GitHub API on every PR, running the action the way a consumer does (`uses: ./`) rather than importing its source. It commits a file to a scratch branch through the full REST flow and asserts the commit exists, is **signed**, and carries the expected content, then deletes the branch. Nothing previously executed `dist/index.js`: the unit tests import `main()` directly and the repo dogfoods `commit-action` at a pinned released SHA. That gap is not theoretical — the ESM migration found that the CommonJS `require.main === module` entry guard does not survive bundling to ESM, leaving the bundled action a silent no-op (exit 0, nothing committed) that 84 passing unit tests could not see (issue [#​58](https://redirect.github.com/vig-os/commit-action/issues/58)). - CI now gates the committed ncc bundle against source drift so a stale `dist/index.js` can never reach a tag. A new consumer-owned `dist-check` workflow rebuilds the bundle on every PR to `release/**`/`main` and fails when the committed `dist/index.js` differs, and the release-time `release-extension` hook re-verifies the finalized commit before it is tagged (rolling the release back on drift). Both rebuild with the pinned dev-shell toolchain (issue [#​59](https://redirect.github.com/vig-os/commit-action/issues/59)). The gate is deliberately scoped to the release boundary — `dev` is not gated, since nothing ships from `dev` and gating it would fail every Renovate runtime-dependency bump (issue [#​71](https://redirect.github.com/vig-os/commit-action/issues/71)). ##### Changed - Adopted vigOS devkit `1.2.1` and declared the per-repo release tag scheme in `.vig-os`: `DEVKIT_TAG_PREFIX=v` restores this repo's historical `v`-prefixed tags (`vX.Y.Z`) through the release pipeline, and `DEVKIT_FLOATING_TAGS=major,minor` force-moves the floating `v0` / `v0.X` tags to each promoted release automatically — both were previously moved by hand. Consumers can pin `@v0` (floating major), an exact `@vX.Y.Z`, or a SHA (issue [#​62](https://redirect.github.com/vig-os/commit-action/issues/62)). The first attempt to ship 0.3.0 on devkit `1.2.0` failed in the automated release workflow: the scaffolded `release-core.yml` applied the draft + approval gate to every release kind, so a release-candidate dispatch aborted against its still-draft PR. 1.2.1 guards that gate behind `release_kind=final` (candidates gate on CI only), fixing the failure ([#1095](https://redirect.github.com/vig-os/devkit/issues/1095), issue [#​79](https://redirect.github.com/vig-os/commit-action/issues/79)). 1.2.1 also folds the `dist/src/` `tsc`/`ncc` declaration byproducts into the managed `.gitignore` ([#1092](https://redirect.github.com/vig-os/devkit/issues/1092)), retiring this repo's bespoke `dist/.gitignore`, and moves the flake-generated `.pre-commit-config.yaml` symlink ignore to the new consumer-owned `.gitignore.project`; the `vigos` flake input is bumped to `1.2.1` to match the scaffold (issues [#​62](https://redirect.github.com/vig-os/commit-action/issues/62), [#​79](https://redirect.github.com/vig-os/commit-action/issues/79)). - **Migrated the action to ESM.** The `@actions/*` toolkit went ESM-only at its next major (no `require` condition in its `exports` map at all), so `@actions/core` v3, `@actions/github` v9 and `@actions/http-client` v4 were unlandable individually and had to move together (issues [#​49](https://redirect.github.com/vig-os/commit-action/issues/49), [#​50](https://redirect.github.com/vig-os/commit-action/issues/50), [#​51](https://redirect.github.com/vig-os/commit-action/issues/51)). The package is now `"type": "module"`, TypeScript resolves with `module`/`moduleResolution: nodenext`, relative imports carry explicit `.js` extensions, and `ncc` emits an ESM bundle (plus a small `dist/package.json` declaring the bundle's module type, now tracked alongside `dist/index.js`). Jest runs in ESM mode: the module mocks moved from `jest.mock` + a `__mocks__` manual mock to `jest.unstable_mockModule` with dynamic imports, and the old `src/__tests__/setup.ts` is gone. All 84 tests are preserved unchanged (issue [#​58](https://redirect.github.com/vig-os/commit-action/issues/58)). - Dropping the classic `moduleResolution: node` also fixed a **silent type hole**: classic resolution ignores `exports` maps, so `@octokit/core/types` never resolved and every `octokit.rest.*` call in `src/commit.ts` degraded to `any` — the entire signed-commit REST flow was unchecked. Those calls are now type-checked against real Octokit types. This additionally unblocks TypeScript 7, which removes `moduleResolution: node` outright (issue [#​54](https://redirect.github.com/vig-os/commit-action/issues/54)). - Removed the `@actions/http-client` and `undici` `overrides` pins. The `http-client` pin (`3.0.2`) was what actually blocked the v4 major, and the `undici` pin is now redundant: `@actions/http-client` v4 depends on `undici: ^6.23.0`, which resolves to the same `6.27.0` the pin was added to force (`npm audit` reports no runtime vulnerabilities). - Migrated ESLint to flat config (`eslint.config.mjs`, replacing `.eslintrc.json`) and bumped `eslint` from `8.57` to `10.x`. ESLint 9 made flat config the default and ESLint 10 removed the legacy `.eslintrc` path entirely. The rule set is a faithful port — same base configs and the same two overrides — with the `node`/`es6`/`jest` environments becoming `languageOptions.globals`. `@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser` are replaced by the `typescript-eslint` meta package, the canonical v8 flat-config entry point (issue [#​64](https://redirect.github.com/vig-os/commit-action/issues/64)). - **Renovate: update `undici` from `6.23.0` to `6.27.0`** ([#​41](https://redirect.github.com/vig-os/commit-action/pull/41)) - **Renovate (batched): update development dependencies** — `jest` `29.7.0` → `30.4.2` and `@types/jest` → `30.0.0` ([#​55](https://redirect.github.com/vig-os/commit-action/pull/55)); `@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser` `6.13.0` → `8.64.0` ([#​56](https://redirect.github.com/vig-os/commit-action/pull/56)); `@vercel/ncc` `0.38.4` → `0.44.1` ([#​46](https://redirect.github.com/vig-os/commit-action/pull/46)); `ts-jest` → `29.4.11` ([#​45](https://redirect.github.com/vig-os/commit-action/pull/45)); `prettier` → `3.9.5` ([#​47](https://redirect.github.com/vig-os/commit-action/pull/47)); `tsx` → `4.23.1` ([#​48](https://redirect.github.com/vig-os/commit-action/pull/48)). Batched into one branch because each Renovate PR touched `package-lock.json` and `CHANGELOG.md` and so conflicted pairwise; the lockfile is regenerated once here rather than rebased six times. Side effect: `ts-jest` `29.4.11` drops `handlebars`, clearing the only `critical` advisory — known dev-dependency vulnerabilities go from 10 to 5. - Retry for transient GitHub API failures is now applied at each individual REST call site inside `createTree` (per `createBlob` and per chained `createTree` chunk) instead of wrapping the whole multi-call tree operation; a transient mid-batch failure now retries only the failing call rather than re-uploading already-succeeded blobs and tree chunks (issue [#​24](https://redirect.github.com/vig-os/commit-action/issues/24)). - Hardened `createTree` against oversized commit payloads: chunk boundaries are now **payload-size-aware** — a new `createTree` request starts once a chunk approaches **`TREE_ENTRY_BYTE_LIMIT` (6 MiB)** of approximate serialized content, in addition to the existing **`TREE_ENTRY_CHUNK_SIZE` (100)** entry cap (whichever limit is hit first). Text files whose size exceeds **`INLINE_CONTENT_SIZE_LIMIT` (1 MiB)** are now uploaded via `createBlob` (base64) instead of inlined, keeping requests well under GitHub's request-body limit for very large text change sets (issue [#​22](https://redirect.github.com/vig-os/commit-action/issues/22)). - Migrated the action runtime from `node20` to `node24` ahead of GitHub removing the Node 20 Actions runtime on 2026-09-16 (issue [#​14](https://redirect.github.com/vig-os/commit-action/issues/14)). Bumped `@types/node` to the v24 line and raised the TypeScript `target`/`lib` to `ES2023`. - Pre-release metadata fixes: corrected the `action.yml` `author` (was `Sync Issues Bot`, copy-pasted from `sync-issues-action`) and pinned the README Action usage example to `@v0.2.0`, dropping the now-obsolete `@main` note since the inline `createTree` optimization shipped in `v0.2.0` ([#​63](https://redirect.github.com/vig-os/commit-action/issues/63)). ##### Removed - Untracked 32 build byproducts under `dist/src/` (`.d.ts`, `.js`, and `.map` files) that had been committed by accident. `tsconfig.json` sets `outDir: ./dist` with `declaration`/`declarationMap`, so both `npm run build` (tsc) and `npm run bundle` (ncc) emit them, while the `.gitignore` rule meant to exclude them (`dist/__tests__`) never matched their real path (`dist/src/__tests__`). The rule is now `dist/*` plus a `!dist/index.js` re-admit, so only the runtime artifact the action actually executes is tracked. Their `.d.ts.map` files embed absolute `file://` source paths and so were regenerated differently at every checkout location — which is what forced the [#​59](https://redirect.github.com/vig-os/commit-action/issues/59) freshness gate to be scoped to `dist/index.js`; with them gone, both gates (`dist-check`, `release-extension`) now verify the whole `dist/` tree, and check it with `git status` rather than `git diff` so that build output which is emitted but never committed also fails the gate (issue [#​70](https://redirect.github.com/vig-os/commit-action/issues/70)). ##### Fixed - **`npm run lint` and `npm run format` had never checked the real source.** Both globbed with `src/**/*.ts`, but npm runs scripts through `sh`, which has no globstar — so `**` degraded to a single `*` and the pattern collapsed to `src/*/*.ts`, matching only files exactly one directory deep. In practice that was a single test-setup file; `src/commit.ts`, `src/commit-runner.ts` and `src/retry.ts` — the entire production surface — were matched by neither script. The scripts now pass the directory (`eslint src`, `prettier --write src`) and let each tool expand its own globs with correct `**` semantics (issue [#​66](https://redirect.github.com/vig-os/commit-action/issues/66)). - Attached the originating error as `cause` when `commit-runner` rethrows a `git status` failure, so the underlying `execSync` error is no longer discarded (surfaced by the above; ESLint 10's `preserve-caught-error`). - Removed a dead initializer on `bytesRead` in `isBinaryFromStat`. Not a correctness bug — the value was always overwritten before being read — but it masked the read from the compiler's definite-assignment analysis (`no-useless-assignment`). </details> --- ### Configuration 📅 **Schedule**: (in timezone Etc/UTC) - Branch creation - "before 9am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/vig-os/devkit). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNTkuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI1OS4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbXX0=-->
Every job-level contents:write / actions:write grant in the rendered release and sync workflow templates is written to by a COMMIT_APP or RELEASE_APP installation token, never the job's GITHUB_TOKEN. Reduce those grants to read across prepare-release, promote-release, release, release-core, release-publish, sync-issues and sync-main-to-dev, shrinking the blast radius of a compromised step to a read-only GITHUB_TOKEN. Point promote-release validate's draft-release check at the RELEASE_APP token (GitHub only returns drafts to a push-capable token) so the job can drop to contents:read. Keep sync-issues sync's actions:write — its cache deletion calls gh api -X DELETE on github.token. Refs: #1136
…1137) Closes #1136 ## What An OpenSSF Scorecard TokenPermissions audit (on `vig-os/commit-action`) traced every job-level `contents: write` / `actions: write` grant in the rendered release/sync workflow templates to the token that actually performs the write. Every git push, tag push, `gh release`, `gh pr`, `gh api` mutation and `gh workflow run` rides a **COMMIT_APP / RELEASE_APP installation token**, not the job's `GITHUB_TOKEN` — so those grants are vestigial. This reduces them to `read` at the source (`assets/workspace/.github/workflows/`), propagating to all consumers on upgrade. ## Reductions (write → read on `GITHUB_TOKEN`) | Template | Job | Grant | |---|---|---| | prepare-release.yml | prepare, rollback | contents | | promote-release.yml | validate, promote, merge, cleanup, floating-tags | contents | | release.yml | core caller | actions + contents | | release.yml | publish caller, rollback | contents | | release-core.yml | finalize | actions + contents | | release-publish.yml | publish | contents | | sync-issues.yml | sync | contents | | sync-main-to-dev.yml | sync | contents | Caller/callee pairs (`release.yml` `core`/`publish` ↔ `release-core.yml`/`release-publish.yml`) are lowered on both sides in the same change. ## Two grants handled with care 1. **`promote-release.yml` `validate`** — its *Verify draft GitHub Release exists* step listed releases with `GH_TOKEN: github.token` and matched a **draft**; GitHub only returns drafts to a push-capable token, so a bare read-only token would hide the draft and fail every promotion. The step now uses the RELEASE_APP token the job already mints, so the job can safely drop to `contents: read`. 2. **`sync-issues.yml` `sync` `actions: write`** — **kept**. Its *Delete old cache* step calls `gh api .../actions/caches/{id} -X DELETE` on `github.token`. Optional same-justification extras (`pull-requests`/`issues` write on App-token-driven jobs, not Scorecard-flagged) are deliberately left in place — out of scope here. ## Verification - TDD: flipped `tests/bats/just.bats` to pin the release caller/callee `GITHUB_TOKEN` blocks read-only (RED → GREEN). - `bats tests/bats/just.bats` — 46/46 pass. - `pytest` on `test_promote_mergeability`, `test_floating_tags`, `test_release_tag_prefix`, `test_workflow_prepare_extension` — 30/30 pass. - Full `just precommit` (incl. actionlint, yamllint, sync-manifest) green. - Downstream precedent: `vig-os/commit-action#94`/`#95` moved the repo-local smoke workflows to `permissions: {}` + job-level write with E2E and published-tag smokes passing. ## Pre-merge validation The `devcontainer-smoke-test` `repository_dispatch` flow already renders these templates into a real target and drives the full pipeline against them with real `RELEASE_APP`/`COMMIT_APP` tokens, so the App-token writes are genuinely exercised (a broken reduction fails the write and errors the wait step): - **prepare-release** → **release** → `release-core` `finalize` → **sync-issues** (finalize triggers it *and waits*, so a broken `sync-issues` permission fails the release the dispatch is waiting on) - **promote-release** → `merge` → push to `main` → **sync-main-to-dev** **Caveat:** promote-release is gated `if release_kind == 'final'`. An RC-only dispatch covers prepare + release + release-core + release-publish + sync-issues, but **not** promote-release or (transitively) sync-main-to-dev. To give the promote-release changes — including the load-bearing `validate` *Verify draft GitHub Release exists* `GH_TOKEN` fix — live coverage, validate with a **final** dispatch, not just a candidate. Refs: #1136
Move Unreleased content to [1.3.0] - TBD and create fresh empty Unreleased section for continued development.
Regenerate the synced workspace mirror so assets/workspace/.devcontainer/CHANGELOG.md matches the frozen root CHANGELOG.md on the release branch.
Consumers scaffolded from devkit had no vulnerable-dependency gate. Add a standalone dependency-review job (dependency-review-action v5, fail-on-severity: high) mirroring devkit-own, minus its exceptions allow-list seam. Guarded to public-repo pull requests (#1039 pattern): private repos get a skipped-neutral run and auto-activate when flipped public. Wired into CI Summary with skip-is-OK handling like commit-checks. Refs: #1140
## Summary Adds the missing vulnerable-dependency gate to the scaffolded consumer CI (`assets/workspace/.github/workflows/ci.yml`), targeting the in-flight 1.3.0 release so the next consumer deployments (commit-action redeploy, sync-issues-action onboarding) ship with it. - Standalone `dependency-review` job — no toolchain, no container, no `resolve-toolchain` dependency; SHA-pinned `actions/dependency-review-action` v5.0.0 with `fail-on-severity: high`. - Doubly guarded (`pull_request` + `!github.event.repository.private`), mirroring the codeql.yml/scorecard.yml #1039 pattern: skipped-neutral on Free-plan private repos, auto-activates when a repo flips public. - `CI Summary` requires it with the same skip-is-OK treatment as the PR-only `commit-checks` job — only a genuine failure trips the gate. - Devkit's own `ci.yml` is untouched (it already runs Dependency Review with the allow-list mechanism); the scaffold version deliberately omits the exceptions seam. TDD: shape tests in `tests/test_workflow_private_repo_guard.py` committed RED first (`280712a2`), implementation GREEN (`76793824`); rendered-scaffold actionlint bats 5/5, full `prek` suite green. Changelog entry added under `## [1.3.0] - TBD` (### Added) + hook-synced mirror. Note for the release driver: rc1 predates this change — an rc2 cut is needed before finalizing 1.3.0. Closes #1140
c-vigo
marked this pull request as ready for review
July 15, 2026 19:59
c-vigo
approved these changes
Jul 15, 2026
Set release date to 2026-07-15 and regenerate release docs. Refs: #1138
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.
Release 1.3.0 - 2026-07-15
This PR prepares release 1.3.0 for merge to main.
1.3.0 - 2026-07-15
Added
ci.ymlnow runs a standalonedependency-reviewjob(
actions/dependency-review-actionv5,fail-on-severity: high) thatblocks PRs introducing known-vulnerable dependencies off GitHub's
dependency graph — no toolchain or container required.
PRs, and the dependency-graph API is unavailable on Free-plan private
repos), so private repos get a skipped-neutral run and auto-activate when
flipped public ([FEATURE] Scaffold: guard codeql/scorecard workflows on private repos #1039 pattern);
CI Summaryrequires it without going redon push/dispatch/private-repo skips.
Changed
actions/setup-nodefromv6.4.0tov6.5.0cachix/install-nix-actionfromv31.10.7tov31.11.0vig-os/commit-actionfromv0.2.0tov0.3.0actions/setup-nodefromv6.4.0tov7.0.0(#1135)X11-Protocol, …) had one remaining anchor after
#1107 swapped full
gitforgitMinimal:neovim → wl-clipboard → xdg-utils → perl. The nixpkgs neovimwrapper suffixes
wl-clipboardonto the wrapped binary's PATH as the Waylandclipboard provider (
waylandSupport, on by default on Linux), andwl-clipboard drags xdg-utils, which drags perl.
socket, so
wl-copy/wl-pastenever run. The clipboard path that actuallyworks over VS Code remote / SSH is OSC52, which nvim >= 0.10 uses natively
when no display clipboard tool is on PATH.
neovim-unwrappedwithwrapNeovimUnstable(replicating the stock legacy wrap — empty rc, providers disabled — but with
waylandSupport = false), evicting the wl-clipboard → xdg-utils → perlsubtree. Measured ~108 MiB off the uncompressed closure
(1,758,754,952 → 1,645,235,648 bytes).
devToolsstill ships the stock wrappedneovim (which keeps wl-clipboard for real Wayland hosts); the swap is scoped
to the image only.
glibcLocalesarchive but onlyever uses
en_US.UTF-8. TheimageToolsentry and theLOCALE_ARCHIVEOCI-config env now share one overridden derivation
(
allLocales = false; locales = [ "en_US.UTF-8/UTF-8" ]), so exactly onesmall (~3 MiB) locale path lands in the closure — a ~220 MiB uncompressed
reduction with zero functional change.
uv run(pinnedbandit[toml]==1.9.4); the baked copy was unused.banditon 3.13 while the image toolchain is 3.14) plus a duplicategit-minimalpulled in via gitpython.python3-3.13.13, 127 MiB)that the chosen toolchain (
python3.14,UV_PYTHON,vig-utils) neveruses. It was held by four independent anchors, all of which had to fall:
bandit(#1105),criuviathe podman runtime (#1106),
full
git(git-p4/python helpers), andactionlint(its optionalpython3.13-pyflakeslint wrapper) — the last two removed here.gitMinimal(perlSupport/pythonSupport/guiSupport/withManualall off) instead of fullgit, and anoverrideAttrs'dactionlintwhose wrapper dropspyflakes(keepingshellcheck). Together this evicts the 3.13 interpreter and full git'sgit-doc, measuring ~149 MiB off the uncompressed closure beyond thebandit/criu cuts.
#1103,
semver:minor): theimage loses
git send-email/svn/p4/gitk/git guiand built-ingit help <cmd>man pages, and actionlint's inline-python lint on workflowrun:steps. Builtin-C porcelain (log,commit,rebase -i,add -p,worktrees) and SSH commit signing are unaffected;
gettextstays (stilllinked by gitMinimal for i18n).
devToolsstill ships fullgitand stockactionlint; the swaps are scoped to the image only.(
crun,criu,conmon,netavark,passt,libkrun/libkrunfw,aardvark-dns,fuse-overlayfs,runc) are.overriden with an emptystub, dropping ~67 MiB of uncompressed image closure. The epic's ~254 MiB
estimate assumed removing podman entirely; retaining the client binary
(~54 MiB) and
systemd(rpath-linked into it;systemdMinimalbreakspodman logsper the nixpkgs pin) reduces the net saving to ~67 MiB.podman-in-podman sidecar model, declared non-contract in
#1103.
consumer scaffold's existing
DOCKER_HOSTwiring) is unchanged.docker -> podmanshim is retained and now execs the client-onlypodman.
devToolsstill ships the full podmanruntime for daemonless
podman runon a real host; the swap is scoped tothe image only.
Fixed
Gate promote on release-PR mergeability before the irreversible publish (#1132)
promote-release.yml'svalidatejob verified the release PR wasnon-draft, approved, and CI-green but never checked whether it was actually
mergeable. Because the sequence is
validate → promote (undraft, one-way under immutable releases) → merge, a PR that wasBEHINDmain(orBLOCKED/DIRTY) passed validation, the GitHub Release was published, andonly then did the merge fail — leaving a half-promoted release whose PR
never reached
mainand which cannot be re-run to recover.validatePR check now fetchesmergeable/mergeStateStatusandfails fast unless the PR is mergeable, re-querying while GitHub is still
computing the state (
UNKNOWN). Keeps the invariant: never start theirreversible publish unless the merge can succeed.
Migrate hand-added root
.gitignorelines into.gitignore.projecton upgrade (#1111).gitignore.projectthe durable home for repo-root ignores, but the upgradethat introduces it seeds it empty — so any ignores a consumer had hand-added
directly to the managed (regenerated) root
.gitignore(.DS_Store,editor/OS cruft, project paths) were silently dropped when
render_gitignorerebuilt root
.gitignorefrom the template.init-workspace.shnow snapshots the pre-overwrite root.gitignoreandmigrates its consumer-added entries (non-blank, non-comment lines that are
not provided by the template base, an active language fragment, or the [BUG] Managed .gitignore rewrite (#1024) drops consumer-required ignores with no durable committed extension point for repo-root paths #1092
seed, and not already present) into
.gitignore.project, from where theyflow back into the regenerated root
.gitignore. The migration isappend-only and deduplicated, so it never reorders the consumer's existing
entries and a second upgrade re-adds nothing (idempotent); it prints the
count and list of migrated lines.
Install project deps before building the release artifact (#1130)
Build release artifactstep inrelease-core.ymlranjust bundlewithout a preceding
just sync, so a JS-Action consumer's bundler (ncc, adevDependency) was absent from PATH — the finalization step exited 127 and
the
finalrelease rolled back. Only surfaced on a realfinalrelease (thestep is gated on
release_kind == 'final'and a detectedbundlerecipe).just sync(language-neutral:npm ci/uv sync) beforejust bundle, matching every other build job. No-op for consumers without abundle recipe.
Wire
core.hooksPathfor direnv consumers (#1112)nix developmode the dev-shell never setcore.hooksPath, socommit-time hooks (pre-commit / commit-msg via prek) were silently inactive
until the consumer set it by hand — a local commit could bypass the gate with
only CI catching it later. Devcontainer mode already wired it in setup.
mkProjectShell's shellHook now setscore.hooksPath→.githookson shellentry, mirroring the devcontainer and reinforcing the
.githooksentry-pointinvariant (never installing into
.git/hooks, never unsetting it)..githooks/directory at the gittoplevel) and to the main worktree, so it leaves non-scaffold consumers
untouched and never fights the worktree flow (which deliberately unsets
core.hooksPathand installs prek hooks directly); idempotent on re-entry.Post-scaffold dependency sync is mode-aware and no longer aborts a successful upgrade (#1118)
direnvandbaremodes the container-sidejust syncis now skippedentirely: the consumer's host nix/direnv shell owns dependency install, and a
container-side
npm ci/uv syncwould write wrong-platform, wrong-ownerartifacts into the bind-mounted workspace. An informational line notes the skip.
devcontainer/bothmodes the sync still runs but is non-fatal — a failure(e.g.
npm error Exit handler never called!) now warns and continues instead ofaborting init with a misleading "Failed to initialize workspace", since the
scaffold itself is already complete.
Preserve a flake-hooks
.pre-commit-config.yamlstore symlink on upgrade (#1117)hooks = { }generates.pre-commit-config.yamlas a symlink into the host
/nix/store, which is not mounted inside the imagewhere
init-workspace.shruns — so the symlink is dangling from thecontainer's view. The preserve/exclude and report gates tested presence with
-e/-f, which follow the link and reported it absent, sorsync -avLoverwrote the symlink with the ~6 KB template config and the
#1092 ignore auto-seed never
fired — leaving a committed, non-ignored template shadowing the generated
config (observed on
commit-action1.2.0→1.2.1).path_presenthelper treats a symlink of any kind (including a danglingone) as present at all three gates — the rsync exclude builder, the
add/preserve report classification (
--previewnow lists it as PRESERVED),and the
PRECOMMIT_CONFIG_PREEXISTEDdivergence guard — so the symlinksurvives untouched and the ignore seed still runs.
Preserve tag-scheme keys across
--forceupgrades (#1116)init-workspace.shread backDEVKIT_MODE/identity/DEVKIT_MODULESbeforethe managed-template overwrite of
.vig-os, but notDEVKIT_TAG_PREFIXorDEVKIT_FLOATING_TAGS, so an upgrade silently reset a consumer's releasetag scheme to the empty template defaults (observed cutting bare tags and
stalling floating tags on the commit-action 1.2.0 → 1.2.1 upgrade).
the template's unquoted form) when the consumer set them.
Post-promote sync-main-to-dev no longer conflicts on the workspace changelog mirror (#1115)
at pre-freeze content, so
assets/workspace/.devcontainer/CHANGELOG.mdconflicted in the post-promote sync-main-to-dev merge every release cycle
(#1091,
#1114).
commit (a non-force app ref update, taken only while dev still sits on the
freeze commit) so the mirror rewrite is shared ancestry — the same property
that keeps the root changelog conflict-free.
sibling-commit reconcile, exactly the status quo.
Security
GITHUB_TOKENwrite grants from workflow templates (#1136)contents: write/actions: writegrant in the rendered release/syncworkflows to the token that performs the write: each git push, tag push,
gh release,gh pr,gh apimutation andgh workflow runrides aCOMMIT_APP / RELEASE_APP installation token, not the job's
GITHUB_TOKEN.readacrossprepare-release.yml(prepare,rollback),
promote-release.yml(validate, promote, merge, cleanup,floating-tags),
release.yml(core + publish caller blocks, rollback),release-core.yml(finalize),release-publish.yml(publish),sync-issues.yml(sync) andsync-main-to-dev.yml(sync), shrinking theblast radius of a compromised step to a read-only
GITHUB_TOKEN.promote-release.yml's Verify draft GitHub Release exists step now readsdrafts with the RELEASE_APP token (GitHub only returns drafts to a token with
push access), so the
validatejob can drop tocontents: readwithouthiding the draft.
sync-issues.yml'ssyncjob keepsactions: write— itscache-deletion step calls
gh api ... -X DELETEongithub.token.wl-clipboard → xdg-utils), the perl 5.42.0 CVE exceptions in
.vulnixignoreare deleted rather than maintained: CVE-2026-4176, and the CPANSec batch
CVE-2026-13221 / CVE-2026-57432 (accepted "pending upstream stable fix" in
#1097/#1098,
fixed only in the perl 5.43.x development series). Fewer packages, fewer
exceptions to babysit; the nightly vulnix scan no longer needs them.