Repository navigation
Commit 7896e5a
committed
Trust project configuration files in Behat runs
WP-CLI gates `require`, `exec`, `env` and `ssh-args` directives found in a
project-level wp-cli.yml behind a trust confirmation. Test fixtures create
such files routinely and a non-interactive test run cannot answer the
prompt, so pass WP_CLI_TRUST_PROJECT_CONFIG=1 to every command the Behat
context runs.
An explicit WP_CLI_TRUST_PROJECT_CONFIG in the outer environment still wins,
and scenarios exercising the trust mechanism itself can keep overriding it
per command.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RcafAC2UeQTVKoy8wVxJzB1 parent b02c72d commit 7896e5a
2 files changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
150 | 159 | | |
151 | 160 | | |
152 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
492 | 500 | | |
493 | 501 | | |
494 | 502 | | |
| |||
0 commit comments