fix(renovate): move global-only gitUrl option out of repo config #12
No reviewers
Labels
No labels
dependencies
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
alex/pi-shared!12
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/renovate-giturl-global-option"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the Renovate config warning reported on the Dependency Dashboard (#11):
Root cause
Reproduced locally by running
renovate --dry-run=full(v43.249.5, the same version the runner uses) against this repo. The actual warning is:gitUrlis a global / self-hosted option — it lives on Renovate's self-hosted configuration docs page, not the per-repo configuration page. Placing"gitUrl": "endpoint"in the repository'srenovate.jsonis invalid, and Renovate reports it as a config warning on every run — which is exactly what surfaced on the dashboard.Fix
renovate.json— removed the invalid"gitUrl": "endpoint"entry..forgejo/workflows/renovate.yml— injectedgitUrlwhere it belongs: as the globalRENOVATE_GIT_URL=endpointenv var on theRun Renovatestep (consistent with the otherRENOVATE_*global options already passed there). Theendpointvalue (clone over the configured HTTP API endpoint instead of SSH) is preserved.Verification
Ran
renovate 43.249.5 --dry-runagainst the repo:WARN: Found renovate config warnings→gitUrlglobal-option error.renovate-config-validatorpasses, the resolved global config still contains"gitUrl": "endpoint"(via the env var), and the Forgejo workflow files are still detected/scanned.Reference: https://docs.renovatebot.com/modules/platform/forgejo/
Closes #11
The `gitUrl` option is a global/self-hosted-only setting and cannot be placed in a repository's renovate.json. Renovate flagged it as a config warning ("Found renovate config warnings") on every run. - renovate.json: remove the invalid `"gitUrl": "endpoint"` entry - renovate.yml: supply it globally as `RENOVATE_GIT_URL=endpoint` Verified with renovate 43.249.5 --dry-run: warning gone, validator passes, gitUrl=endpoint still resolved globally, forgejo workflows still scanned. Fixes #11Pull request closed