diff --git a/python/codeql-extractor.yml b/python/codeql-extractor.yml index 2bd1a9c0aa7..97a9e1f2cf2 100644 --- a/python/codeql-extractor.yml +++ b/python/codeql-extractor.yml @@ -44,10 +44,3 @@ options: Use this setting with caution, the Python extractor requires Python 3 to run. type: string pattern: "^(py|python|python3)$" - skip_hidden_directories: - title: Controls whether hidden directories are skipped during extraction. - description: > - By default, CodeQL will extract all Python files, including ones located in hidden directories. By setting this option to true, these hidden directories will be skipped instead. - Accepted values are true and false. - type: string - pattern: "^(true|false)$" diff --git a/python/ql/lib/change-notes/2025-04-30-extract-hidden-files-by-default.md b/python/ql/lib/change-notes/2025-04-30-extract-hidden-files-by-default.md index 96372513499..32b272215af 100644 --- a/python/ql/lib/change-notes/2025-04-30-extract-hidden-files-by-default.md +++ b/python/ql/lib/change-notes/2025-04-30-extract-hidden-files-by-default.md @@ -2,4 +2,4 @@ category: minorAnalysis --- -- The Python extractor now extracts files in hidden directories by default. A new extractor option, `skip_hidden_directories` has been added as well. Setting it to `true` will make the extractor revert to the old behavior. +- The Python extractor now extracts files in hidden directories by default. If you would like to skip hidden files, add `paths-ignore: ["**/.*/**"]` to your [Code Scanning config](https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#specifying-directories-to-scan). When using the CodeQL CLI for extraction, specify the configuration (creating the configuration file if necessary) using the `--codescanning-config` option.