Skip to content

Fix CodeQL Java build and add pull-request scans - #2193

Merged
FalkWolsky merged 1 commit into
mainfrom
codex/codeql-pr-checks
Oct 12, 2026
Merged

FalkWolsky merged 1 commit into
mainfrom
codex/codeql-pr-checks

Conversation

@FalkWolsky

@FalkWolsky FalkWolsky commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

CodeQL Java fails before analysis because clean compile does not produce the SDK test-helper JAR required by downstream modules. Build through package with -DskipTests, preserving test compilation while skipping test execution.

Run Java and JavaScript CodeQL checks when pull requests are opened, updated, reopened, or marked ready for review. Preserve the main-branch and weekly scans and existing check names. Update CodeQL to v4, checkout to v6, and Java setup to v5, using explicit manual/none build modes and Java 17.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change
  • Documentation Update

Validation

  • Actionlint 1.7.12 passed for the changed workflow.
  • YAML parsing and git diff --check passed.
  • CodeQL run 38315108813 passed on commit 809f3190c: Java build and analysis succeeded, JavaScript analysis succeeded, and the code-scanning check reported no new alerts in this PR.

Further comments

SonarCloud's separate Quality Gate not computed result is caused by the project's missing New Code definition. The dashboard explicitly reports that a new code definition is needed for long-lived branches; its API returns status NONE with no conditions or periods despite 30 recorded main-branch analyses. This requires a SonarCloud project setting and is independent of the CodeQL fix. No SonarCloud settings or gate thresholds are changed here.

The SonarCloud PR workflow also needs separate attention: PR #2192 analysis checked out PR head 465c3f10 but reported base revision 8682fa4f and uploaded a branch analysis; SonarCloud has no recorded PR analysis for it. The current pull_request_target setup supplies no explicit PR analysis parameters. Its successful job only confirms analysis submission, as it does not wait for the quality gate. Recommended follow-up: define the New Code baseline, configure correct PR identity and revision, and verify a computed gate on a fresh scan.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying lowcoder-cloud with  Cloudflare Pages  Cloudflare Pages

Latest commit: 809f319
Status: ✅  Deploy successful!
Preview URL: https://090f145d.lowcoder-cloud.pages.dev
Branch Preview URL: https://codex-codeql-pr-checks.lowcoder-cloud.pages.dev

View logs

@FalkWolsky
FalkWolsky merged commit 81f1134 into main Oct 12, 2026
6 checks passed
@FalkWolsky
FalkWolsky deleted the codex/codeql-pr-checks branch October 12, 2026 22:31
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