Repository navigation
Conversation
Breaking change. The action now only starts MySQL. It no longer switches root to mysql_native_password, which MySQL deprecated, turned off in 8.4 and removed in 9.0. Root keeps caching_sha2_password, which PHP 7.4 and newer support. Workflows that test PHP 7.3 or older against this MySQL should stay on actions-v3. The self-test now checks that PHP 7.4 and 8.5 connect with mysqli and PDO over TCP without TLS and over the socket, on ubuntu-24.04 and ubuntu-26.04.
Point the usage examples in every action README to actions-v4, and move the release-process examples in the package README to v4.x.
triple0t
requested review from
eason9487
and
a balanced review from Copilot
and removed request for
eason9487
November 6, 2026 20:47
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the v4 update that preserves the runner’s default MySQL authentication.
No open issues 🎉
What changed in this PR
Prepares the GitHub Actions package for v4 by simplifying prepare-mysql to preserve the runner’s default authentication instead of forcing mysql_native_password. Workflows testing PHP 7.3 or older are directed to keep this action on v3.
Changes:
- Removes MySQL authentication overrides while retaining service startup and version logging.
- Expands self-tests across Ubuntu 24.04/26.04 and PHP 7.4/8.5, checking authentication and uncached mysqli/PDO connections over TCP and sockets.
- Updates action usage examples to
@actions-v4and refreshes release-process documentation.
| File | Description |
|---|---|
packages/github-actions/README.md |
Updates MySQL description and release-version examples. |
packages/github-actions/actions/update-version-tags/README.md |
Updates usage example to v4. |
packages/github-actions/actions/stylelint-annotation/README.md |
Updates usage example to v4. |
packages/github-actions/actions/publish-extension-dev-build/README.md |
Updates usage example to v4. |
packages/github-actions/actions/prepare-php/README.md |
Updates usage examples to v4. |
packages/github-actions/actions/prepare-node/README.md |
Updates usage examples to v4. |
packages/github-actions/actions/prepare-mysql/README.md |
Documents default authentication and v3 migration guidance. |
packages/github-actions/actions/prepare-mysql/action.yml |
Removes authentication overrides; keeps MySQL startup. |
packages/github-actions/actions/prepare-extension-release/README.md |
Updates usage example to v4. |
packages/github-actions/actions/phpcs-diff/README.md |
Updates usage examples to v4. |
packages/github-actions/actions/merge-trunk-develop-pr/README.md |
Updates usage example to v4. |
packages/github-actions/actions/hook-documentation/readme.md |
Updates usage example to v4. |
packages/github-actions/actions/get-release-notes/README.md |
Updates usage examples to v4. |
packages/github-actions/actions/get-plugin-releases/README.md |
Updates usage examples to v4. |
packages/github-actions/actions/eslint-annotation/README.md |
Updates usage example to v4. |
packages/github-actions/actions/coverage-report/README.md |
Updates coverage and PHP action examples to v4. |
packages/github-actions/actions/branch-label/README.md |
Updates usage example to v4. |
packages/github-actions/actions/automerge-released-trunk/README.md |
Updates usage example to v4. |
.github/workflows/github-actions-self-test.yml |
Adds PHP matrix and default-authentication connection checks. |
Review effort: Balanced
costasovo
approved these changes
Nov 9, 2026
costasovo
left a comment
There was a problem hiding this comment.
Thank you for looking into this! Checked the self-test logs against the test steps and the AutomateWoo and AutomateWoo Birthdays runs against the test build. All pass on both Ubuntu 24.04 and 26.04, and root uses caching_sha2_password. Looks good!
Merged
1 of 2 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.
Changes proposed in this Pull Request:
Breaking change, for the
actions-v4.0.0release.prepare-mysqlnow only starts MySQL. It no longer switches therootuser tomysql_native_password. Root keeps MySQL's default login method,caching_sha2_password.Why:
mysql_native_password, turned it off by default in 8.4 and removed it in 9.0 (8.4.0 release notes). Ubuntu 26.04 runners ship MySQL 8.4 (image readme), andubuntu-latestmoves to 26.04 by November 19 (actions/runner-images#14748).mysql_native_password. PHP 7.4 and newer supportcaching_sha2_password.prepare-mysqlaction (Ubuntu 26.04 runners) #284 (released asactions-v3.0.7) kept the old login method working on MySQL 8.4, so nothing changed for v3 users. Dropping it is an incompatible change, so it goes in a new major version.Who is affected: workflows that test PHP 7.3 or older against the runner's MySQL. They can keep only this action on
woocommerce/grow/prepare-mysql@actions-v3(that tag points to 3.0.7, which works on Ubuntu 26.04) and move their other grow actions to v4. Workflows on PHP 7.4 or newer need no change.Also in this PR, like #238 did for v3:
@actions-v4.Detailed test instructions:
prepare-mysqljobs (ubuntu-24.04andubuntu-26.04, each with PHP 7.4 and 8.5) should pass.caching_sha2_password.127.0.0.1andlocalhost), each with an empty TLS cipher. Before each connection the step runsFLUSH PRIVILEGES, so PHP does the full login, not the cached one.mysql_native_passwordon both runners (see the v3 self-test on Support MySQL 8.4 in theprepare-mysqlaction (Ubuntu 26.04 runners) #284).I also ran the test build (
breaking/prepare-mysql-default-auth-test-build) in two private plugin repos, on bothubuntu-24.04andubuntu-26.04. Both connect withlocalhost, which uses the socket. All jobs passed:The logs show only
systemctl start mysql.service, thenVer 8.4.11-0ubuntu0.26.04.1on 26.04 andVer 8.0.46-0ubuntu0.24.04.4on 24.04.Additional details:
Release order:
actions-v3.0.7is already released (actions-v3points to it), so v3 users keep working on Ubuntu 26.04 after this ships.