Skip to content

feat(workspace): exclude devkit-managed workflows from consumer renovate - #1335

Merged
c-vigo merged 4 commits into
devfrom
feature/1332-renovate-managed-exclusion
Aug 4, 2026
Merged

c-vigo merged 4 commits into
devfrom
feature/1332-renovate-managed-exclusion

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

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

  • 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)
    • 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

  • Tests pass locally (just test)
  • 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

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Additional Notes

Closes #1332

Refs: #1332

c-vigo added 3 commits August 4, 2026 08:35
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
Union-resolves the CHANGELOG conflict with PR #1334 (restores the #1330
entry this branch had accidentally displaced) and keeps both renovate.json
changes: the #1333 slug fix in extends and the #1332 re-enable rule.

Refs: #1332
@c-vigo
c-vigo merged commit 6dbec06 into dev Aug 4, 2026
14 checks passed
@c-vigo
c-vigo deleted the feature/1332-renovate-managed-exclusion branch August 4, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant