-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
CI: Re-enable CodeQL with lightweight Fdroid build (JDK17, compile-only) #19192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
First PR! 🚀 We sincerely appreciate that you have taken the time to propose a change to AnkiDroid! Please have patience with us as we are all volunteers - we will get to this as soon as possible. |
|
Hello 👋, this PR has had no activity for more than 2 weeks and needs a reply from the author. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically |
|
Hello 👋, this PR has had no activity for more than 2 weeks and needs a reply from the author. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically |
fe84854 to
85c6899
Compare
disabled default codeQL analysis so that codeQL can be run on customized setting
… into setup-codeql # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
Purpose / Description
Improve the CodeQL workflow for better stability and faster execution.
The previous setup often failed due to OOM errors during Kotlin compilation.
Fixes
java-kotlin#16286Approach
-Added a new GitHub Actions workflow for CodeQL under
.github/workflows/codeql.yml
-Based on GitHub’s standard CodeQL template, customized for AnkiDroid
-Switched to JDK 17 for better compatibility and stability with AGP/Kotlin
-Replaced autobuild with an explicit Gradle compile command:
./gradlew --no-daemon --max-workers=2 -x test -x lint :AnkiDroid:compileFdroidDebugSources
-Runs only on pull requests to keep CI lightweight
-Uses Fdroid + Debug flavor to reduce dependencies and build time
-Applies security-extended query pack for essential security checks
How Has This Been Tested?
Workflow successfully runs on my fork
Verified that CodeQL initializes and performs analysis correctly
Kotlin OOM issue no longer occurs
Learning (optional, can help others)
Learned how CodeQL integrates with GitHub Actions
Official documentation followed:
https://docs.github.com/ja/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning
Checklist