Skip to content

Conversation

@smowton
Copy link
Contributor

@smowton smowton commented Jan 6, 2026

Go, Python, C# and QL-for-QL: mirror Java in accounting for code-scanning-config paths and paths-ignore directives when extracting XML and other ancillary data.

I haven't added integration tests because they would be materially identical to the ones added in #21049

Copilot AI review requested due to automatic review settings January 6, 2026 12:54
@smowton smowton requested review from a team as code owners January 6, 2026 12:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for code-scanning-config paths and paths-ignore directives to ancillary data extraction (XML, YAML, HTML) across multiple language extractors, mirroring the Java implementation from PR #21049.

  • Adds the --also-match-lgtm-index-filters flag to codeql database index-files commands
  • Ensures consistent behavior across Go, Python, C#, and QL-for-QL extractors
  • Updates both Unix shell scripts and Windows command scripts for each language

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
ql/tools/pre-finalize.sh Adds --also-match-lgtm-index-filters flag to YAML file indexing for QL extractor (Unix)
ql/tools/pre-finalize.cmd Adds --also-match-lgtm-index-filters flag to YAML file indexing for QL extractor (Windows)
python/tools/pre-finalize.sh Adds --also-match-lgtm-index-filters flag to YAML file indexing for Python extractor (Unix)
python/tools/pre-finalize.cmd Adds --also-match-lgtm-index-filters flag to YAML file indexing for Python extractor (Windows)
go/codeql-tools/pre-finalize.sh Adds --also-match-lgtm-index-filters flag to HTML file indexing for Go extractor (Unix)
go/codeql-tools/pre-finalize.cmd Adds --also-match-lgtm-index-filters flag to HTML file indexing for Go extractor (Windows)
csharp/tools/pre-finalize.sh Adds --also-match-lgtm-index-filters flag to XML file indexing for C# extractor (Unix)
csharp/tools/pre-finalize.cmd Adds --also-match-lgtm-index-filters flag to XML file indexing for C# extractor (Windows)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@smowton
Copy link
Contributor Author

smowton commented Jan 7, 2026

Don't merge for now: this causes a regression when paths or paths-ignore contain path-traversal sequences.

Copy link
Contributor

@tausbn tausbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 👍

@smowton
Copy link
Contributor Author

smowton commented Jan 9, 2026

The regression has been resolved by an internal PR.

@smowton smowton merged commit 44089d8 into main Jan 9, 2026
35 checks passed
@smowton smowton deleted the smowton/admin/respect-config-paths-filters-pre-finalize branch January 9, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants