|
9 | 9 | # the `language` matrix defined below to confirm you have the correct set of |
10 | 10 | # supported CodeQL languages. |
11 | 11 | # |
12 | | -name: "CodeQL" |
| 12 | +name: 'CodeQL' |
13 | 13 |
|
14 | 14 | on: |
15 | 15 | push: |
16 | | - branches: [ "main" ] |
| 16 | + branches: ['main'] |
17 | 17 | pull_request: |
18 | | - branches: [ "main" ] |
| 18 | + branches: ['main'] |
19 | 19 | schedule: |
20 | 20 | - cron: '25 10 * * 1' |
21 | 21 |
|
@@ -43,50 +43,49 @@ jobs: |
43 | 43 | strategy: |
44 | 44 | fail-fast: false |
45 | 45 | matrix: |
46 | | - language: [ 'javascript-typescript' ] |
| 46 | + language: ['javascript-typescript'] |
47 | 47 | # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] |
48 | 48 | # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both |
49 | 49 | # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both |
50 | 50 | # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support |
51 | 51 |
|
52 | 52 | steps: |
53 | | - - name: Harden Runner |
54 | | - uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2 |
55 | | - with: |
56 | | - egress-policy: audit |
| 53 | + - name: Harden Runner |
| 54 | + uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2 |
| 55 | + with: |
| 56 | + egress-policy: audit |
57 | 57 |
|
58 | | - - name: Checkout repository |
59 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 |
| 58 | + - name: Checkout repository |
| 59 | + uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 |
60 | 60 |
|
61 | | - # Initializes the CodeQL tools for scanning. |
62 | | - - name: Initialize CodeQL |
63 | | - uses: github/codeql-action/init@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3 |
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. |
| 61 | + # Initializes the CodeQL tools for scanning. |
| 62 | + - name: Initialize CodeQL |
| 63 | + uses: github/codeql-action/init@df559355d593797519d70b90fc8edd5db049e7a2 # v3 |
| 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. |
69 | 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-extended,security-and-quality |
| 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-extended,security-and-quality |
72 | 72 |
|
| 73 | + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). |
| 74 | + # If this step fails, then you should remove it and run the build manually (see below) |
| 75 | + - name: Autobuild |
| 76 | + uses: github/codeql-action/autobuild@df559355d593797519d70b90fc8edd5db049e7a2 # v3 |
73 | 77 |
|
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/autobuild@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3 |
| 78 | + # ℹ️ Command-line programs to run using the OS shell. |
| 79 | + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
78 | 80 |
|
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 |
| 81 | + # If the Autobuild fails above, remove it and uncomment the following three lines. |
| 82 | + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
81 | 83 |
|
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. |
| 84 | + # - run: | |
| 85 | + # echo "Run, Build Application using script" |
| 86 | + # ./location_of_script_within_repo/buildscript.sh |
84 | 87 |
|
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/analyze@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3 |
91 | | - with: |
92 | | - category: "/language:${{matrix.language}}" |
| 88 | + - name: Perform CodeQL Analysis |
| 89 | + uses: github/codeql-action/analyze@df559355d593797519d70b90fc8edd5db049e7a2 # v3 |
| 90 | + with: |
| 91 | + category: '/language:${{matrix.language}}' |
0 commit comments