Add default paths to ignore for various languages in build matrix #41
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.
When applying a
paths
filter (as is done by this action), thepaths-ignore
defaults from the CodeQL extractors are NOT utilized. This will likely lead to unwanted detections and decreased performance. This PR aims to pull in someopinionated
defaults to continue the journey for improved monorepo scanning.Primary motivation for this PR was discovered during a performance evaluation
.min.js
files:Changes to
build-matrix.js
(used by thechanges
andwhole-repo
action):changes/build-matrix.js
: Added default path ignore patterns for JavaScript/TypeScript, Java/Kotlin, Python, C#, Ruby, and C/C++ to improve the handling of unnecessary files during scans.changes/build-matrix.js
: Implemented logic to apply default path ignore patterns if not explicitly provided in the project configuration. A warning is issued for languages withbuild-mode: none
if no path ignore patterns are set.Documentation update:
README.md
: Updated the documentation to reflect the use of default path ignore patterns if not passed in the config input.