Skip to content

fix(ci): add a CodeQL build script for Android Java - #386

Merged
ReenigneArcher merged 1 commit into
masterfrom
codex/codeql-android-build-script
Nov 27, 2026
Merged

ReenigneArcher merged 1 commit into
masterfrom
codex/codeql-android-build-script

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Description

Add .codeql-build-java-Linux.sh for the shared CodeQL workflow to discover. The script installs the Android SDK packages pinned in packaging/android/gradle.properties, prepares the native dependencies, and compiles the release Java sources under CodeQL tracing. It stages SDL outside the checkout so its sources can supply types while the report covers the client's Java source.

The script depends on the manual build hook in LizardByte/.github#1025. Failed Sunshine-client CodeQL job

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • bash -n and a fixture run passed. The fixture verified SDK package arguments, dependency staging outside the checkout, the Gradle compile arguments, and cleanup on success and failure.
  • A local CodeQL 2.27.6 run previously traced the same Gradle Java compile with prepared Android dependencies outside the checkout. It extracted SunshineActivity.java without client extraction errors and generated SARIF.
  • Rebased onto f455f94. ShellCheck 0.11.0 passed locally for all 11 scripts checked by Common Lint. Hosted Common Lint run
  • The shared manual-build hook has merged. Hosted Java analysis and SARIF upload

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.90%. Comparing base (f455f94) to head (4b04e9f).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #386   +/-   ##
=======================================
  Coverage   90.90%   90.90%           
=======================================
  Files          81       81           
  Lines        9544     9544           
  Branches     4010     4014    +4     
=======================================
  Hits         8676     8676           
  Misses        757      757           
  Partials      111      111           
Flag Coverage Δ
Linux-aarch64 75.98% <ø> (ø)
Linux-x86_64 75.06% <ø> (ø)
Windows-AMD64 77.03% <ø> (ø)
Windows-ARM64 76.93% <ø> (ø)
Xbox-host-Linux 75.06% <ø> (ø)
Xbox-host-Windows 77.00% <ø> (-0.03%) ⬇️
Xbox-host-macOS 64.70% <ø> (ø)
macOS-arm64 64.70% <ø> (?)
macOS-x86_64 64.84% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f455f94...4b04e9f. Read the comment docs.

@ReenigneArcher
ReenigneArcher force-pushed the codex/codeql-android-build-script branch from abd5dfc to 4b04e9f Compare November 27, 2026 22:13
@sonarqubecloud

Copy link
Copy Markdown

@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.

@ReenigneArcher
ReenigneArcher merged commit 8e1b89c into master Nov 27, 2026
28 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/codeql-android-build-script branch November 27, 2026 23:00
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