|
1 |
| -name: "Code scanning - action" |
| 1 | +name: 'Code scanning - action' |
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| - pull_request: |
6 |
| - schedule: |
7 |
| - - cron: '0 10 * * 3' |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + schedule: |
| 7 | + - cron: '0 10 * * 3' |
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - CodeQL-Build: |
11 |
| - |
12 |
| - # CodeQL runs on ubuntu-latest and windows-latest |
13 |
| - runs-on: ubuntu-latest |
14 |
| - |
15 |
| - steps: |
16 |
| - - name: Checkout repository |
17 |
| - uses: actions/checkout@v2 |
18 |
| - with: |
19 |
| - # We must fetch at least the immediate parents so that if this is |
20 |
| - # a pull request then we can checkout the head. |
21 |
| - fetch-depth: 2 |
22 |
| - |
23 |
| - # If this run was triggered by a pull request event, then checkout |
24 |
| - # the head of the pull request instead of the merge commit. |
25 |
| - - run: git checkout HEAD^2 |
26 |
| - if: ${{ github.event_name == 'pull_request' }} |
27 |
| - |
28 |
| - # Initializes the CodeQL tools for scanning. |
29 |
| - - name: Initialize CodeQL |
30 |
| - uses: github/codeql-action/init@v1 |
31 |
| - # Override language selection by uncommenting this and choosing your languages |
32 |
| - # with: |
33 |
| - # languages: go, javascript, csharp, python, cpp, java |
34 |
| - |
35 |
| - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
36 |
| - # If this step fails, then you should remove it and run the build manually (see below) |
37 |
| - - name: Autobuild |
38 |
| - uses: github/codeql-action/autobuild@v1 |
39 |
| - |
40 |
| - # ℹ️ Command-line programs to run using the OS shell. |
41 |
| - # 📚 https://git.io/JvXDl |
42 |
| - |
43 |
| - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
44 |
| - # and modify them (or add more) to build your code if your project |
45 |
| - # uses a compiled language |
46 |
| - |
47 |
| - #- run: | |
48 |
| - # make bootstrap |
49 |
| - # make release |
50 |
| - |
51 |
| - - name: Perform CodeQL Analysis |
52 |
| - uses: github/codeql-action/analyze@v1 |
| 10 | + CodeQL-Build: |
| 11 | + # CodeQL runs on ubuntu-latest and windows-latest |
| 12 | + runs-on: ubuntu-latest |
| 13 | + |
| 14 | + steps: |
| 15 | + - name: Checkout repository |
| 16 | + uses: actions/checkout@v2 |
| 17 | + with: |
| 18 | + # We must fetch at least the immediate parents so that if this is |
| 19 | + # a pull request then we can checkout the head. |
| 20 | + fetch-depth: 2 |
| 21 | + |
| 22 | + # Initializes the CodeQL tools for scanning. |
| 23 | + - name: Initialize CodeQL |
| 24 | + uses: github/codeql-action/init@v2 |
| 25 | + |
| 26 | + |
| 27 | + # Override language selection by uncommenting this and choosing your languages |
| 28 | + # with: |
| 29 | + # languages: go, javascript, csharp, python, cpp, java |
| 30 | + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
| 31 | + # If this step fails, then you should remove it and run the build manually (see below) |
| 32 | + - name: Autobuild |
| 33 | + uses: github/codeql-action/autobuild@v2 |
| 34 | + |
| 35 | + # ℹ️ Command-line programs to run using the OS shell. |
| 36 | + # 📚 https://git.io/JvXDl |
| 37 | + |
| 38 | + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
| 39 | + # and modify them (or add more) to build your code if your project |
| 40 | + # uses a compiled language |
| 41 | + |
| 42 | + #- run: | |
| 43 | + # make bootstrap |
| 44 | + # make release |
| 45 | + |
| 46 | + - name: Perform CodeQL Analysis |
| 47 | + uses: github/codeql-action/analyze@v2 |
0 commit comments