|
35 | 35 | strategy: |
36 | 36 | fail-fast: false |
37 | 37 | matrix: |
38 | | - language: ["go", "java", "javascript", "python"] |
| 38 | + language: ["javascript"] |
| 39 | + # Only JavaScript is analyzed - Python, Go, and Java files are templates only |
39 | 40 | # CodeQL supports [ $supported-codeql-languages ] |
40 | 41 | # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support |
41 | 42 |
|
|
58 | 59 | # By default, queries listed here will override any specified in a config file. |
59 | 60 | # Prefix the list here with "+" to use these queries and those in the config file. |
60 | 61 |
|
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 |
82 | 63 |
|
83 | 64 | # ℹ️ Command-line programs to run using the OS shell. |
84 | 65 | # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
|
0 commit comments