Skip to content

ci: hard-code allowed commands for Renovate post-upgrade tasks#755

Merged
gkalpak merged 1 commit intoangular:mainfrom
gkalpak:ci-renovate-hardcode-cmds
Aug 4, 2022
Merged

ci: hard-code allowed commands for Renovate post-upgrade tasks#755
gkalpak merged 1 commit intoangular:mainfrom
gkalpak:ci-renovate-hardcode-cmds

Conversation

@gkalpak
Copy link
Member

@gkalpak gkalpak commented Aug 4, 2022

The allowedPostUpgradeCommands pattern list is used to determine whether a post-upgrade task command is allowed to be run by Renovate. Using a regex to try and limit the type of commands that can be run is not a viable strategy.

This commit hard-codes the exact command that needs to run for angular.io docs examples dependencies (see angular/angular#47040).

Hard-coding commands requires updates in multiple places when a post-upgrade task is added/modified, but adds one more layer of protection against running unwanted commands as part of the Renovate update process.

The [allowedPostUpgradeCommands][1] pattern list is used to determine
whether a [post-upgrade task][2] command is allowed to be run by
Renovate. Using a regex to try and limit the type of commands that can
be run is not a viable strategy.

This commit hard-codes the exact command that needs to run for
angular.io docs examples dependencies (see angular/angular#47040).

Hard-coding commands requires updates in multiple places when a
post-upgrade task is added/modified, but adds one more layer of
protection against running unwanted commands as part of the Renovate
update process.

[1]: https://docs.renovatebot.com/self-hosted-configuration/#allowedpostupgradecommands
[2]: https://docs.renovatebot.com/configuration-options/#postupgradetasks
@gkalpak gkalpak marked this pull request as ready for review August 4, 2022 10:22
@gkalpak gkalpak merged commit de4721f into angular:main Aug 4, 2022
@gkalpak gkalpak deleted the ci-renovate-hardcode-cmds branch August 4, 2022 14:45
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants