Skip to content

Renovate: move config to JSONC, harden GitHub Actions bumps - #2821

Merged
chalin merged 8 commits into
docsy:mainfrom
chalin:chalin-m24-renovate-alignment-2026-0919
Sep 24, 2026
Merged

chalin merged 8 commits into
docsy:mainfrom
chalin:chalin-m24-renovate-alignment-2026-0919

Conversation

@chalin

@chalin chalin commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

@chalin chalin added this to the 0.18.0 milestone Sep 20, 2026
@netlify

netlify Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docsydocs ready!

Name Link
🔨 Latest commit 20dc82e
🔍 Latest deploy log https://app.netlify.com/projects/docsydocs/deploys/6ab14136ffd29f0008828a3f
😎 Deploy Preview https://deploy-preview-2821--docsydocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@chalin
chalin force-pushed the chalin-m24-renovate-alignment-2026-0919 branch from 5b0b499 to 3b198f0 Compare September 20, 2026 02:16
@chalin chalin changed the title Renovate: JSONC config, Release-aged action bumps on SHA-named branches Renovate: move config to JSONC, age action bumps by Release on SHA-named branches Sep 20, 2026
@chalin
chalin force-pushed the chalin-m24-renovate-alignment-2026-0919 branch from 953fe81 to fad8b24 Compare September 20, 2026 15:33
@chalin chalin changed the title Renovate: move config to JSONC, age action bumps by Release on SHA-named branches Renovate: move config to JSONC, harden action bumps Sep 21, 2026
- 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
chalin force-pushed the chalin-m24-renovate-alignment-2026-0919 branch from 64686b8 to 20dc82e Compare September 21, 2026 14:37
@chalin

chalin commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator Author

Semantic diff of the Renovate config, main's renovate.json5 vs this PR's renovate.jsonc, both parsed (json5, jsonc-parser) and re-serialized as canonical JSON so the JSON5 → JSONC syntax and comment changes drop out. What remains is the settings change:

--- 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 matchStrings quote their object keys with ' instead of \" (string content, not syntax; JSONata treats both as the same string literal). Everything else in the config is byte-identical after normalization.

@chalin chalin changed the title Renovate: move config to JSONC, harden action bumps Renovate: move config to JSONC, harden GitHub Actions bumps Sep 24, 2026
@chalin
chalin marked this pull request as ready for review September 24, 2026 13:56
@chalin
chalin requested a review from a team September 24, 2026 13:56
@chalin
chalin merged commit abda464 into docsy:main Sep 24, 2026
17 of 18 checks passed
@chalin
chalin deleted the chalin-m24-renovate-alignment-2026-0919 branch 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
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