Skip to content

Fix Plugin Check CI - #17

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

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

Conversation

@ilicfilip

@ilicfilip ilicfilip commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

The Plugin Check job fails at random. It copies the fix from ProgressPlanner/progress-planner#766.

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, and re-running sometimes "fixes" it.

The fix:

  • Delete the stored token before installing dist-archive-command. It's a public package, so it needs no auth.

  • Pin dist-archive-command to v3.1.0 instead of ^3.1. v3.2.x needs WP-CLI 2.13, which has no stable release.

  • 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 once it can run. Checked on WordPress 7.1.2 with PHP 8.3: the plugin activates and its screens load without PHP errors.

The workflow comments explain both pins, so nobody "updates" them back into breakage. Because the failure depends on the token, one green run proves little: an occasional red run here means the job hit something else.

🤖 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 pins dist-archive-command to v3.1.0 (the newest release that accepts the WP-CLI 2.12 setup-php provides; ^3.1 can resolve to 3.2.x, which needs WP-CLI 2.13) and moves plugin-check-action to v1.1.9, which fixes the wp-env startup failure. The workflow comments explain both pins.

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 merged PR 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

Plugin Check requires the current WordPress version. Checked on WordPress 7.1.2 with PHP 8.3: the plugin activates and its screens load 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>
@ilicfilip
ilicfilip requested a review from jdevalk October 7, 2026 06:24
@jdevalk
jdevalk merged commit 8f9a040 into develop Oct 7, 2026
7 checks passed
@jdevalk
jdevalk deleted the filip/fix-plugin-check-ci branch October 7, 2026 11:37
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.

2 participants