Skip to content

docs(renovate): exempt org-owned actions from digest pinning (last-match-wins)#123

Merged
CybotTM merged 1 commit into
mainfrom
retro/renovate-last-match-wins
Jul 19, 2026
Merged

docs(renovate): exempt org-owned actions from digest pinning (last-match-wins)#123
CybotTM merged 1 commit into
mainfrom
retro/renovate-last-match-wins

Conversation

@CybotTM

@CybotTM CybotTM commented Jul 19, 2026

Copy link
Copy Markdown
Member

Learning from a session where Renovate auto-merged PRs that SHA-pinned an org/.github reusable workflow against org policy.

dependency-management.md (Renovate): Renovate applies the last matching packageRule, so a myorg/** pin-exemption placed only in a shared preset is silently overridden when a repo extends helpers:pinGitHubActionDigests after it — and Renovate SHA-pins org-owned reusable workflows that are meant to track a branch (so fixes reach consumers without per-repo digest bumps).

Added a subsection documenting the two places the exemption actually wins:

  • repo-level packageRules (evaluated after all extends), and
  • a bundled :pinning sub-preset that extends the pin preset then applies the exemption last, so consumers can't omit or mis-order it.

…tch-wins)

Renovate applies the last matching packageRule, so a netresearch/** pin
exemption in a shared preset is overridden when a repo extends
helpers:pinGitHubActionDigests after it — SHA-pinning org-owned reusable
workflows meant to track a branch. Document the repo-level rule and a
bundled :pinning sub-preset that applies the exemption last.

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
Copilot AI review requested due to automatic review settings July 19, 2026 19:35
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added documentation Improvements or additions to documentation skill labels Jul 19, 2026
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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

Copy link
Copy Markdown
Contributor

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 updates the dependency management documentation by adding a new section on GitHub Actions digest pinning. It explains how Renovate's last-match-wins rule evaluation can override exemptions for org-owned resources and provides repo-level and org-wide configuration examples to correctly handle these exemptions. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@CybotTM
CybotTM merged commit 576ad4e into main Jul 19, 2026
18 of 19 checks passed
@CybotTM
CybotTM deleted the retro/renovate-last-match-wins branch July 19, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants