Repository navigation
feat: add Renovate config for SHA-pinned actions - #4
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
|
Warning Review limit reached
Your plan currently allows 5 reviews/hour. Refill in 4 minutes and 11 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
Comment |
SHA-pinned third-party actions only deliver supply-chain hardening
if the SHAs stay current — without automation, pins decay because
nobody remembers to look up the new SHA when a tag moves. Add
Renovate App configuration so the digests bump automatically.
- .github/renovate.json5: extends config:recommended, scopes
enabledManagers to ["github-actions"], opens one grouped PR
per week (Mondays before 6am) for digest bumps from a
trusted-namespace allowlist (actions/, cachix/, codecov/,
docker/, dorny/, stefanzweifel/, DeterminateSystems/).
Auto-merges those via platformAutomerge so GitHub's required
status checks are the gate. Major-version bumps always require
human review. Uses the modern matchPackageNames regex form to
avoid the deprecated matchPackagePatterns migration warning.
- .github/workflows/_lint-workflows.yml: runs actionlint on
every PR to main and on workflow_dispatch. This is the CI gate
Renovate's auto-merge depends on — when a digest bump breaks
a workflow, the lint job fails and the PR stays open. Uses the
same SHA-pinning + persist-credentials: false pattern as the
other workflows.
- README.md: new "Renovate" subsection documenting the
allowlist, weekly cadence, major-bump policy, CI gate, and the
one-time App install requirement.
Tracked under openspec/changes/add-renovate-config. The Renovate
App install and end-to-end verification (dependency dashboard,
first auto-merge) are user-driven follow-ups.
8036561 to
4b693df
Compare
There was a problem hiding this comment.
Code Review
This pull request introduces a Renovate configuration to automate GitHub Action updates, including a design document, formal specifications, and documentation updates. The configuration implements weekly grouped PRs and auto-merging for trusted namespaces. Feedback highlights that the referenced _lint-workflows.yml file is missing from the PR, and there are inconsistencies in naming and configuration examples within the documentation. Additionally, a more standard regex syntax for package matching in the Renovate config was suggested.
The trusted-namespace allowlist in .github/renovate.json5 was using
the form `"/^actions//"`, which is technically valid in Renovate's
regex parser (the outer `/` are delimiters and the inner `/` is the
literal slash in the package name) but visually mistakable for a
typo. Escape the inner slash as `\/` per the standard regex-in-
delimiter convention: `"/^actions\\//"`. Both forms match the same
package names; the escaped form is unambiguous.
Also update the corresponding example in the archived design.md
(D3) so it reflects what's actually in renovate.json5 — the design
was written before the implementation switched from the deprecated
matchPackagePatterns to matchPackageNames, and the snippet had
drifted. Adds a parenthetical note explaining the migration.
Renovate config validator still passes:
INFO: Config validated successfully
SHA-pinned third-party actions only deliver supply-chain hardening
if the SHAs stay current — without automation, pins decay because
nobody remembers to look up the new SHA when a tag moves. Add
Renovate App configuration so the digests bump automatically.
.github/renovate.json5: extends config:recommended, scopes
enabledManagers to ["github-actions"], opens one grouped PR
per week (Mondays before 6am) for digest bumps from a
trusted-namespace allowlist (actions/, cachix/, codecov/,
docker/, dorny/, stefanzweifel/, DeterminateSystems/).
Auto-merges those via platformAutomerge so GitHub's required
status checks are the gate. Major-version bumps always require
human review. Uses the modern matchPackageNames regex form to
avoid the deprecated matchPackagePatterns migration warning.
.github/workflows/_lint-workflows.yml: runs actionlint on
every PR to main and on workflow_dispatch. This is the CI gate
Renovate's auto-merge depends on — when a digest bump breaks
a workflow, the lint job fails and the PR stays open. Uses the
same SHA-pinning + persist-credentials: false pattern as the
other workflows.
README.md: new "Renovate" subsection documenting the
allowlist, weekly cadence, major-bump policy, CI gate, and the
one-time App install requirement.
Tracked under openspec/changes/add-renovate-config. The Renovate
App install and end-to-end verification (dependency dashboard,
first auto-merge) are user-driven follow-ups.