Skip to content

fix(ci): support repository CodeQL build scripts - #1025

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

ReenigneArcher merged 1 commit into
masterfrom
codex/codeql-java-no-build

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Description

Let repositories opt into a manual CodeQL build by adding a root-level .codeql-build-<language>-<runner OS>.sh file. The shared workflow checks for that file after checkout, selects manual mode when it exists, and runs it under CodeQL tracing. Jobs without a matching script use their existing build mode. This follows the per-language, per-OS naming convention used by the earlier CodeQL prebuild hook.

Sunshine-client#386 supplies the Android Java script for the failed CodeQL job.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • Passed actionlint, yamllint, and git diff --check.
  • Exercised the hook commands with the Sunshine-client script in a local fixture. The fixture verified the script output and invocation, pinned SDK arguments, dependency staging, Gradle arguments, and cleanup on success and failure.
  • The hosted Java analysis and SARIF upload require a Sunshine-client run that picks up the shared workflow from master.

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

@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher ReenigneArcher changed the title fix(ci): compile Sunshine-client Android Java for CodeQL fix(ci): support repository CodeQL build scripts Nov 27, 2026
@ReenigneArcher
ReenigneArcher merged commit c18a111 into master Nov 27, 2026
22 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/codeql-java-no-build branch November 27, 2026 21:42
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