|
1 | | -# For most projects, this workflow file will not need changing; you simply need |
2 | | -# to commit it to your repository. |
3 | | -# |
4 | | -# You may wish to alter this file to override the set of languages analyzed, |
5 | | -# or to provide custom queries or build logic. |
6 | | -# |
7 | | -# ******** NOTE ******** |
8 | | -# We have attempted to detect the languages in your repository. Please check |
9 | | -# the `language` matrix defined below to confirm you have the correct set of |
10 | | -# supported CodeQL languages. |
11 | | -# |
| 1 | +# GitHub automatic code security scanning using CodeQL |
| 2 | + |
| 3 | +# Human readable name in the actions tab |
12 | 4 | name: "CodeQL" |
13 | 5 |
|
14 | 6 | on: |
| 7 | + # Scan only for push on the primary branch for now |
15 | 8 | push: |
16 | | - branches: [ main, codeql ] |
| 9 | + branches: [ main ] |
17 | 10 | pull_request: |
18 | | - # The branches below must be a subset of the branches above |
19 | 11 | branches: [ main ] |
20 | | - schedule: |
21 | | - - cron: '34 11 * * 1' |
22 | 12 |
|
23 | 13 | jobs: |
| 14 | + # job i |
24 | 15 | analyze: |
| 16 | + |
| 17 | + # Display name |
25 | 18 | name: Analyze |
| 19 | + |
| 20 | + # Environment |
26 | 21 | runs-on: ubuntu-latest |
| 22 | + |
27 | 23 | permissions: |
28 | 24 | actions: read |
29 | 25 | contents: read |
|
32 | 28 | strategy: |
33 | 29 | fail-fast: false |
34 | 30 | matrix: |
| 31 | + # Languages to scan |
35 | 32 | language: [ 'java' ] |
36 | | - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] |
37 | | - # Learn more: |
38 | | - # 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 |
39 | 33 |
|
40 | 34 | steps: |
41 | 35 | - name: Checkout repository |
|
56 | 50 | - name: Autobuild |
57 | 51 | uses: github/codeql-action/autobuild@v1 |
58 | 52 |
|
59 | | - # ℹ️ Command-line programs to run using the OS shell. |
60 | | - # 📚 https://git.io/JvXDl |
61 | | - |
62 | | - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
63 | | - # and modify them (or add more) to build your code if your project |
64 | | - # uses a compiled language |
65 | | - |
66 | | - #- run: | |
67 | | - # make bootstrap |
68 | | - # make release |
69 | | - |
70 | 53 | - name: Perform CodeQL Analysis |
71 | 54 | uses: github/codeql-action/analyze@v1 |
0 commit comments