Adding hostRules to global config.js changes platform authentication type to Basic from Bearer #29305
-
What would you like help with?I think I found a bug How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.self hosted GitLab Please tell us more about your question or problemHi,
after adding this config I lose connectivity to self hosted Gitlab api , and the difference I see in logs between run with with
without
This leads me to assumption that renovate for some reason use wrong Auth type. Expected behaviour: configuring hostRules in detailed log lines provided below: I also use environment variables: RENOVATE_TOKEN: xxxxxxxx
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate
RENOVATE_ENDPOINT: $CI_API_V4_URL
RENOVATE_PLATFORM: gitlab
RENOVATE_OPTIMIZE_FOR_DISABLED: 'true'
RENOVATE_REPOSITORY_CACHE: 'disabled'
RENOVATE_GIT_AUTHOR: 'Renovate Bot <[email protected]>'
RENOVATE_LOG_FILE: renovate-log.ndjson
RENOVATE_LOG_FILE_LEVEL: debug
RENOVATE_PR_COMMITS_PER_RUN_LIMIT: 5
RENOVATE_REPOSITORIES: '["vw-migrations/microservices/test-mcs"]' Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
A username/password host rule will always generate Basic authentication no matter where it is |
Beta Was this translation helpful? Give feedback.
Probably because your matchHost needs https:// before it.