Skip to content

Commit 200964a

Browse files
committed
fix: simplify CodeQL analysis to focus solely on JavaScript
Signed-off-by: kaifcoder <kaifmohd2014@gmail.com>
1 parent f4e66f8 commit 200964a

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jobs:
3535
strategy:
3636
fail-fast: false
3737
matrix:
38-
language: ["go", "java", "javascript", "python"]
38+
language: ["javascript"]
39+
# Only JavaScript is analyzed - Python, Go, and Java files are templates only
3940
# CodeQL supports [ $supported-codeql-languages ]
4041
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4142

@@ -58,27 +59,7 @@ jobs:
5859
# By default, queries listed here will override any specified in a config file.
5960
# Prefix the list here with "+" to use these queries and those in the config file.
6061

61-
# Setup Java and Maven for Java language only
62-
- name: Set up Temurin JDK
63-
if: matrix.language == 'java'
64-
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
65-
with:
66-
distribution: 'temurin'
67-
java-version: '21'
68-
cache: 'maven'
69-
70-
# Build Java project explicitly for Java language
71-
- name: Build with Maven
72-
if: matrix.language == 'java'
73-
working-directory: templates/spring-boot
74-
run: mvn -B -ntp package -DskipTests
75-
76-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go).
77-
# For Java, we use explicit Maven build steps above instead.
78-
# For Go, skip autobuild since templates/ contains placeholder files
79-
- name: Autobuild
80-
if: matrix.language != 'java' && matrix.language != 'go'
81-
uses: github/codeql-action/autobuild@bffd034ab1518ad839a542b8a7356e13a240e076 # v3.31.7
62+
# No autobuild needed for JavaScript - it's interpreted
8263

8364
# ℹ️ Command-line programs to run using the OS shell.
8465
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

0 commit comments

Comments
 (0)