|
1 | | -name: "CodeQL" |
| 1 | +name: "CodeQL analysis" |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - branches: [master, ] |
| 5 | + branches: [main] |
6 | 6 | pull_request: |
7 | | - # The branches below must be a subset of the branches above |
8 | | - branches: [master] |
| 7 | + branches: [main] |
9 | 8 | schedule: |
10 | | - - cron: '0 7 * * 0' |
| 9 | + # ┌───────────── minute (0 - 59) |
| 10 | + # │ ┌───────────── hour (0 - 23) |
| 11 | + # │ │ ┌───────────── day of the month (1 - 31) |
| 12 | + # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) |
| 13 | + # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) |
| 14 | + # │ │ │ │ │ |
| 15 | + # │ │ │ │ │ |
| 16 | + # │ │ │ │ │ |
| 17 | + # * * * * * |
| 18 | + - cron: '30 1 * * 0' |
11 | 19 |
|
12 | 20 | jobs: |
13 | | - analyze: |
14 | | - name: Analyze |
| 21 | + CodeQL-Build: |
| 22 | + # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest |
15 | 23 | runs-on: ubuntu-latest |
16 | 24 |
|
| 25 | + permissions: |
| 26 | + # required for all workflows |
| 27 | + security-events: write |
| 28 | + |
| 29 | + # only required for workflows in private repositories |
| 30 | + actions: read |
| 31 | + contents: read |
| 32 | + |
17 | 33 | steps: |
18 | | - - name: Checkout repository |
19 | | - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3.0.0 |
20 | | - with: |
21 | | - # We must fetch at least the immediate parents so that if this is |
22 | | - # a pull request then we can checkout the head. |
23 | | - fetch-depth: 2 |
24 | | - |
25 | | - # If this run was triggered by a pull request event, then checkout |
26 | | - # the head of the pull request instead of the merge commit. |
27 | | - - run: git checkout HEAD^2 |
28 | | - if: ${{ github.event_name == 'pull_request' }} |
29 | | - |
30 | | - # Initializes the CodeQL tools for scanning. |
31 | | - - name: Initialize CodeQL |
32 | | - uses: github/codeql-action/init@e2cc7cc006b87d43538b16d71752753e7b85224d # tag=v1.1.8 |
33 | | - # Override language selection by uncommenting this and choosing your languages |
34 | | - # with: |
35 | | - # languages: go, javascript, csharp, python, cpp, java |
36 | | - |
37 | | - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
38 | | - # 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@e2cc7cc006b87d43538b16d71752753e7b85224d # tag=v1.1.8 |
41 | | - |
42 | | - # ℹ️ Command-line programs to run using the OS shell. |
43 | | - # 📚 https://git.io/JvXDl |
44 | | - |
45 | | - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
46 | | - # and modify them (or add more) to build your code if your project |
47 | | - # uses a compiled language |
48 | | - |
49 | | - #- run: | |
50 | | - # make bootstrap |
51 | | - # make release |
52 | | - |
53 | | - - name: Perform CodeQL Analysis |
54 | | - uses: github/codeql-action/analyze@e2cc7cc006b87d43538b16d71752753e7b85224d # tag=v1.1.8 |
| 34 | + - name: Checkout repository |
| 35 | + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2 |
| 36 | + |
| 37 | + # Initializes the CodeQL tools for scanning. |
| 38 | + - name: Initialize CodeQL |
| 39 | + uses: github/codeql-action/init@2f58583a1b24a7d3c7034f6bf9fa506d23b1183b # tag=v2.1.10 |
| 40 | + # Override language selection by uncommenting this and choosing your languages |
| 41 | + # with: |
| 42 | + # languages: go, javascript, csharp, python, cpp, java |
| 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@2f58583a1b24a7d3c7034f6bf9fa506d23b1183b # tag=v2.1.10 |
| 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 |
| 53 | + # three lines and modify them (or add more) to build your code if your |
| 54 | + # project 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@2f58583a1b24a7d3c7034f6bf9fa506d23b1183b # tag=v2.1.10 |
0 commit comments