|
12 | 12 |
|
13 | 13 | jobs: |
14 | 14 | analyze: |
15 | | - name: Analyze |
16 | | - runs-on: ubuntu-latest |
| 15 | + name: Analyze (${{ matrix.language }}) |
| 16 | + # Runner size impacts CodeQL analysis time. To learn more, please see: |
| 17 | + # - https://gh.io/recommended-hardware-resources-for-running-codeql |
| 18 | + # - https://gh.io/supported-runners-and-hardware-resources |
| 19 | + # - https://gh.io/using-larger-runners (GitHub.com only) |
| 20 | + # Consider using larger runners or machines with greater resources for possible analysis time improvements. |
| 21 | + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} |
17 | 22 | permissions: |
| 23 | + security-events: write |
| 24 | + packages: read |
18 | 25 | actions: read |
19 | 26 | contents: read |
20 | | - security-events: write |
21 | | - |
22 | 27 | strategy: |
23 | 28 | fail-fast: false |
24 | 29 | matrix: |
25 | | - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support |
26 | | - # Using "javascript" to scan JSON and YAML files. |
27 | | - language: [ 'javascript' ] |
28 | | - |
| 30 | + include: |
| 31 | + # We use javascript to analyze JSON and YAML files. |
| 32 | + - language: javascript-typescript |
| 33 | + build_mode: none |
| 34 | + - language: actions |
| 35 | + build_mode: none |
29 | 36 | steps: |
30 | 37 | - name: Checkout repository |
31 | 38 | uses: actions/checkout@v4 |
32 | | - |
33 | | - # Initializes the CodeQL tools for scanning. |
34 | 39 | - name: Initialize CodeQL |
35 | | - uses: github/codeql-action/init@v3 |
| 40 | + uses: github/codeql-action/init@v4 |
36 | 41 | with: |
37 | 42 | languages: ${{ matrix.language }} |
38 | | - # If you wish to specify custom queries, you can do so here or in a config file. |
39 | | - # By default, queries listed here will override any specified in a config file. |
40 | | - # Prefix the list here with "+" to use these queries and those in the config file. |
41 | | - |
42 | | - # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs |
43 | | - queries: security-extended,security-and-quality |
| 43 | + build-mode: ${{ matrix.build-mode }} |
44 | 44 | - name: Perform CodeQL Analysis |
45 | | - uses: github/codeql-action/analyze@v3 |
| 45 | + uses: github/codeql-action/analyze@v4 |
46 | 46 | with: |
47 | 47 | category: "/language:${{matrix.language}}" |
0 commit comments