Skip to content

fix: close review gaps in CI coverage and the security self-review - #83

Merged
somethingwithproof merged 1 commit into
mainfrom
fix/minor-review-findings
Nov 20, 2026
Merged

somethingwithproof merged 1 commit into
mainfrom
fix/minor-review-findings

Conversation

@somethingwithproof

Copy link
Copy Markdown
Owner

Fixes #80. All three checklist items are fixed:

  • PHP 8.0 entry point lint now covers scripts/*.php.
  • The PHP 8.1 refusal job's page-check.php list includes plugins/pfs/pfs_operator.php.
  • docs/security-review.md describes the Operator realm, the per-request inheritance, and the pre-session realm deferral, and states that deferred pages must call pfs_page_start() first. New rule in tests/Security/SourceRulesTest.php reads the deferred page list from setup.php and checks that only the opening tag, use, chdir(), and includes come before the guard.

Verification: Pest unit suite 274 passed. The new rule fails when a query is placed before the guard in pfs_operator.php. tests/lint-workflows.sh (actionlint, zizmor offline) is clean.

Risk: none at runtime; CI and docs only, plus one test.

- Lint scripts/*.php on PHP 8.0; the script server includes them on
  whatever PHP the site runs.
- Load pfs_operator.php in the PHP 8.1 refusal page check.
- Describe the three realms, per-request inheritance, and the realm
  deferral in pfs_auth_alternate_realms() in docs/security-review.md.
- Add a source rule that every page the deferral names runs
  pfs_page_start() before anything else.

Fixes #80

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fbb127bb-225e-41be-a913-c6dd298e9824
Commits

Reviewing files that changed from the base of the PR and between 2ed1d1c and 03b99d8.

Files selected for processing: 3

  • .github/workflows/plugin-ci-workflow.yml
  • docs/security-review.md
  • tests/Security/SourceRulesTest.php
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@sonarqubecloud

Copy link
Copy Markdown

@gitar-bot

gitar-bot Bot commented Nov 20, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@somethingwithproof
somethingwithproof merged commit 19dbbfa into main Nov 20, 2026
20 checks passed
@somethingwithproof
somethingwithproof deleted the fix/minor-review-findings branch November 20, 2026 06:28
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.

Minor review findings

1 participant