Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
5ea25f74
Unverified
Commit
5ea25f74
authored
1 year ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
docs(customEnvVariables): recommend secrets
parent
14cba69c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/usage/self-hosted-configuration.md
+25
-0
25 additions, 0 deletions
docs/usage/self-hosted-configuration.md
with
25 additions
and
0 deletions
docs/usage/self-hosted-configuration.md
+
25
−
0
View file @
5ea25f74
...
...
@@ -327,6 +327,31 @@ Use this option if you need such downloads to be stored outside of Renovate's re
This configuration will be applied after all other environment variables so you can use it to override defaults.
<!-- prettier-ignore -->
!!! warning
Do not configure any secret values directly into `
customEnvVariables
` because they may be logged to stdout.
Instead, configure them into `
secrets
` first so that they will be redacted in logs.
If configuring secrets in to `
customEnvVariables
`, take this approach:
```js
{
secrets: {
SECRET_TOKEN: process.env.SECRET_TOKEN,
},
customEnvVariables: {
SECRET_TOKEN: '{{ secrets.SECRET_TOKEN }}',
},
}
```
The above configuration approach will mean the values are redacted in logs like in the following example:
```
"secrets": {"SECRET_TOKEN": "***********"},
"customEnvVariables": {"SECRET_TOKEN": "{{ secrets.SECRET_TOKEN }}"},
```
## detectGlobalManagerConfig
The purpose of this config option is to allow you (as a bot admin) to configure manager-specific files such as a global `
.npmrc
` file, instead of configuring it in Renovate config.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment