Skip to content

cli.php not found when using plugin-check.latest-stable.zip URL #490

@haveaguess

Description

@haveaguess

Description

The action started failing around January 16, 2026 with the error:

Error: Required file 'cli.php' doesn't exist (from runtime argument).

Root Cause

The issue is that wp-env now names plugin folders after the zip filename. When downloading plugin-check.latest-stable.zip, the folder is created as plugin-check.latest-stable instead of plugin-check.

The action then looks for cli.php at:

./wp-content/plugins/plugin-check/cli.php

But the actual path is:

./wp-content/plugins/plugin-check.latest-stable/cli.php

Evidence

Working run (Jan 15, 2026):

plugin-check    active    none    1.8.0

Failing run (Jan 16, 2026):

plugin-check.latest-stable    active    none    1.8.0

Workaround

Using plugin-check.zip instead of plugin-check.latest-stable.zip in the wp-env config creates the correct folder name:

{
  "plugins": [
    "https://downloads.wordpress.org/plugin/plugin-check.zip"
  ]
}

Suggested Fix

Update the action to use plugin-check.zip URL or dynamically determine the actual plugin folder name before running the check command.

Environment

  • Action version: v1 (SHA: ec9b3fe)
  • WordPress: latest
  • @wordpress/env: latest

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions