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