Skip to content

feat: add Renovate config for SHA-pinned actions - #4

Merged
kalbasit merged 2 commits into
mainfrom
feat-add-renovate-config-for-sha
May 22, 2026
Merged

kalbasit merged 2 commits into
mainfrom
feat-add-renovate-config-for-sha

Conversation

@kalbasit

Copy link
Copy Markdown
Owner

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.

@kalbasit

kalbasit commented May 22, 2026 •

Copy link
Copy Markdown
Owner Author

@coderabbitai

coderabbitai Bot commented May 22, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@kalbasit, we couldn't start this review because you've used your available PR reviews for now.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0301927c-ead7-4cc8-9b75-aecd9387ff17

📥 Commits

Reviewing files that changed from the base of the PR and between 6e29b52 and ebca29f.

📒 Files selected for processing (9)
  • .github/renovate.json5
  • .github/workflows/_lint-workflows.yml
  • README.md
  • openspec/changes/archive/2026-05-22-add-renovate-config/.openspec.yaml
  • openspec/changes/archive/2026-05-22-add-renovate-config/design.md
  • openspec/changes/archive/2026-05-22-add-renovate-config/proposal.md
  • openspec/changes/archive/2026-05-22-add-renovate-config/specs/renovate-config/spec.md
  • openspec/changes/archive/2026-05-22-add-renovate-config/tasks.md
  • openspec/specs/renovate-config/spec.md

Comment @coderabbitai help to get the list of available commands and usage tips.

Base automatically changed from feat-add-reusable-ci-workflows to main May 22, 2026 23:02
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.
@kalbasit
kalbasit force-pushed the feat-add-renovate-config-for-sha branch from 8036561 to 4b693df Compare May 22, 2026 23:02

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread README.md Resolved
Comment thread .github/renovate.json5 Resolved
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
@kalbasit
kalbasit enabled auto-merge (squash) May 22, 2026 23:07
@kalbasit
kalbasit merged commit 5d92302 into main May 22, 2026
2 checks passed
@kalbasit
kalbasit deleted the feat-add-renovate-config-for-sha branch May 22, 2026 23:08
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