Skip to content

Generate CodeQL tables for all supported languages except python#1519

Merged
kotlarmilos merged 8 commits intodotnet:mainfrom
kotlarmilos:bugfix/codeql-langauge
Dec 3, 2025
Merged

Generate CodeQL tables for all supported languages except python#1519
kotlarmilos merged 8 commits intodotnet:mainfrom
kotlarmilos:bugfix/codeql-langauge

Conversation

@kotlarmilos
Copy link
Copy Markdown
Member

@kotlarmilos kotlarmilos commented Dec 2, 2025

Description

This PR enables generating CodeQL tables for all supported languages except python.

Comment thread azure-pipelines.yml
@kotlarmilos
Copy link
Copy Markdown
Member Author

CodeQL runs for all detected languages in the repository. We have a single python script from arcade: eng\common\cross\install-debs.py. There is an issue with the CodeQL run for python language:

[2025-12-02 11:39:11] [build-stdout] [ERROR] [4] Failed to extract file D:\a\_work\1\s\eng\common\cross\install-debs.py: 'name'

which results in:

Database failed to finalize or no source code was built!

I tried to exclude the file directly, but the run was still failing. As a workaround, I excluded python entirely since it is not a primary language for this repository. With python excluded, the run now produces correct databases for all selected languages.

Screenshot 2025-12-02 at 21 20 13

We can investigate how other repositories handled this issue. Tracking issue: #1520

@kotlarmilos kotlarmilos changed the title Generate CodeQL tables for all supported languages Generate CodeQL tables for all supported languages except python Dec 2, 2025
@kotlarmilos kotlarmilos self-assigned this Dec 2, 2025
@kotlarmilos kotlarmilos marked this pull request as ready for review December 2, 2025 20:32
Comment thread azure-pipelines.yml Outdated
@kotlarmilos kotlarmilos enabled auto-merge (squash) December 3, 2025 12:14
@kotlarmilos kotlarmilos merged commit 3df2923 into dotnet:main Dec 3, 2025
17 checks passed
matouskozak pushed a commit to matouskozak/xharness that referenced this pull request Mar 11, 2026
…net#1519)

* Add CodeQL language variable for C# and Python

* Update CodeQL language variable to include actions and powershell

* Enable CodeQL analysis on non-default branches

* Add CodeQL exclude path

* Add CodeQL cadence

* Exclude python langauge

* Revert changes

* Fix indentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants