Skip to content

Add CodeQL and offline PHP security scanning - #10

Merged
OllieJC merged 1 commit into
mainfrom
codex/security-scanning
Oct 19, 2026
Merged

OllieJC merged 1 commit into
mainfrom
codex/security-scanning

Conversation

@OllieJC

@OllieJC OllieJC commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Adds security scanning on pull requests, pushes to main, weekly schedules, and manual dispatch. PHP findings fail CI, with all PHP analysis running inside containers with networking disabled and read-only source mounts.

  • Add CodeQL for GitHub Actions, JavaScript, and Python; CodeQL does not support PHP.
  • Add Psalm taint analysis with WordPress models, WordPressCS security sniffs, and Semgrep CE with ten committed local rule groups. No scanner SaaS account, remote ruleset, or report upload is required.
  • Check unsafe and safe fixtures before each scan, including cross-file request flows, SQL templates, and context-sensitive escaping.
  • Isolate and lock development dependencies, configure Dependabot updates, and document local commands. Keep scanner dependencies and vulnerable fixtures out of the installable plugin ZIP.
  • Document existing public OAuth nonce exceptions at the relevant lines and annotate the JSON response's output context.

Validation performed locally:

  • All three production scans and their detection fixtures passed; all ten Semgrep rule groups passed.
  • Protocol suite: 28 passed, zero failed.
  • Both new workflows passed actionlint; the shared runner passed ShellCheck.
  • Security Composer manifest and lockfile passed strict validation.
  • Release inventory and ZIP integrity/exclusion checks passed.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@OllieJC
OllieJC merged commit a840385 into main Oct 19, 2026
11 checks passed
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