Skip to content

fix(ci): pin renovate-approve to the evaluated commit and mint the token after claude - #1156

Open
tolzhabayev wants to merge 1 commit into
mainfrom
fix/renovate-approve-hardening
Open

tolzhabayev wants to merge 1 commit into
mainfrom
fix/renovate-approve-hardening

Conversation

@tolzhabayev

@tolzhabayev tolzhabayev commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:

Brings renovate-approve in line with the hardened version from grafana/catalog-website#543, which has been running there since 2026-11-18.

  • Approvals go through the reviews API with commit_id set to the commit collect evaluated, and a head check runs first. gh pr review sends no commit, so it approved whatever the head was at that moment.
  • The verdict is read from the last non-empty line only, and approve or needs-human has to be followed by a space or end of line.
  • The bot token is minted after the Claude step, so it doesn't exist on the runner while Claude reads untrusted input. The direct and blocked steps moved down with it.

Which issue(s) this PR fixes:

Refs grafana/grafana-catalog-team#1227

Special notes for your reviewer:

Same patch in every repo that runs the gate. The claude-code-action pin is left as it is, Renovate keeps bumping that.

@andresmgot andresmgot moved this from 📬 Triage to 🧑‍💻 In development in Grafana Catalog Team Nov 23, 2026
@tolzhabayev
tolzhabayev marked this pull request as ready for review November 23, 2026 12:57
@tolzhabayev
tolzhabayev requested a review from a team as a code owner November 23, 2026 12:57
@tolzhabayev
tolzhabayev requested review from leventebalogh, mckn and xnyo and removed request for a team November 23, 2026 12:57
@tolzhabayev
tolzhabayev enabled auto-merge (squash) November 23, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🧑‍💻 In development

Development

Successfully merging this pull request may close these issues.

1 participant