Repository navigation
Renovate: move config to JSONC, harden GitHub Actions bumps - #2821
Merged
chalin merged 8 commits intoSep 24, 2026
Merged
Conversation
✅ Deploy Preview for docsydocs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
chalin
force-pushed
the
chalin-m24-renovate-alignment-2026-0919
branch
from
September 20, 2026 02:16
5b0b499 to
3b198f0
Compare
chalin
force-pushed
the
chalin-m24-renovate-alignment-2026-0919
branch
from
September 20, 2026 15:33
953fe81 to
fad8b24
Compare
- Moves the config to `.jsonc`: `configMigration` rewrites `.json5` without its comments, while JSONC is woven comment-preserving (renovatebot/renovate#38646) - Looks actions up as GitHub Releases, on branches named for the proposed SHA, and keeps them out of the patch/minor groups (a grouped update takes the group's branch name); shape from chalin/link-cache#14 - Maintainer notes: the action rationale and the full-version comment requirement; the age-exemption bullet trued (held updates sit on the dashboard, no PR opens)
- Renovate reads a pin's version from its comment; under the Releases lookup a floating `# vN` names no Release, so its bumps stop silently - Each SHA was peeled to its Release tag through the API before the rewrite - The supply-chain audit guards the shape from the raw text (the YAML parse drops comments); proven red on the previous comments
…in scan - Maintainer notes: the artifact-actions major group keeps its group branch, and a legitimate pin may sit on a release branch (r1.5, r1.1) - The raw pin scan must see as many `uses` entries as the YAML parse: a spelling the regex misses can no longer skip the comment check unnoticed (r1.6) - Comments trimmed to their one non-obvious why (r1.2, r1.3)
…s pins per entry - Maintainer notes: a floating `# vN` doesn't stop bumps, it turns in-major updates into undated digest bumps that follow the moving tag (dry run, renovate 44.82.5); the pre-merge checks move out of the rationale bullet (r2.3, r2.6) - Audit: pin lines are matched to the parsed `uses` entries per value, so a commented-out line can't stand in for a real pin (r2.2); comments trued or pruned across the file, including the `npm init` and "committed artifacts alone" claims (r2.8, r2.10-r2.12, r2.15) - Workflow and config comments: the publish checkout also feeds the guards script; the runner-label why; a dormant Windows-skip sketch and a narrating comment removed (r2.7, r2.9, r2.13, r2.16); notes: "Push the changes" (r2.14)
- Replaces the cooldown-bypass rationale, which was wrong: Renovate ages a floating-comment digest bump against the newest matching Release (dry run with this config, 44.82.5, `pendingChecks: true`). The comment's real job: in-major updates arrive as version bumps naming their Release, and a digest-only PR can mean only one thing, a tag moved without a new Release (r3.1, r3.8) - Names the constraint the Releases lookup adds (an action must publish Releases) and drops `rollback` from the held update types, which Renovate raises unchecked (r3.3, r3.10) - Routing table and test name now cover the pin-comment guard and the one installed file the audit reads (r3.2, r3.6)
…nitializers - `parseDocument` keeps each `uses` scalar's comment, so the full-version check rides the existing step walk and the raw-text scan, its per-value binding, and their accepted residual go (r3.13); the version may omit the `v` prefix, as Renovate writes whatever the upstream tag is called (r3.N) - `npm init NAME` and `npm create NAME` run `create-NAME` from the registry, the class the run-step deny-list exists for; only the bare scaffold form (`-y`) passes (r3.9) - Both proven red on scratch copies: floating and folded-scalar comments, an initializer argument, `npm create`; a commented-out pin line and a `v`-less full version stay green
- Renovate finds a pin comment by the literal ' #', so a tab before it silently disables the pin while the YAML-level check still sees the comment; one file-level assertion closes it (r4.2) - A shell comment after `npm init -y` no longer trips the initializer denial (r4.1) - Notes: the ignored preset's bump/rollback exemptions named as inert (r4.4)
…c; terser guards row - docsy#2823's new script-version-pins check read `renovate.json5` by name and matched the JSON5 quote shape; it now reads `renovate.jsonc` and accepts either quote style around the JSONata keys (red on a stale mermaid path) - The guards routing table row goes back to a route: inputs and comment details live in the audit's header and the Dependency updates bullet
chalin
force-pushed
the
chalin-m24-renovate-alignment-2026-0919
branch
from
September 21, 2026 14:37
64686b8 to
20dc82e
Compare
Collaborator
Author
|
Semantic diff of the Renovate config, --- renovate.json5 (main)
+++ renovate.jsonc (this PR)
@@ -21,15 +21,32 @@
"groupName": "all patch versions",
"matchUpdateTypes": [ "patch" ],
+ "matchManagers": [ "!github-actions" ]
},
{
"groupName": "all minor versions",
"matchUpdateTypes": [ "minor" ],
+ "matchManagers": [ "!github-actions" ]
},
{
+ "matchManagers": [ "github-actions" ],
+ "matchDepTypes": [ "action", "workflow" ],
+ "overrideDatasource": "github-releases",
+ "branchTopic": "{{{depNameSanitized}}}-{{{newDigest}}}"
+ },
+ {
"matchPackageNames": [
"hugo-extended"
],Omitted: one further hunk where the four JSONata |
chalin
marked this pull request as ready for review
September 24, 2026 13:56
chalin
added a commit
to docsy/docsy-example
that referenced
this pull request
Sep 26, 2026
- **Scope**, Docsy's shape per docsy/docsy#2821: - **Preserves Renovate config comments through migrations** (renovatebot/renovate#38646) - **Hardens GitHub Actions bumps** per Docsy's [maintainer notes](https://main--docsydocs.netlify.app/project/about/maintainer-notes/#dependency-updates) - **Keeps Renovate's schedule consistent across hosts** - **Makes `CONTRIBUTING.md` a delta doc**: its Docsy-overlapping sections point at Docsy's notes and keep only what differs here - **Closes the toolchain drift**: the npm release cooldown (docsy/docsy#2760) and a Renovate-updatable Node pin - **Keeps CI's script-approval check live**: Docsy's `ignore-scripts=true` is not copied (§ Install configuration) - **Makes `approve:hugo` work from a fresh checkout** and makes its version pin explicit - **Requires a reviewed Hugo version for manual updates**: `update:hugo` dropped - **Out of scope**: - a pin-comment audit test like Docsy's: this repo has no supply-chain audit; `CONTRIBUTING.md` names the PR reviewer as the check - Docsy's own `renovate.jsonc` (no explicit `timezone`): a follow-up on the Docsy side - enabling the Renovate app on the `docsy` org: owner step after this lands - dependency bumps of any kind; the pending ones arrive as Renovate PRs - **Verified** (renovate 44.82.5, npm 11.19.0, empty user config): - passes the strict config validator - proves the approval check red-first: a CI-shaped `npm ci` with scripts on and the hugo-extended approval wrong fails
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.
renovate.json5→renovate.jsonc:configMigrationrewrites JSON5 without its comments, JSONC keeps them (feat(config-migration): preserve comments when migratingrenovate.jsonrenovatebot/renovate#38646); the script-version-pins test (Mermaid: convert to a registry plugin; add pluginoptions#2823) reads the new filenpm init NAMEandnpm create(both runnpm exec create-NAME); barenpm init -ystaysdocsyorg: owner step after both configs land.nvmrctoolchain pinning, the config-validator one-liner in the maintainer notes, the Dependabot security-updates admin check: tracked separatelygithub-releases, age-holds the one pending action update, and shows the groups holding only npm/nvm/pin deps