devops(deps): configure Renovate for Gitea with patch automerge (F-22) #624

Open
opened 2026-05-19 14:43:52 +02:00 by marcel · 0 comments
Owner

Context

Pre-prod audit finding F-22 (dependency hygiene): the current renovate.json has no platform: "gitea" config and no automerge rules. This is directly why 12 advisories accumulated before issue #458 — each had a fixAvailable: true but no automation created a PR.

Issue #458 added a CI audit gate (npm audit --audit-level=high --omit=dev) as a structural safety net. This issue completes F-22 by making Renovate actually work against the self-hosted Gitea instance.

What's broken

renovate.json currently:

  • Has no "platform": "gitea" — Renovate may not connect to the self-hosted instance at all
  • Has no "endpoint" pointing to http://192.168.178.71:3005/api/v1
  • Has no automerge rules — patch updates sit unmerged indefinitely
  • Has no matchDepTypes rule to catch dev-dependency CVEs automatically

Approach

  1. Add "platform": "gitea" and "endpoint" to renovate.json
  2. Add "automerge": true + "automergeType": "pr" for patch updates (semver patch = low-risk)
  3. Add "automerge": false for minor/major updates (require review)
  4. Add a matchDepTypes: ["devDependencies"] group so dev CVEs trigger PRs, not just prod deps
  5. Verify Renovate can authenticate and open a test PR against the repo

Critical files

  • renovate.json

Verification

  1. Renovate scan runs without authentication errors
  2. A Renovate PR is opened for at least one pending patch update
  3. Patch PR automerges after CI passes
  4. Minor update PR is opened but NOT automerged (requires manual review)

Acceptance criteria

  • renovate.json contains "platform": "gitea" and a valid "endpoint"
  • Patch updates automerge after CI green
  • Minor/major updates open PRs but require manual approval
  • Renovate covers both dependencies and devDependencies

Effort

S — 30 minutes config + 1 hour verification

References

  • Pre-prod audit finding F-22 (dependency hygiene)
  • Issue #458 (immediate CVE fix + CI gate)
  • Raised by: Markus, Nora, Tobias, Sara, Elicit in the #458 review
## Context Pre-prod audit finding **F-22** (dependency hygiene): the current `renovate.json` has no `platform: "gitea"` config and no automerge rules. This is directly why 12 advisories accumulated before issue #458 — each had a `fixAvailable: true` but no automation created a PR. Issue #458 added a CI audit gate (`npm audit --audit-level=high --omit=dev`) as a structural safety net. This issue completes F-22 by making Renovate actually work against the self-hosted Gitea instance. ## What's broken `renovate.json` currently: - Has no `"platform": "gitea"` — Renovate may not connect to the self-hosted instance at all - Has no `"endpoint"` pointing to `http://192.168.178.71:3005/api/v1` - Has no automerge rules — patch updates sit unmerged indefinitely - Has no `matchDepTypes` rule to catch dev-dependency CVEs automatically ## Approach 1. Add `"platform": "gitea"` and `"endpoint"` to `renovate.json` 2. Add `"automerge": true` + `"automergeType": "pr"` for patch updates (semver patch = low-risk) 3. Add `"automerge": false` for minor/major updates (require review) 4. Add a `matchDepTypes: ["devDependencies"]` group so dev CVEs trigger PRs, not just prod deps 5. Verify Renovate can authenticate and open a test PR against the repo ## Critical files - `renovate.json` ## Verification 1. Renovate scan runs without authentication errors 2. A Renovate PR is opened for at least one pending patch update 3. Patch PR automerges after CI passes 4. Minor update PR is opened but NOT automerged (requires manual review) ## Acceptance criteria - [ ] `renovate.json` contains `"platform": "gitea"` and a valid `"endpoint"` - [ ] Patch updates automerge after CI green - [ ] Minor/major updates open PRs but require manual approval - [ ] Renovate covers both `dependencies` and `devDependencies` ## Effort S — 30 minutes config + 1 hour verification ## References - Pre-prod audit finding F-22 (dependency hygiene) - Issue #458 (immediate CVE fix + CI gate) - Raised by: Markus, Nora, Tobias, Sara, Elicit in the #458 review
marcel added the P2-mediumdevops labels 2026-05-19 14:44:08 +02:00
Sign in to join this conversation.
No Label P2-medium devops
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: marcel/familienarchiv#624