|
1 |
| -name: "CodeQL Analysis" |
| 1 | +name: "CodeQL" |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | push:
|
| 5 | + branches: [ main ] |
| 6 | + pull_request: |
| 7 | + # The branches below must be a subset of the branches above |
| 8 | + branches: [ main ] |
5 | 9 | schedule:
|
6 | 10 | - cron: '0 2 * * 3'
|
7 | 11 |
|
8 | 12 | jobs:
|
9 |
| - codeql-build: |
10 |
| - name: CodeQL Build |
| 13 | + analyze: |
| 14 | + name: Analyze |
| 15 | + runs-on: ubuntu-latest |
11 | 16 |
|
12 | 17 | strategy:
|
13 | 18 | fail-fast: false
|
14 |
| - |
15 |
| - runs-on: ubuntu-latest |
| 19 | + matrix: |
| 20 | + language: [ 'javascript' ] |
| 21 | + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] |
| 22 | + # Learn more: |
| 23 | + # 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 |
16 | 24 |
|
17 | 25 | steps:
|
18 | 26 | - name: Checkout repository
|
19 | 27 | uses: actions/checkout@v2
|
20 | 28 |
|
| 29 | + # Initializes the CodeQL tools for scanning. |
21 | 30 | - name: Initialize CodeQL
|
22 | 31 | uses: github/codeql-action/init@v1
|
23 |
| - |
| 32 | + with: |
| 33 | + languages: ${{ matrix.language }} |
| 34 | + # If you wish to specify custom queries, you can do so here or in a config file. |
| 35 | + # By default, queries listed here will override any specified in a config file. |
| 36 | + # Prefix the list here with "+" to use these queries and those in the config file. |
| 37 | + # queries: ./path/to/local/query, your-org/your-repo/queries@main |
| 38 | + |
| 39 | + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
| 40 | + # If this step fails, then you should remove it and run the build manually (see below) |
24 | 41 | - name: Autobuild
|
25 | 42 | uses: github/codeql-action/autobuild@v1
|
26 | 43 |
|
| 44 | + # ℹ️ Command-line programs to run using the OS shell. |
| 45 | + # 📚 https://git.io/JvXDl |
| 46 | + |
| 47 | + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
| 48 | + # and modify them (or add more) to build your code if your project |
| 49 | + # uses a compiled language |
| 50 | + |
| 51 | + #- run: | |
| 52 | + # make bootstrap |
| 53 | + # make release |
| 54 | + |
27 | 55 | - name: Perform CodeQL Analysis
|
28 | 56 | uses: github/codeql-action/analyze@v1
|
0 commit comments