Add path-filtered CodeQL workflow for content-specific analysis#1444
Draft
Copilot wants to merge 3 commits into
Draft
Add path-filtered CodeQL workflow for content-specific analysis#1444Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Create .github/workflows/codeql.yml that uses dorny/paths-filter to detect which language directories changed, then only runs CodeQL analysis for those languages. This replaces the default setup which analyzed all languages on every PR regardless of changed files. On push to main and scheduled runs, all languages are analyzed. On PRs, only languages with changed files are analyzed. Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Consider tuning Code QL checks for Java files
Add path-filtered CodeQL workflow for content-specific analysis
May 26, 2026
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.
CodeQL default setup runs all 7 language analyzers on every PR regardless of which files changed. A Java-only PR shouldn't wait for Python, Go, C#, JS, and Actions scans.
Adds
.github/workflows/codeql.yml(advanced setup) withdorny/paths-filterto gate each language's analysis on whether its directory actually has changes:java/**→java-kotlin,nodejs/**/scripts/**→javascript-typescript, etc.)mainand weekly scheduled runsRequires admin action: A repo admin must switch CodeQL from "Default" to "Advanced" setup in Settings → Code security → Code scanning. Branch protection required checks may need updating if check names change.