Repository navigation
Pass SVN password via stdin in WordPress.org release workflow - #301
Merged
Merged
Conversation
- use --password-from-stdin instead of --password - keep the password out of the process list (argv)
Chrico
approved these changes
Nov 3, 2026
Biont
approved these changes
Nov 5, 2026
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Security hardening (defense in depth).
What is the current behavior? (You can also link to an open issue here)
svn commitgets the WordPress.org password as--password "$SVN_PASSWORD", so it is visible in the process list (argv) while the commit runs.What is the new behavior (if this is a feature change)?
The password is piped with the bash builtin
printftosvn commit --password-from-stdin, so it never appears in argv. This is the same approach aswordpress-org-plugin-page.ymlin #296.Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No. Inputs and secrets are unchanged.
Security impact
What changed (security perspective): The SVN password no longer appears in the process list of the runner.
On GitHub-hosted runners (
ubuntu-latest, which this workflow uses) this changes nothing in practice: each job has its own VM, all processes run as the same user, and anything that can readsvn's command line can also read its environment, whereSVN_PASSWORDis. It helps on shared runners, where other users can read command lines but not environments, and with tools that log command lines. It also matcheswordpress-org-plugin-page.yml.Testing done:
--password-from-stdinwith theprintfpipe was tested with svn 1.14 / bash 5.2. actionlint passes.Residual risk (link Jira if any): The password is still in the step's environment, since WordPress.org SVN supports no tokens or SSH keys.
set -xmust not be enabled in this step; a comment in the workflow says so.Note: #300 changes the same
svn commitcall, so whichever PR merges second needs a small conflict fix.