Merge pull request #2 from felickz/copilot/fix-1760475-601388369-59cd8e3d-0895-49ec-9025-a9864c8e5367

Fix generate-code-scanning-query-list.py to handle empty code-quality-extended suites
This commit is contained in:
Chad Bentz
2025-11-03 11:55:55 -05:00
committed by GitHub

View File

@@ -184,8 +184,8 @@ with CodeQL() as codeql:
sys.exit("You can use '--ignore-missing-query-packs' to ignore this error")
# Exception for the code-quality suites, which might be empty, but must be resolvable.
if pack == 'code-quality' and queries_subp == '':
print(f'Warning: skipping empty suite code-quality', file=sys.stderr)
if pack in ['code-quality', 'code-quality-extended'] and queries_subp == '':
print(f'Warning: skipping empty suite {pack}', file=sys.stderr)
continue
# Investigate metadata for every query by using 'codeql resolve metadata'