|
1 | | -# Copyright (c) Microsoft Corporation. |
2 | | -# Licensed under the MIT License. |
3 | | -# |
4 | | -# http://go.microsoft.com/fwlink/?LinkId=271568 |
5 | | - |
6 | | -name: "CodeQL" |
7 | | - |
8 | | -on: |
9 | | - push: |
10 | | - branches: "main" |
11 | | - paths-ignore: |
12 | | - - '*.md' |
13 | | - - LICENSE |
14 | | - - '.azuredevops/**' |
15 | | - - '.nuget/*' |
16 | | - pull_request: |
17 | | - branches: "main" |
18 | | - paths-ignore: |
19 | | - - '*.md' |
20 | | - - LICENSE |
21 | | - - '.azuredevops/**' |
22 | | - - '.nuget/*' |
23 | | - schedule: |
24 | | - - cron: '21 22 * * 6' |
25 | | - |
26 | | -permissions: |
27 | | - contents: read |
28 | | - |
29 | | -jobs: |
30 | | - analyze: |
31 | | - name: Analyze (C/C++) |
32 | | - runs-on: windows-latest |
33 | | - timeout-minutes: 360 |
34 | | - permissions: |
35 | | - actions: read # for github/codeql-action/init to get workflow details |
36 | | - contents: read # for actions/checkout to fetch code |
37 | | - security-events: write # for github/codeql-action/autobuild to send a status report |
38 | | - packages: read |
39 | | - |
40 | | - steps: |
41 | | - - name: Checkout repository |
42 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
43 | | - |
44 | | - - name: 'Install Ninja' |
45 | | - run: choco install ninja |
46 | | - |
47 | | - - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
48 | | - |
49 | | - - name: Initialize CodeQL |
50 | | - uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18 |
51 | | - with: |
52 | | - languages: c-cpp |
53 | | - build-mode: manual |
54 | | - |
55 | | - - name: 'Configure CMake' |
56 | | - working-directory: ${{ github.workspace }} |
57 | | - run: cmake --preset=x64-Debug |
58 | | - |
59 | | - - name: 'Build' |
60 | | - working-directory: ${{ github.workspace }} |
61 | | - run: cmake --build out\build\x64-Debug |
62 | | - |
63 | | - - name: Perform CodeQL Analysis |
64 | | - uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18 |
65 | | - with: |
66 | | - category: "/language:c-cpp" |
| 1 | +# Copyright (c) Microsoft Corporation. |
| 2 | +# Licensed under the MIT License. |
| 3 | +# |
| 4 | +# http://go.microsoft.com/fwlink/?LinkId=271568 |
| 5 | + |
| 6 | +name: "CodeQL" |
| 7 | + |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: "main" |
| 11 | + paths-ignore: |
| 12 | + - '*.md' |
| 13 | + - LICENSE |
| 14 | + - '.azuredevops/**' |
| 15 | + - '.nuget/*' |
| 16 | + pull_request: |
| 17 | + branches: "main" |
| 18 | + paths-ignore: |
| 19 | + - '*.md' |
| 20 | + - LICENSE |
| 21 | + - '.azuredevops/**' |
| 22 | + - '.nuget/*' |
| 23 | + schedule: |
| 24 | + - cron: '21 22 * * 6' |
| 25 | + |
| 26 | +permissions: |
| 27 | + contents: read |
| 28 | + |
| 29 | +jobs: |
| 30 | + analyze: |
| 31 | + name: Analyze (C/C++) |
| 32 | + runs-on: windows-latest |
| 33 | + timeout-minutes: 360 |
| 34 | + permissions: |
| 35 | + actions: read # for github/codeql-action/init to get workflow details |
| 36 | + contents: read # for actions/checkout to fetch code |
| 37 | + security-events: write # for github/codeql-action/autobuild to send a status report |
| 38 | + packages: read |
| 39 | + |
| 40 | + steps: |
| 41 | + - name: Checkout repository |
| 42 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 43 | + |
| 44 | + - name: 'Install Ninja' |
| 45 | + run: choco install ninja |
| 46 | + |
| 47 | + - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
| 48 | + |
| 49 | + - name: Initialize CodeQL |
| 50 | + uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2 |
| 51 | + with: |
| 52 | + languages: c-cpp |
| 53 | + build-mode: manual |
| 54 | + |
| 55 | + - name: 'Configure CMake' |
| 56 | + working-directory: ${{ github.workspace }} |
| 57 | + run: cmake --preset=x64-Debug |
| 58 | + |
| 59 | + - name: 'Build' |
| 60 | + working-directory: ${{ github.workspace }} |
| 61 | + run: cmake --build out\build\x64-Debug |
| 62 | + |
| 63 | + - name: Perform CodeQL Analysis |
| 64 | + uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2 |
| 65 | + with: |
| 66 | + category: "/language:c-cpp" |
0 commit comments