0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/modules/manager/copier
Risu 397ab49ef3
docs(managers): add missing url and displayName (#32621)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-01 08:47:27 +00:00
..
artifacts.spec.ts feat(manager/copier): propagate Git auth env vars (#31931) 2024-10-14 07:43:38 +00:00
artifacts.ts feat(manager/copier): propagate Git auth env vars (#31931) 2024-10-14 07:43:38 +00:00
extract.spec.ts feat(manager/copier): Implement manager (#29215) 2024-08-06 08:07:27 +00:00
extract.ts feat(manager/copier): Implement manager (#29215) 2024-08-06 08:07:27 +00:00
index.ts docs(managers): add missing url and displayName (#32621) 2024-12-01 08:47:27 +00:00
readme.md feat(manager/copier): propagate Git auth env vars (#31931) 2024-10-14 07:43:38 +00:00
schema.ts feat(manager/copier): Implement manager (#29215) 2024-08-06 08:07:27 +00:00
update.spec.ts feat(manager/copier): Implement manager (#29215) 2024-08-06 08:07:27 +00:00
update.ts feat(manager/copier): Implement manager (#29215) 2024-08-06 08:07:27 +00:00
utils.ts feat(manager/copier): Implement manager (#29215) 2024-08-06 08:07:27 +00:00

Keeps Copier templates up to date. Supports multiple .copier-answers(...).y(a)ml files in a single repository. If a template requires unsafe features, Copier must be invoked with the --trust flag. Enabling this behavior must be allowed in the self-hosted configuration via allowScripts. Actually enable it in the configuration by setting ignoreScripts to false.

If you need to change the versioning format, read the versioning documentation to learn more.

Private Modules Authentication

Before running the copier command to update from the template, Renovate exports git insteadOf directives in environment variables.

Renovate uses this logic before it updates the template copy:

The token from the hostRules entry matching hostType=github and matchHost=api.github.com is added as the default authentication for github.com. For those running against github.com, this token will be the default platform token.

Next, all hostRules with both a token or username/password and matchHost will be fetched, except for any github.com one from above.

Rules from this list are converted to environment variable directives if they match any of these characteristics:

  • No hostType is defined, or
  • hostType is git-tags, or
  • hostType is a platform (github, gitlab, azure, etc.)