From eeab718e23e4466ae6c31364633a78b858dd7e3e Mon Sep 17 00:00:00 2001 From: andytson-inviqa Date: Fri, 8 Apr 2022 15:47:18 +0100 Subject: [PATCH] Ensure pipeline environments generate new admin passwords (#667) by avoiding passing local insecure password to them --- harness.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/harness.yml b/harness.yml index 2d889a0..1f3ab4e 100644 --- a/harness.yml +++ b/harness.yml @@ -49,15 +49,15 @@ attributes: "--url=$(eval echo "$WORDPRESS_URL")" \ "--title=${APP_NAME}" \ --admin_user=admin \ - --admin_password=admin123 \ + "--admin_password=${ADMIN_DEFAULT_PASSWORD}" \ --admin_email=admin@localhost.local - task assets:dump init: steps: - run bin/wp-cli.phar "--path=${WORDPRESS_INSTALL_DIRECTORY}" option update siteurl "$(eval echo "${WORDPRESS_URL}")" - run bin/wp-cli.phar "--path=${WORDPRESS_INSTALL_DIRECTORY}" option update home "$(eval echo "${WORDPRESS_URL}")" - - run "bin/wp-cli.phar '--path=${WORDPRESS_INSTALL_DIRECTORY}' user create admin admin@localhost.local --role=administrator --user_pass=admin123 || exit 0" - - run bin/wp-cli.phar "--path=${WORDPRESS_INSTALL_DIRECTORY}" user update admin --role=administrator --user_pass=admin123 --skip-email + - run "bin/wp-cli.phar '--path=${WORDPRESS_INSTALL_DIRECTORY}' user create admin admin@localhost.local --role=administrator '--user_pass=${ADMIN_DEFAULT_PASSWORD}' || exit 0" + - run bin/wp-cli.phar "--path=${WORDPRESS_INSTALL_DIRECTORY}" user update admin --role=administrator "--user_pass=${ADMIN_DEFAULT_PASSWORD}" --skip-email php: install_extensions: - "= @('services.blackfire.enabled') ? 'blackfire' : ''"