|
1 | | -name: "CodeQL Advanced" |
| 1 | +name: 'CodeQL Advanced' |
2 | 2 |
|
3 | 3 | on: |
4 | | - merge_group: |
| 4 | + merge_group: |
5 | 5 | branches: |
6 | 6 | - master |
7 | 7 | - dev |
@@ -37,43 +37,42 @@ jobs: |
37 | 37 | - javascript |
38 | 38 |
|
39 | 39 | steps: |
40 | | - - name: Harden Runner |
41 | | - uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0 |
42 | | - with: |
43 | | - egress-policy: audit |
44 | | - |
45 | | - - name: Checkout repository |
46 | | - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 |
| 40 | + - name: Harden Runner |
| 41 | + uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0 |
| 42 | + with: |
| 43 | + egress-policy: audit |
47 | 44 |
|
48 | | - # Initializes the CodeQL tools for scanning. |
49 | | - - name: Initialize CodeQL |
50 | | - uses: github/codeql-action/init@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0 |
51 | | - with: |
52 | | - languages: ${{ matrix.language }} |
53 | | - # If you wish to specify custom queries, you can do so here or in a config file. |
54 | | - # By default, queries listed here will override any specified in a config file. |
55 | | - # Prefix the list here with "+" to use these queries and those in the config file. |
| 45 | + - name: Checkout repository |
| 46 | + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 |
56 | 47 |
|
57 | | - # 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 |
58 | | - # queries: security-extended,security-and-quality |
| 48 | + # Initializes the CodeQL tools for scanning. |
| 49 | + - name: Initialize CodeQL |
| 50 | + uses: github/codeql-action/init@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0 |
| 51 | + with: |
| 52 | + languages: ${{ matrix.language }} |
| 53 | + # If you wish to specify custom queries, you can do so here or in a config file. |
| 54 | + # By default, queries listed here will override any specified in a config file. |
| 55 | + # Prefix the list here with "+" to use these queries and those in the config file. |
59 | 56 |
|
| 57 | + # 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 |
| 58 | + # queries: security-extended,security-and-quality |
60 | 59 |
|
61 | | - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). |
62 | | - # If this step fails, then you should remove it and run the build manually (see below) |
63 | | - - name: Autobuild |
64 | | - uses: github/codeql-action/autobuild@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0 |
| 60 | + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). |
| 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@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0 |
65 | 64 |
|
66 | | - # ℹ️ Command-line programs to run using the OS shell. |
67 | | - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
| 65 | + # ℹ️ Command-line programs to run using the OS shell. |
| 66 | + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
68 | 67 |
|
69 | | - # If the Autobuild fails above, remove it and uncomment the following three lines. |
70 | | - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
| 68 | + # If the Autobuild fails above, remove it and uncomment the following three lines. |
| 69 | + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
71 | 70 |
|
72 | | - # - run: | |
73 | | - # echo "Run, Build Application using script" |
74 | | - # ./location_of_script_within_repo/buildscript.sh |
| 71 | + # - run: | |
| 72 | + # echo "Run, Build Application using script" |
| 73 | + # ./location_of_script_within_repo/buildscript.sh |
75 | 74 |
|
76 | | - - name: Perform CodeQL Analysis |
77 | | - uses: github/codeql-action/analyze@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0 |
78 | | - with: |
79 | | - category: "/language:${{matrix.language}}" |
| 75 | + - name: Perform CodeQL Analysis |
| 76 | + uses: github/codeql-action/analyze@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0 |
| 77 | + with: |
| 78 | + category: '/language:${{matrix.language}}' |
0 commit comments