1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- # # Runs CodeQL analysis for all PRs, merges into main and daily.
16-
15+ # For most projects, this workflow file will not need changing; you simply need
16+ # to commit it to your repository.
17+ #
18+ # You may wish to alter this file to override the set of languages analyzed,
19+ # or to provide custom queries or build logic.
20+ #
21+ # ******** NOTE ********
22+ # We have attempted to detect the languages in your repository. Please check
23+ # the `language` matrix defined below to confirm you have the correct set of
24+ # supported CodeQL languages.
25+ #
1726name : " CodeQL"
1827
1928on :
2029 push :
2130 branches : [main]
2231 pull_request :
32+ # The branches below must be a subset of the branches above
2333 branches : [main]
2434 schedule :
2535 - cron : " 0 13 * * *"
@@ -33,15 +43,43 @@ jobs:
3343 contents : read
3444 security-events : write
3545
46+ strategy :
47+ fail-fast : false
48+ matrix :
49+ language : ["javascript"]
50+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
51+ # Learn more:
52+ # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
53+
3654 steps :
3755 - name : Checkout repository
38- uses : actions/checkout@v4
56+ uses : actions/checkout@v2
3957
40- # Initializes the CodeQL tools for scanning and analyze
58+ # Initializes the CodeQL tools for scanning.
4159 - name : Initialize CodeQL
42- uses : github/codeql-action/init@v2
60+ uses : github/codeql-action/init@v1
4361 with :
44- languages : javascript-typescript
62+ languages : ${{ matrix.language }}
63+ # If you wish to specify custom queries, you can do so here or in a config file.
64+ # By default, queries listed here will override any specified in a config file.
65+ # Prefix the list here with "+" to use these queries and those in the config file.
66+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
67+
68+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
69+ # If this step fails, then you should remove it and run the build manually (see below)
70+ - name : Autobuild
71+ uses : github/codeql-action/autobuild@v1
72+
73+ # ℹ️ Command-line programs to run using the OS shell.
74+ # 📚 https://git.io/JvXDl
75+
76+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
77+ # and modify them (or add more) to build your code if your project
78+ # uses a compiled language
79+
80+ # - run: |
81+ # make bootstrap
82+ # make release
4583
4684 - name : Perform CodeQL Analysis
47- uses : github/codeql-action/analyze@v2
85+ uses : github/codeql-action/analyze@v1
0 commit comments