|
23 | 23 | jobs: |
24 | 24 | analyze: |
25 | 25 | name: Analyze |
26 | | - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} |
27 | | - timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} |
| 26 | + runs-on: ubuntu-latest |
28 | 27 | permissions: |
29 | 28 | actions: read |
30 | 29 | contents: read |
31 | 30 | security-events: write |
32 | 31 |
|
33 | | - strategy: |
34 | | - fail-fast: false |
35 | | - matrix: |
36 | | - language: [ 'csharp', 'javascript' ] |
37 | | - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ] |
38 | | - # Use only 'java' to analyze code written in Java, Kotlin or both |
39 | | - # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both |
40 | | - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support |
41 | 32 |
|
42 | 33 | steps: |
43 | 34 | - name: Checkout repository |
|
46 | 37 | # Initializes the CodeQL tools for scanning. |
47 | 38 | - name: Initialize CodeQL |
48 | 39 | uses: github/codeql-action/init@v2 |
49 | | - with: |
50 | | - languages: ${{ matrix.language }} |
51 | | - # If you wish to specify custom queries, you can do so here or in a config file. |
52 | | - # By default, queries listed here will override any specified in a config file. |
53 | | - # Prefix the list here with "+" to use these queries and those in the config file. |
54 | | - |
55 | | - # For more 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 |
56 | | - # queries: security-extended,security-and-quality |
57 | | - |
58 | 40 |
|
59 | 41 | # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). |
60 | 42 | # If this step fails, then you should remove it and run the build manually (see below) |
|
73 | 55 |
|
74 | 56 | - name: Perform CodeQL Analysis |
75 | 57 | uses: github/codeql-action/analyze@v2 |
76 | | - with: |
77 | | - category: "/language:${{matrix.language}}" |
0 commit comments