codeql-scan: setup-android v4 with no default packages - #86
Merged
Merged
Conversation
v3 installs the SDK "tools" package, which sdkmanager no longer finds, so every java-kotlin CodeQL run fails before analysis. Mirrors ci-validation.yml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QwYWVPse8spRrfMMcuTJPv
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
workflows | 23e54bf | Commit Preview URL Branch Preview URL |
Sep 27 2026, 04:49 PM |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe Java/Kotlin CodeQL workflow now uses android-actions/setup-android v4 with no default packages, preventing sdkmanager failures caused by the removed SDK tools package while allowing the analyzed build to install its required dependencies. Sequence diagram for the corrected Android CodeQL setupsequenceDiagram
participant Workflow as CodeQLWorkflow
participant AndroidAction as setup_android_v4
participant SDKManager as sdkmanager
participant Build as AnalyzedBuild
participant CodeQL as CodeQLAnalysis
Workflow->>AndroidAction: setup_android_v4
AndroidAction->>SDKManager: install packages: ''
SDKManager-->>AndroidAction: SDK available without tools package
Workflow->>Build: run analyzed build
Build->>SDKManager: install required dependencies
SDKManager-->>Build: dependencies installed
Workflow->>CodeQL: initialize and analyze
CodeQL-->>Workflow: analysis completes
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
HereLiesAz
marked this pull request as ready for review
September 27, 2026 18:02
There was a problem hiding this comment.
Sorry @HereLiesAz, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 1 day and 4 hours by commenting @sourcery-ai review. Upgrade to get a review now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
android-actions/setup-android@v3installs the SDKtoolspackage by default.sdkmanagerno longer finds that package ("Failed to find package 'tools'"), so it exits 1 and everyjava-kotlinCodeQL job fails before analysis starts. The failure showed up on HereLiesAz/azphalt#232.This switches to
@v4withpackages: '', which is howci-validation.ymlalready sets up Android. The analyzed build installs what it needs.test_workflow_policy.py,audit_workflow_collection.pyand everyscripts/test_*.pypass.🤖 Generated with Claude Code
https://claude.ai/code/session_01QwYWVPse8spRrfMMcuTJPv
Generated by Claude Code
Summary by Sourcery
Prevent Java/Kotlin CodeQL jobs from failing during Android SDK initialization.
Bug Fixes:
Enhancements: