Skip to content

[CA-10577] Set up SonarQube code analysis - #32

Open
jediknight112 wants to merge 2 commits into
mainfrom
CA-10577-set-up-sonarqube
Open

[CA-10577] Set up SonarQube code analysis#32
jediknight112 wants to merge 2 commits into
mainfrom
CA-10577-set-up-sonarqube

Conversation

@jediknight112

@jediknight112 jediknight112 commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summary

Configures SonarQube static-analysis coverage for example-sage-theme to satisfy the Engineering Excellence SonarQube check (CA-10577).

  • sonar-project.properties — project key wpengine_example-sage-theme_c16e3095-fcf4-41b8-b8b7-d60c822888f4 (assigned by Security). Sources scoped to wp-content/ (the Sage theme code). sonar.language is intentionally omitted so PHP + JS/TS are auto-detected. Excludes vendored deps (node_modules/, vendor/) and TechDocs source (docs/).
  • .github/workflows/sonar.yaml — the augmented workflow fetched verbatim from wpengine/ai-github-tools. Runs the SonarQube scan + quality gate on pushes to main and on all PRs (including Dependabot), and posts SonarQube findings as PR comments via a Claude Code remediation step.

Test plan

  • SonarQube Main Workflow / sonarqube job runs and passes on this PR
  • Findings (if any) appear on the SonarQube dashboard
  • After merge: add sonarqube and SonarQube Code Analysis as required status checks on main (currently none set; strict is on)

References

🤖 Generated with Claude Code

jediknight112 and others added 2 commits August 13, 2026 14:18
Adds SonarQube static-analysis coverage for example-sage-theme to
satisfy the Engineering Excellence SonarQube check.

- sonar-project.properties with the project key assigned by Security
  (wpengine_example-sage-theme_c16e3095-fcf4-41b8-b8b7-d60c822888f4).
  Sources scoped to wp-content/ (the Sage theme code). No sonar.language
  so PHP + JS/TS are auto-detected. Excludes vendored deps
  (node_modules/, vendor/) and TechDocs (docs/).

- .github/workflows/sonar.yaml is the upstream augmented workflow
  fetched verbatim from wpengine/ai-github-tools
  (docs/examples/github-actions/sonar.yaml). Runs the SonarQube scan
  and quality gate on pushes to main and all PRs, and adds a Claude
  Code remediation step that posts SonarQube findings as PR comments.
@jediknight112
jediknight112 marked this pull request as ready for review August 13, 2026 19:19
@jediknight112
jediknight112 requested a review from a team as a code owner August 13, 2026 19:19
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