From 207969a5acb67faf0e2adcce152a1d2b9117832a Mon Sep 17 00:00:00 2001 From: Kyrylo Date: Fri, 23 Oct 2026 20:11:52 +0300 Subject: [PATCH] Pass SVN password via stdin in WordPress.org release workflow - use --password-from-stdin instead of --password - keep the password out of the process list (argv) --- .github/workflows/wordpress-org-release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wordpress-org-release.yml b/.github/workflows/wordpress-org-release.yml index 93cfb58b2..df90010ca 100644 --- a/.github/workflows/wordpress-org-release.yml +++ b/.github/workflows/wordpress-org-release.yml @@ -298,11 +298,13 @@ jobs: # WordPress.org SVN doesn't support SSH keys or tokens. # Keeping credentials as step-level env vars with --no-auth-cache is the best available option. + # The password is piped via stdin, so it never shows up in the process list (argv). + # printf must stay the bash builtin, and set -x must not be enabled in this step. echo '🚀 Committing...' - svn commit "${COMMIT_PATHS[@]}" \ + printf '%s' "$SVN_PASSWORD" | svn commit "${COMMIT_PATHS[@]}" \ --username "$SVN_USERNAME" \ - --password "$SVN_PASSWORD" \ + --password-from-stdin \ --no-auth-cache \ --non-interactive \ -m "$COMMIT_MESSAGE"