Merge pull request #21102 from github/smowton/admin/respect-config-paths-filters-pre-finalize

All languages: account for paths and paths-ignore in XML and other ancillary extraction
This commit is contained in:
Chris Smowton
2026-01-09 16:23:26 +00:00
committed by GitHub
11 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* When a code-scanning configuration specifies the `paths:` and/or `paths-ignore:` settings, these are now taken into account by the Python extractor's search for YAML files.

View File

@@ -3,6 +3,7 @@
type NUL && "%CODEQL_DIST%\codeql" database index-files ^
--include-extension=.yaml ^
--include-extension=.yml ^
--also-match-lgtm-index-filters ^
--size-limit=5m ^
--language yaml ^
-- ^

View File

@@ -5,6 +5,7 @@ set -eu
"$CODEQL_DIST/codeql" database index-files \
--include-extension=.yaml \
--include-extension=.yml \
--also-match-lgtm-index-filters \
--size-limit=5m \
--language yaml \
-- \