Repository navigation
|
Hello, I would like to use a custom env variable inside renovate. In the renovate config, I put: "env": {
"INSIDE_RENOVATE": "true"
},I also add in the same location a module.exports = {
allowedEnv: ['INSIDE_RENOVATE'],
};And I changed the precommit config with: - repo: https://github.com/renovatebot/pre-commit-hooks
rev: 43.141.2
hooks:
- id: renovate-config-validator
args: [--strict]
files: "(^|/).*\\.(json|js)$"
entry: env RENOVATE_ALLOWED_ENV="['INSIDE_RENOVATE']" renovate-config-validatorHowever I still have error reported by renovate pre-commit hooks: |
Answered by
smutel
Apr 28, 2026
Replies: 1 comment
|
Works with - repo: https://github.com/renovatebot/pre-commit-hooks
rev: 43.141.2
hooks:
- id: renovate-config-validator
args: ["--strict", "--no-global"]
files: "(^|/).*\\.json$"
entry: env RENOVATE_ALLOWED_ENV="['INSIDE_RENOVATE']" renovate-config-validator |
0 replies
Answer selected by
smutel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works with
--no-globaloption ...