Label risky container-registry updates automation:prevent-risk-flow
What does this MR do?
Step 3 of gitlab-org/container-registry#3007: label container-registry updates automation:prevent-risk-flow when the maintainers review them themselves. The MR approval flow skips any MR with that label, so gitlab-bot never approves or merges them, whatever the MR Risk Labeler rates them.
Three packageRules, each using addLabels so the existing labels stay:
- Risky modules, any bump:
- Object storage: AWS SDK v1 and v2, smithy-go, Azure SDK,
cloud.google.com/go/storage,google.golang.org/api. - Database and cache: pgx, pgerrcode, lib/pq, sql-migrate, go-redis, redislock, gocache.
- Tokens and crypto: libtrust, golang-jwt, go-jose,
golang.org/x/crypto,golang.org/x/oauth2. - Image format: image-spec, go-digest.
- labkit (v1 and v2). This rule has no
matchManagers, so the labkit pin in the Makefile (custom.regex) is labelled too.
- Object storage: AWS SDK v1 and v2, smithy-go, Azure SDK,
- The
goandtoolchainlines (matchDepTypes: ["golang", "toolchain"], as incli.config.js). - Every major bump.
The same module list goes into the risk rubric in the step 4 MR (instructions/13831684/deps.md in components/agents-and-flows/gitlab-merge-request), so the two stay in sync.
Renovate creates the label if it doesn't exist yet.
Open questions for the reviewer
These come from the issue and are not decided here:
- Is the risky list complete? In particular:
-
google.golang.org/api: included, as in the original draft. Keep it? -
golang.org/x/net: not included. Add it?
-
- Keep the
devvmmodule (devvm/go/) in scope, or drop it? These rules don't filter by file, so they label devvm bumps of the same modules too.
Also note: lib/pq, sql-migrate, redislock and gocache were added to the original draft's list, because they are direct database and cache dependencies in go.mod.
Validation
prettier --list-differentpasses, andnode --checkparses the config.- The CI dry-run job for this config shows the resulting rules.
Reviewers: @hswimelar first, then a renovate-gitlab-bot maintainer.