Skip to content

Conversation

@JasonXuDeveloper
Copy link
Owner

Summary

  • Use game-ci/unity-builder to compile Unity scripts before CodeQL analysis
  • This provides proper type information and should resolve the "Low C# analysis quality" warning

Changes

  • Changed build-mode: none to build-mode: manual
  • Added Unity build step using game-ci/unity-builder
  • Added Unity Library caching for faster subsequent runs
  • Added license return step

Why

The previous build-mode: none couldn't resolve Unity types properly, resulting in:

  • Percentage of calls with call target: 52% (threshold 85%)
  • Percentage of expressions with known type: 70% (threshold 85%)

By actually compiling the Unity project, CodeQL can analyze the compiled assemblies with full type information.

Test plan

  • Verify CodeQL workflow runs successfully
  • Check if quality metrics improve above thresholds

🤖 Generated with Claude Code

@JasonXuDeveloper JasonXuDeveloper force-pushed the fix/codeql-build-quality branch from cf90bf5 to 5ea2162 Compare January 25, 2026 11:24
@github-actions
Copy link

github-actions bot commented Jan 25, 2026

Unity Test Results

EditMode: Tests failed
PlayMode: Tests failed

Unity Version: 2022.3.55f1
Project Path: UnityProject

❌ Some tests failed. Please fix the failing tests before merging.

View workflow run

Click here to view the full workflow run

- Use game-ci/unity-builder to compile Unity scripts before CodeQL
  analysis for proper type information
- Create centralized .github/unity-config.env for Unity CI settings
- Both codeql.yml and unity-tests.yml load from config file at runtime
- Inputs can still override config values when needed

This resolves the "Low C# analysis quality" warning by providing
CodeQL with compiled assemblies that have full type information.

Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@JasonXuDeveloper JasonXuDeveloper force-pushed the fix/codeql-build-quality branch from 5ea2162 to 7971ec3 Compare January 25, 2026 11:24
@claude
Copy link

claude bot commented Jan 25, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

2 similar comments
@claude
Copy link

claude bot commented Jan 25, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@claude
Copy link

claude bot commented Jan 25, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

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