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