fix(renovate): authenticate git with a bearer header and fail the job on repository errors
Renovate puts the job token in the clone URL, which git drops when the server redirects (dry run 2439: could not read Username). Write a global git http.extraheader like lint.yml does. Renovate exits 0 on a repository failure: set exitCodeForErrors and check the JSON report for a missing file or ERROR/FATAL problems. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
a7ea0e0473
commit
7e32ad5ac6
3 files changed
+50
-7
No files matched your search
+1
-1
@@ -36,7 +36,7 @@
|
||||
- `renovate.json` configures dependency bumps (minor and patch automerge, majors by hand). Renovate
|
||||
runs for this repository in `.gitea/workflows/renovate.yml` (daily cron on the Collection's own
|
||||
runner, with the workflow's job token; no cluster code involved). To dry-run after changing the
|
||||
config: Actions > Renovate > Run workflow with `dry_run=true`, then read the debug log. The dry run
|
||||
config: Actions > Renovate > Run workflow with `dry_run=true`, then read the debug log (the job fails on a failed clone or an ERROR problem). The dry run
|
||||
proves reads (and runs the post-upgrade task); whether the job token can push and open a pull
|
||||
request, and whether such pull requests start the PR workflows, only the first live run shows
|
||||
(open item, see CLAUDE.md); until then they may need a manual lint run. Pull requests from `renovate/` branches must pass
|
||||
|
||||
Reference in new issue
Block a user