Repository navigation
feat(workspace): exclude devkit-managed workflows from consumer renovate - #1335
Merged
Merged
Conversation
Add a drift-gated pytest that pins the shipped renovate preset's disabled set to exactly the managed workflow directory (minus the PRESERVE_FILES seams) plus the two managed composite actions, and asserts devkit's root renovate.json re-enables its own root paths with a later rule. Derives the enumeration from the directory listing and the PRESERVE_FILES SSoT so a new/renamed managed workflow cannot silently reopen the gap. Fails until the preset and root config carry the rules. Refs: #1332
Append an enabled:false packageRule (last, so consumer rules win) to the shipped preset naming exactly the managed workflow set plus the two managed composite actions. Their SHA-pinned digests advance upstream in devkit and ship with each release, so downstream Renovate stops opening duplicate pin-bump PRs that the next devkit-upgrade clobbers. Devkit extends the same preset, so re-enable .github/workflows/** and .github/actions/** in the root renovate.json to keep advancing the pins devkit owns. Refs: #1332
Add a "Dependency maintenance for managed files (Renovate)" section to WORKFLOW_SECURITY.md: dependency responsibility for managed workflows and composite actions sits upstream in devkit, the shipped preset disables consumer renovate for that set, the accepted vulnerability-PR trade-off, and how a consumer opts a specific managed file back in from its preserved renovate.json (later rules win). Refs: #1332
This was referenced Aug 4, 2026
c-vigo
enabled auto-merge
August 4, 2026 07:51
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
Consumer repos scaffolded by devkit run Renovate against the devkit-managed workflows and composite actions, opening duplicate pin-bump PRs that the next
devkit-upgraderegenerates 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
feat-- New featureChanges Made
assets/workspace/.github/renovate-default.json(managed preset, rolls out on upgrade): trailingenabled: falsepackageRule enumerating the 13 managed workflows (all shipped minus the consumer-owned seamsrelease-extension.yml/prepare-release-extension.yml) plus.github/actions/setup-devkit-toolchain/**and.github/actions/resolve-toolchain/**. Last on purpose: a consumer's own laterpackageRules(preserved rootrenovate.json) win, so opting back in stays possible.renovate.json(devkit root): trailingenabled: truerule 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 underassets/workspace/were never caught (rootedmatchFileNamesglobs don't match nested paths).tests/test_renovate_preset_managed_exclusion.py: drift gate — derives the managed set from the workflow directory listing minusPRESERVE_FILES(viasync_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
.github/renovate-default.json) now disables Renovate for the managed workflow set and the two managed composite actions via a trailingenabled: falsepackageRule. 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 nextdevkit-upgradeclobbers.renovate.json(later rules win). Devkit's own rootrenovate.jsonre-enables its root workflows/actions so devkit keeps advancing the pins it owns.Testing
just test)Manual Testing Details
prek run --all-files: fully green (51 hooks, exit 0).renovate-config-validatornot runnable offline (renovate is not an npm dep of this repo); JSON validity hook-checked, CI'srenovate-validateworkflow covers schema validation.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
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.baseBranchPatternssanity check confirmed a separate pre-existing bug for trunk-model consumers (preset hardcodes["dev"]; trunk repos have nodev, leaving Renovate inert there) — reported on feat(workspace): exclude devkit-managed workflows and actions from consumer renovate #1332 and filed independently; not addressed here (minimal diff).renovate.json(itsextendsline); whichever merges second may need a trivial rebase.Closes #1332
Refs: #1332