|
12 | 12 | name: Vulnerability Scan with CodeQL |
13 | 13 |
|
14 | 14 | on: |
15 | | - push: |
16 | | - branches: [ "main", "release-please--branches--main"] |
17 | 15 | pull_request: |
18 | 16 | branches: [ "main" ] |
19 | 17 | schedule: |
@@ -51,44 +49,44 @@ jobs: |
51 | 49 | # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support |
52 | 50 |
|
53 | 51 | steps: |
54 | | - - name: Checkout repository |
55 | | - |
| 52 | + - name: Checkout repository |
| 53 | + |
56 | 54 |
|
57 | | - - name: Setup JDK 17 |
58 | | - |
59 | | - with: |
60 | | - java-version: '17' |
61 | | - distribution: 'zulu' |
62 | | - |
63 | | - # Initializes the CodeQL tools for scanning. |
64 | | - - name: Initialize CodeQL |
65 | | - uses: github/codeql-action/[email protected] |
66 | | - with: |
67 | | - languages: ${{ matrix.language }} |
68 | | - # If you wish to specify custom queries, you can do so here or in a config file. |
69 | | - # By default, queries listed here will override any specified in a config file. |
70 | | - # Prefix the list here with "+" to use these queries and those in the config file. |
| 55 | + - name: Setup JDK 17 |
| 56 | + |
| 57 | + with: |
| 58 | + java-version: '17' |
| 59 | + distribution: 'zulu' |
71 | 60 |
|
72 | | - # 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 |
73 | | - queries: security-and-quality |
| 61 | + # Initializes the CodeQL tools for scanning. |
| 62 | + - name: Initialize CodeQL |
| 63 | + uses: github/codeql-action/[email protected] |
| 64 | + with: |
| 65 | + languages: ${{ matrix.language }} |
| 66 | + # If you wish to specify custom queries, you can do so here or in a config file. |
| 67 | + # By default, queries listed here will override any specified in a config file. |
| 68 | + # Prefix the list here with "+" to use these queries and those in the config file. |
74 | 69 |
|
| 70 | + # 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 |
| 71 | + queries: security-and-quality |
75 | 72 |
|
76 | | - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). |
77 | | - # If this step fails, then you should remove it and run the build manually (see below) |
78 | | - - name: Autobuild |
79 | | - uses: github/codeql-action/[email protected] |
80 | 73 |
|
81 | | - # ℹ️ Command-line programs to run using the OS shell. |
82 | | - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
| 74 | + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). |
| 75 | + # If this step fails, then you should remove it and run the build manually (see below) |
| 76 | + - name: Autobuild |
| 77 | + uses: github/codeql-action/[email protected] |
83 | 78 |
|
84 | | - # If the Autobuild fails above, remove it and uncomment the following three lines. |
85 | | - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
| 79 | + # ℹ️ Command-line programs to run using the OS shell. |
| 80 | + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
86 | 81 |
|
87 | | - # - run: | |
88 | | - # echo "Run, Build Application using script" |
89 | | - # ./location_of_script_within_repo/buildscript.sh |
| 82 | + # If the Autobuild fails above, remove it and uncomment the following three lines. |
| 83 | + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
90 | 84 |
|
91 | | - - name: Perform CodeQL Analysis |
92 | | - uses: github/codeql-action/[email protected] |
93 | | - with: |
94 | | - category: "/language:${{matrix.language}}" |
| 85 | + # - run: | |
| 86 | + # echo "Run, Build Application using script" |
| 87 | + # ./location_of_script_within_repo/buildscript.sh |
| 88 | + |
| 89 | + - name: Perform CodeQL Analysis |
| 90 | + uses: github/codeql-action/[email protected] |
| 91 | + with: |
| 92 | + category: "/language:${{matrix.language}}" |
0 commit comments