ci(deps): make Renovate read the lock and look the hooks up without a token
Dry run 3880 showed that since #124 Renovate proposed no bump at all: - pip-compile: the manager refused the lock's header ("Option --newline=LF not supported (yet)"), extracted nothing and only logged a WARN, so the Python tools were never bumped. Drop --newline from scripts/lock-requirements.sh and the lock header (the 81 entries and hashes are unchanged); the manager now reads 81 dependencies. The lock is an image input: ci 0.2.19 -> 0.2.20. - pre-commit: every hook was skipped (skipReason github-token-required, no GitHub token exists), and with the warning off the GitHub GraphQL lookup is refused at once (403 rate limit). Look the hooks up with git ls-remote (packageRule overrideDatasource git-tags, which needs RENOVATE_GITHUB_TOKEN_WARN=false because the token check runs before package rules apply). Renovate dereferences annotated tags, so the new rev is the commit (checked against git ls-remote for conventional-pre-commit v4.5.0). git-tags has no release timestamps, so hook bumps are not automerged. Tested with [email protected].0 --platform=local against this checkout. Not tested: the real job (renovate.json is read from main), the lock replay by Renovate's pip-compile artifact step, and the ci 0.2.20 image build. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTRacjtXvmKxHr5TM5G
This commit is contained in:
1 parent
588ba2a3ea
commit
1c6a80d3d5
6 files changed
+34
-5
No files matched your search
@@ -179,6 +179,18 @@
|
||||
"git.rkdr.net/mortis/**"
|
||||
],
|
||||
"automerge": true
|
||||
},
|
||||
{
|
||||
"description": "Look the pre-commit hook repositories up with git ls-remote (git-tags) instead of the GitHub API. This run has no GitHub token, and the github-tags datasource then either skips every hook (skipReason github-token-required, dry run 3880) or is refused at once with 403 rate limit (githubTokenWarn off, local run). git-tags needs no API and no credential, and it uses the dereferenced hash of an annotated tag, so the new rev is the commit, as pre-commit needs. The `# frozen:` form is kept by the manager's own replace template. It works only together with RENOVATE_GITHUB_TOKEN_WARN=false in renovate.yml: the token check runs after extraction and skips every github-tags dependency before a package rule can change its datasource (local run, Renovate 44.161.0). git-tags has no release timestamps, so minimumReleaseAge cannot delay a hook bump: hook bumps are never automerged, a person reviews each one.",
|
||||
"matchManagers": [
|
||||
"pre-commit"
|
||||
],
|
||||
"matchDatasources": [
|
||||
"github-tags"
|
||||
],
|
||||
"overrideDatasource": "git-tags",
|
||||
"overridePackageName": "https://github.com/{{{depName}}}",
|
||||
"automerge": false
|
||||
}
|
||||
],
|
||||
"lockFileMaintenance": {
|
||||
|
||||
Reference in new issue
Block a user