Skip to content

Fix Plugin Check CI - #36

Merged
ilicfilip merged 2 commits into
developfrom
filip/fix-plugin-check-ci
Oct 7, 2026
Merged

ilicfilip merged 2 commits into
developfrom
filip/fix-plugin-check-ci

Conversation

@ilicfilip

Copy link
Copy Markdown
Contributor

The Plugin Check job fails at random. It copies the fix from ProgressPlanner/progress-planner#766, as in pp-glossary#59, comment-free-zone#17 and comment-hacks#194.

The issue: setup-php saves the run's temporary GitHub token in ~/.composer/auth.json. Composer rejects that token when it happens to contain certain characters (composer#12076): "Your github oauth token for github.com contains invalid characters". So about half of all runs fail before anything is checked.

The fix:

  • Delete the stored token before installing dist-archive-command. It's a public package, so it needs no auth. It was already pinned to v3.1.0 here.
  • Move plugin-check-action from v1.1.5 to v1.1.9, which fixes the "Environment not initialized" wp-env failure.
  • Set Tested up to: 7.1 in readme.txt, which Plugin Check now requires. Checked on WordPress 7.1.2 with PHP 8.3: the plugin activates and its settings page renders without PHP errors.

The workflow comments explain the pins, so nobody "updates" them back into breakage.

🤖 Generated with Claude Code

The same fix as progress-planner#766. The job failed on about half of all runs, depending on the GitHub token minted for the run: setup-php stores it in ~/.composer/auth.json, and Composer rejects it when it contains a character its validator dislikes (composer#12076). dist-archive-command is public, so the stored credential is removed before installing it. Also moves plugin-check-action to v1.1.9, which fixes the wp-env startup failure. dist-archive-command was already pinned to v3.1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Filip Ilic <ilic.filip@gmail.com>
Plugin Check requires the current WordPress version. Checked on WordPress 7.1.2 with PHP 8.3: the plugin activates and its settings page renders without PHP notices, warnings or errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Filip Ilic <ilic.filip@gmail.com>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Test on Playground
Test this pull request on the Playground
or download the zip

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@ilicfilip
ilicfilip merged commit cbe53e1 into develop Oct 7, 2026
3 checks passed
@ilicfilip
ilicfilip deleted the filip/fix-plugin-check-ci branch October 7, 2026 06:30
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.

1 participant