Repository navigation
chore(ci): point renovate preset extends at vig-os/devkit slug - #1334
Merged
Merged
Conversation
The root renovate.json extended the shared preset via the pre-rename repo slug (github>vig-os/devcontainer//...). After the devcontainer -> devkit rename (#781) that reference only resolves through GitHub's rename redirect; if a new repo ever claims the old vig-os/devcontainer name the redirect breaks silently and devkit would load a foreign preset. Retarget the extends at the canonical vig-os/devkit slug. Refs: #1333
This was referenced Aug 4, 2026
c-vigo
added a commit
that referenced
this pull request
Aug 4, 2026
c-vigo
added a commit
that referenced
this pull request
Aug 4, 2026
…ate (#1335) ## Description Consumer repos scaffolded by devkit run Renovate against the devkit-**managed** workflows and composite actions, opening duplicate pin-bump PRs that the next `devkit-upgrade` regenerates over (and, when a consumer ran ahead of a devkit train, actively downgrades). This PR makes the shipped preset the single decision point: consumer Renovate now ignores the managed set; devkit's own Renovate remains the sole channel that advances those pins, shipping them with each release. ## Type of Change - [x] `feat` -- New feature ## Changes Made - **`assets/workspace/.github/renovate-default.json`** (managed preset, rolls out on upgrade): trailing `enabled: false` packageRule enumerating the 13 managed workflows (all shipped minus the consumer-owned seams `release-extension.yml` / `prepare-release-extension.yml`) plus `.github/actions/setup-devkit-toolchain/**` and `.github/actions/resolve-toolchain/**`. Last on purpose: a consumer's own later `packageRules` (preserved root `renovate.json`) win, so opting back in stays possible. - **`renovate.json`** (devkit root): trailing `enabled: true` rule for `.github/workflows/**` and `.github/actions/**` — devkit extends the same preset and shares those rooted paths, so it re-enables its own files. The shipped copies under `assets/workspace/` were never caught (rooted `matchFileNames` globs don't match nested paths). - **`tests/test_renovate_preset_managed_exclusion.py`**: drift gate — derives the managed set from the workflow directory listing minus `PRESERVE_FILES` (via `sync_manifest.load_preserve_files`, nothing hardcoded) and asserts both rules exist and are last (ordering is load-bearing). - **`docs/WORKFLOW_SECURITY.md`**: new section on upstream dependency responsibility for managed files, the vulnerability-PR trade-off, and the consumer opt-back-in recipe. - `assets/workspace/.devcontainer/CHANGELOG.md`: generated sync-manifest mirror of the CHANGELOG edit. ## Changelog Entry ### Changed - **Consumer Renovate ignores devkit-managed workflows and actions** ([#1332](#1332)) - The shipped preset (`.github/renovate-default.json`) now disables Renovate for the managed workflow set and the two managed composite actions via a trailing `enabled: false` packageRule. Their SHA-pinned action digests advance upstream in devkit and ship with each release, so downstream Renovate no longer opens duplicate pin-bump PRs that the next `devkit-upgrade` clobbers. - The rule is last, so a consumer can opt a specific managed file back in from their preserved `renovate.json` (later rules win). Devkit's own root `renovate.json` re-enables its root workflows/actions so devkit keeps advancing the pins it owns. ## Testing - [x] Tests pass locally (`just test`) - [x] Manual testing performed (describe below) ### Manual Testing Details - TDD: drift-gate test committed RED first (3 failed), GREEN after the config change (3 passed). - Related unit subset (renovate preset, zizmor baseline, private-repo guard, release/prepare extension, scaffold drift, workflow model): 76 passed, exit 0. - `prek run --all-files`: fully green (51 hooks, exit 0). - `renovate-config-validator` not runnable offline (renovate is not an npm dep of this repo); JSON validity hook-checked, CI's `renovate-validate` workflow covers schema validation. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] 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 ## Additional Notes - Live behavior lands in consumers with the next release train via `devkit-upgrade` (the preset is a managed file). One-time step at rollout: close any open downstream renovate PRs touching managed workflows — they will not be recreated. - The issue's `baseBranchPatterns` sanity check confirmed a **separate** pre-existing bug for trunk-model consumers (preset hardcodes `["dev"]`; trunk repos have no `dev`, leaving Renovate inert there) — reported on #1332 and filed independently; not addressed here (minimal diff). - Merge-order note: #1334 also touches root `renovate.json` (its `extends` line); whichever merges second may need a trivial rebase. Closes #1332 Refs: #1332
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.
Description
Devkit's root
renovate.jsonstill extended the shared preset via the pre-rename repo slug (github>vig-os/devcontainer//...), working only through GitHub's rename redirect (#781). This points it at the current slug,github>vig-os/devkit//..., removing the silent-breakage risk if the old name is ever reclaimed.Type of Change
chore-- Maintenance task (deps, config, etc.)Changes Made
renovate.json:extendspreset reference updatedvig-os/devcontainer→vig-os/devkit. One line; nothing else touched.vig-os/devcontainerhits performed and classified (image-name references are the GHCR image's real name and stay; other repo-slug references — flake-template URLs, docs prose, test fixtures — are listed on the issue as follow-up candidates, out of scope here).Changelog Entry
No changelog needed -- internal CI configuration chore with no user-visible impact (root
renovate.jsonis devkit-own, not a shipped asset).Testing
prek run --all-filesgreen, both hook groups)Manual Testing Details
renovate-config-validatoris not available offline (renovate is not an npm dependency of this repo); JSON well-formedness verified, and the repo'srenovate-validateworkflow covers validation in CI.Checklist
Additional Notes
TDD skipped: non-testable one-line config change.
Closes #1333
Refs: #1333