|
11 | 11 | jobs:
|
12 | 12 | analyze:
|
13 | 13 | name: Analyze (${{ matrix.language }})
|
14 |
| - # Runner size impacts CodeQL analysis time. To learn more, please see: |
15 |
| - # - https://gh.io/recommended-hardware-resources-for-running-codeql |
16 |
| - # - https://gh.io/supported-runners-and-hardware-resources |
17 |
| - # - https://gh.io/using-larger-runners (GitHub.com only) |
18 |
| - # Consider using larger runners or machines with greater resources for possible analysis time improvements. |
19 |
| - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} |
| 14 | + runs-on: ubuntu-latest |
20 | 15 | permissions:
|
21 | 16 | # required for all workflows
|
22 | 17 | security-events: write
|
|
34 | 29 | include:
|
35 | 30 | - language: python
|
36 | 31 | build-mode: none
|
37 |
| - # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' |
38 |
| - # Use `c-cpp` to analyze code written in C, C++ or both |
39 |
| - # Use 'java-kotlin' to analyze code written in Java, Kotlin or both |
40 |
| - # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both |
41 |
| - # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, |
42 |
| - # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. |
43 |
| - # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how |
44 |
| - # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages |
| 32 | + |
45 | 33 | steps:
|
46 | 34 | - name: Checkout repository
|
47 | 35 | uses: actions/checkout@v4
|
|
54 | 42 | build-mode: ${{ matrix.build-mode }}
|
55 | 43 | config-file: .github/codeql-config.yml
|
56 | 44 |
|
57 |
| - # If the analyze step fails for one of the languages you are analyzing with |
58 |
| - # "We were unable to automatically build your code", modify the matrix above |
59 |
| - # to set the build mode to "manual" for that language. Then modify this step |
60 |
| - # to build your code. |
61 |
| - # ℹ️ Command-line programs to run using the OS shell. |
62 |
| - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
63 |
| - - if: matrix.build-mode == 'manual' |
64 |
| - shell: bash |
65 |
| - run: | |
66 |
| - echo 'If you are using a "manual" build mode for one or more of the' \ |
67 |
| - 'languages you are analyzing, replace this with the commands to build' \ |
68 |
| - 'your code, for example:' |
69 |
| - echo ' make bootstrap' |
70 |
| - echo ' make release' |
71 |
| - exit 1 |
72 |
| -
|
73 | 45 | - name: Perform CodeQL Analysis
|
74 | 46 | uses: github/codeql-action/analyze@v3
|
75 | 47 | with:
|
|
0 commit comments