Exclude playground and tests from CodeQL scanning#15177
Merged
joperezr merged 1 commit intomicrosoft:release/13.2from Mar 12, 2026
Merged
Exclude playground and tests from CodeQL scanning#15177joperezr merged 1 commit intomicrosoft:release/13.2from
joperezr merged 1 commit intomicrosoft:release/13.2from
Conversation
These directories are not product code and don't need to be scanned by CodeQL. Using path_classifiers to mark them as reference code so they are excluded from analysis results. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15177Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15177" |
eerhardt
approved these changes
Mar 12, 2026
radical
approved these changes
Mar 12, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a repository-level CodeQL configuration to classify non-product directories as reference code so they’re not included in CodeQL scanning scope, reducing noise from sample and test sources.
Changes:
- Introduces
.CodeQL.ymlwithpath_classifiersconfiguration. - Marks
playground/**andtests/**asrefs(reference code) for CodeQL.
You can also share your feedback on Copilot code review. Take the survey.
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.
Description
Add a
.CodeQL.ymlconfiguration file to exclude theplayground/andtests/directories from CodeQL scanning. These directories contain sample and test code, not product code, so they don't need to be analyzed by CodeQL. This uses thepath_classifiersmechanism to mark them as reference code.Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue: