Conversation
Adds CI workflow that runs PHPUnit tests against a full WordPress Multisite environment with the core Ultimate Multisite plugin loaded. Uses the reusable workflow from Ultimate-Multisite/ultimate-multisite.
📝 WalkthroughWalkthroughA new GitHub Actions CI workflow is added that automatically triggers on pushes to the main branch and pull requests. The workflow delegates integration testing to a reusable external workflow, passing the addon slug and inheriting secrets for authentication. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/ci.yml:
- Line 11: Replace the floating reference to the upstream reusable workflow by
pinning the uses: entry (uses:
Ultimate-Multisite/ultimate-multisite/.github/workflows/addon-integration-test.yml@main)
to a specific commit SHA or a semantic version tag; update that string to use
@<commit-sha> or `@vX.Y.Z` so CI consumes a fixed, auditable version instead of
`@main`.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
|
|
||
| jobs: | ||
| integration-test: | ||
| uses: Ultimate-Multisite/ultimate-multisite/.github/workflows/addon-integration-test.yml@main |
There was a problem hiding this comment.
Pin the reusable workflow to a specific commit SHA or version tag.
Using @main for the external workflow reference means this CI will always use the latest version from the main branch, which creates security and stability risks:
- Upstream changes can break your CI without warning
- Builds become non-reproducible
- If the upstream repository is compromised, malicious workflow changes could affect this addon
Best practice is to pin to a specific commit SHA (e.g., @a1b2c3d) or semantic version tag (e.g., @v1.2.3) for stability and security.
🔒 Proposed fix to pin to a commit SHA
- uses: Ultimate-Multisite/ultimate-multisite/.github/workflows/addon-integration-test.yml@main
+ uses: Ultimate-Multisite/ultimate-multisite/.github/workflows/addon-integration-test.yml@<commit-sha>Replace <commit-sha> with the full commit SHA of the version you want to use.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.github/workflows/ci.yml at line 11, Replace the floating reference to the
upstream reusable workflow by pinning the uses: entry (uses:
Ultimate-Multisite/ultimate-multisite/.github/workflows/addon-integration-test.yml@main)
to a specific commit SHA or a semantic version tag; update that string to use
@<commit-sha> or `@vX.Y.Z` so CI consumes a fixed, auditable version instead of
`@main`.
Summary
.github/workflows/ci.ymlthat calls the core plugin's reusableaddon-integration-test.ymlworkflowNo code changes — CI only.
Summary by CodeRabbit