Skip to the guide
All guides

CI/CD and release engineering

Review GitHub Actions pipelines for WordPress plugins, themes and sites, from secrets and test matrices to release zips and rollback.

app WordPress DevKit 2.0.3checked reading 4 minutes

On this page

When to use it

Use this skill to build, debug or review GitHub Actions CI/CD for WordPress plugins, themes and sites. It covers workflow trust and secrets, PHP and WordPress test matrices, merge gates, release zips, version drift, WordPress.org SVN delivery, host deploys and rollback.

Writing the tests themselves belongs to the test strategy skill.

Other topics go to a neighbor skill.

  • Writing tests and fixtures: wp-devkit-test-strategy
  • PHPStan configuration: wp-devkit-phpstan-review
  • WP-CLI runbooks: wp-devkit-wpcli-and-ops
  • Plugin activation, upgrade and uninstall code: wp-devkit-plugin-development
  • Data upgrade logic: wp-devkit-migration-upgrade-review
  • Vulnerabilities in the shipped code: wp-devkit-security-review

Run a review with Claude

With the plugin loaded, start a read-only review of a bounded target:

Text
/wp-devkit:release-review <target-path>

The short form /wp-devkit:release requests a quick scan.

Run a review with Codex, ChatGPT or Antigravity

Name the installed skill and keep the request small. Replace the target with your files or journey.

Text
$wp-devkit-ci-cd-and-release-engineering
Review the target without editing files.
Read the project instructions and the skill's engineering contract first.
Separate confirmed findings from candidates and state the evidence and checks you could not run.

The engineering contract is the set of rules every DevKit skill follows, such as staying read-only during a review and sorting findings by how well they are proven. For this skill, read-only means it does not run pipelines, build or publish releases, push tags, commit to SVN, or touch deploy targets and secrets.

Branch protection, required checks and environment reviewers live in repository settings, which the skill often cannot see. Tell it about them, or it marks them as unverified.

Reference files the skill loads

The skill reads only the files that match your problem.

  • github-actions-hardening-and-gates.md is used for fork pull request risk, permissions, pinned actions, script injection, secrets and required checks that can be skipped.
  • test-matrix-and-quality-gates.md is used to choose which PHP and WordPress versions to test, and for flaky or missing gates, baselines and Plugin Check.
  • packaging-and-artifact-verification.md is used when the zip contents are wrong, versions drift, a release rebuilds, or you need digests and provenance.
  • wordpress-org-release-and-rollback.md covers WordPress.org SVN and readme rules, the tag workflow, host deploys, migrations and rollback.

How a review runs

  1. The skill traces events, identities and privileges from checkout to release. For each privileged job, it decides whose code and whose text the job runs.
  2. It follows the required gates. It asks which job reports each check, whether a path filter, an if: skip, continue-on-error or || true lets a failure pass, and whether the release job depends on the gates.
  3. It checks that the tested files are the files you ship: one build, a recorded digest and no rebuild at publish. It also inspects build inputs, such as lockfile installs and a pinned toolchain.
  4. It compares the plugin header, the readme Stable tag, the tag, the changelog and the constants for the intended channel. It compares the support policy in the headers with what the test matrix proves.
  5. It checks recovery: the previous good artifact, who can roll back, whether migrations can be reversed, data restore and communication. The word "rollback" in a file does not prove a tested path.
  6. It reports what the repository establishes and what depends on settings it could not see, such as branch rules, environments and secret scopes. When evidence is missing, it names the setting or run that would settle the question.

A secret exposure that is reachable stays a serious finding even when the attacker needs a fork pull request. A pattern match with no reachable path is not raised in severity.

What you get back

A review starts with the result and the scope. Each confirmed finding lists severity, file and line, who triggers it, the reachable path, the impact, the confidence, the smallest fix and a regression check. Candidates and unverified settings are listed apart.

An implementation report lists the changed workflow and files, the pipeline stage affected, the commands with exit status, the proof that a test failed and then passed, the checks not run, the remaining risk and the rollback plan.

Note

Reviews are read-only. A clean review covers the inspected scope and is not a certification. Ask for implementation as a separate, bounded task with a regression check. Publishing, tagging and deploying need their own task and your approval.

Where to go next

Use review to fix for a bounded implementation and Doctor and reports for environment and evidence tools.