Skip to content

Pass SVN password via stdin in WordPress.org release workflow - #301

Merged
Biont merged 1 commit into
mainfrom
feature/svn-password-stdin
Nov 5, 2026
Merged

Biont merged 1 commit into
mainfrom
feature/svn-password-stdin

Conversation

@strangerkir

@strangerkir strangerkir commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)

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 commit gets 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 printf to svn commit --password-from-stdin, so it never appears in argv. This is the same approach as wordpress-org-plugin-page.yml in #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 read svn's command line can also read its environment, where SVN_PASSWORD is. It helps on shared runners, where other users can read command lines but not environments, and with tools that log command lines. It also matches wordpress-org-plugin-page.yml.

Testing done: --password-from-stdin with the printf pipe 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 -x must not be enabled in this step; a comment in the workflow says so.


Note: #300 changes the same svn commit call, so whichever PR merges second needs a small conflict fix.

- use --password-from-stdin instead of --password
- keep the password out of the process list (argv)
@strangerkir
strangerkir requested a review from a team as a code owner October 30, 2026 17:30
@Biont
Biont merged commit 5e28ba7 into main Nov 5, 2026
6 checks passed
@Biont
Biont deleted the feature/svn-password-stdin branch November 5, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants