Rate release-platform-canary's Renovate bumps with the MR Risk Labeler

What does this MR do and why?

Step 3 of onboarding a project to the MR Risk Labeler, for gitlab-org/software-delivery/release-platform-canary (79940646), for gitlab-org/gitlab#638927. The release-and-deploy maintainers asked to start with Renovate merge requests alone. Stacked on !4540 (merged), which adds dependency_bot_authors.

The project is listed with approve: false:

  • dependency_bot_authors names the project's Renovate bot, project_79940646_bot_bf6898bfa3e03c2bda844cc38b3bd69b (user 35035799). Renovate here runs as a project access token, not as @gitlab-dependency-update-bot.
  • One flow, mr_risk, scoped to bot_dependency. It starts on the bot's merge requests as they open, since Renovate applies maintenancedependency itself, and again on every push. It does not start on anyone else's.
  • No low_scopes, so nothing it says is approved, and excluded_labels: [automation:prevent-risk-flow], as in every other project the flow runs in.

The project's rules (components/agents-and-flows/gitlab-merge-request!125 (merged)) are a second filter. They hold one deps area over the files Renovate moves, so a Renovate branch that someone pushed code onto is refused, and a person reads it.

Before this is ready

  • !4540 (merged) is merged.
  • components/agents-and-flows/gitlab-merge-request!125 (merged) is merged and tagged as 0.33.0, and the catalog sync has created this project's consumer for flow 1020378, 13880538. consumer_id is set to it, in the config and in the project's own example in config_spec.rb.
  • gitlab-org/software-delivery/release-platform-canary!299 (merged) is merged. The project's Duo session image has no Ruby, and every step of the flow is a ruby command.
  • After the sync, @ai-mr-risk-labeler-gitlab-org is a Developer in the project. The sync adds it when it creates the consumer.
  • The mapping example passes with AI_CATALOG_MAPPING_PATH pointed at the new .ai-catalog-mapping.json. CI skips it.

Renovate's token

Renovate runs here as renovate-bot, a project access token that infra-mgmt's Terraform owns (release-platform-canary in data/projects/release-platform/repos.yaml, through the release-platform and project modules). It expires after 90 days. infra-mgmt's daily apply rotates it after 50 with GitLab's rotate API, which issues the new token to the same bot user, so this entry holds across rotations.

The ID changes only if Terraform replaces the token: its name, description, scopes or access level changes, or it is revoked or deleted outside Terraform, which includes GitLab's reuse detection revoking a rotated token. The flow then stops starting here, and this entry needs the new ID. Nothing reports it: the sign is Renovate's merge requests going unrated.

Compliance

Nothing here approves. If the project later lists low_scopes, dependency_bot_authors becomes approval configuration:

  • gitlab-org/gitlab#638502 row 3 asks for CODEOWNERS and access controls on this file.
  • Row 4 asks for a post-merge review on anything merged with no human, which matters only if the project later turns on auto-merge. Renovate's own automerge is off here.

How to validate locally

SIMPLECOV=0 bundle exec rspec spec/processor/mr_approval_flow/config_spec.rb

Every example passes. The mapping check runs only where AI_CATALOG_MAPPING_PATH points at gitlab-merge-request's .ai-catalog-mapping.json, and it passes against the one tag 0.33.0 wrote.

🤖 Generated with Claude Code

Edited by Connor Sanders

Merge request reports

Loading
Loading