|
33 | 33 | strategy:
|
34 | 34 | fail-fast: false
|
35 | 35 | matrix:
|
36 |
| - language: [ 'java' ] |
37 |
| - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] |
38 |
| - # Learn more about CodeQL language support at https://git.io/codeql-language-support |
| 36 | + include: |
| 37 | + - language: actions |
| 38 | + build-mode: none |
| 39 | + - language: java |
| 40 | + build-mode: none |
39 | 41 |
|
40 | 42 | steps:
|
41 | 43 | - name: Checkout repository
|
|
52 | 54 | uses: github/codeql-action/init@v3
|
53 | 55 | with:
|
54 | 56 | languages: ${{ matrix.language }}
|
55 |
| - # If you wish to specify custom queries, you can do so here or in a config file. |
56 |
| - # By default, queries listed here will override any specified in a config file. |
57 |
| - # Prefix the list here with "+" to use these queries and those in the config file. |
58 |
| - # queries: ./path/to/local/query, your-org/your-repo/queries@main |
59 |
| - |
60 |
| - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
61 |
| - # If this step fails, then you should remove it and run the build manually (see below) |
62 |
| - - name: Autobuild |
63 |
| - uses: github/codeql-action/autobuild@v3 |
64 |
| - env: |
65 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
66 |
| - GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} |
67 |
| - |
68 |
| - # ℹ️ Command-line programs to run using the OS shell. |
69 |
| - # 📚 https://git.io/JvXDl |
70 |
| - |
71 |
| - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
72 |
| - # and modify them (or add more) to build your code if your project |
73 |
| - # uses a compiled language |
74 |
| - |
75 |
| - #- run: | |
76 |
| - # make bootstrap |
77 |
| - # make release |
| 57 | + build-mode: ${{ matrix.build-mode }} |
78 | 58 |
|
79 | 59 | - name: Perform CodeQL Analysis
|
80 | 60 | uses: github/codeql-action/analyze@v3
|
| 61 | + with: |
| 62 | + category: "/language:${{matrix.language}}" |
0 commit comments