Skip to content

Commit 98d22f5

Browse files
committed
fix(workflows): Set correct build-mode for CodeQL language matrix
- Changed build-mode logic to use 'none' for Python and JavaScript - Kept 'manual' build-mode only for Go language - Fixes "Python does not support manual build mode" error - Simplified conditional expression for better clarity Previous logic had operator precedence issues that could cause Python/JavaScript to incorrectly receive 'manual' build mode. New logic: Go gets 'manual', all others get 'none'.
1 parent d24c04f commit 98d22f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ jobs:
8181
queries:
8282
- uses: security-extended
8383
- uses: security-and-quality
84-
# Override the default database creation method
85-
build-mode: manual
84+
# Python and JavaScript use 'none', Go requires 'manual'
85+
build-mode: ${{ matrix.language == 'go' && 'manual' || 'none' }}
8686

8787
# For Go: Build the code manually to ensure proper analysis
8888
- name: Build Go code

0 commit comments

Comments
 (0)