Skip to content

Commit 3a75bd6

Browse files
committed
fix(codeql): make languages a required field in CodeqlConfig
An empty languages list yields no findings — making it required forces operators to explicitly configure which languages to check. Updated the default extensions_cfg.yaml with example values.
1 parent fa8cc3b commit 3a75bd6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/odg/extensions_cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ class CodeqlConfig(BacklogItemMixins):
941941
delivery_service_url: str
942942
interval: int = 60 * 60 * 24 # 24h
943943
on_unsupported: WarningVerbosities = WarningVerbosities.WARNING
944-
languages: list[str] = dataclasses.field(default_factory=list)
944+
languages: list[str]
945945

946946
def is_supported(
947947
self,

src/odg/extensions_cfg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ghas:
7575

7676
codeql:
7777
enabled: False
78-
# languages: [Go, Python, Java, JavaScript, TypeScript, C, C++, C#, Kotlin, Ruby, Swift]
78+
languages: [] # required, e.g. [go, python, javascript-typescript]
7979

8080
issue_replicator:
8181
enabled: False

0 commit comments

Comments
 (0)