mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
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:
@@ -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)$"
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user