Python: Update change note and extractor config

Removes the previously added extractor option and updates the change
note to explain how to use `paths-ignore` to exclude files in hidden
directories.
This commit is contained in:
Taus
2025-05-15 14:58:32 +00:00
parent 96558b53b8
commit 72ae633a64
2 changed files with 1 additions and 8 deletions

View File

@@ -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)$"

View File

@@ -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.