diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..e32ec9ad --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,59 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# +# http://go.microsoft.com/fwlink/?LinkID=512686 + +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + paths-ignore: + - '*.md' + - LICENSE + - '.nuget/*' + - build/*.mdb + - build/*.props + - build/*.ps1 + - build/*.yml + schedule: + - cron: '34 18 * * 6' + +jobs: + analyze: + name: Analyze (C/C++) + runs-on: windows-latest + timeout-minutes: 360 + permissions: + security-events: write + packages: read + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: 'Install Ninja' + run: choco install ninja + + - uses: ilammy/msvc-dev-cmd@v1 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: c-cpp + build-mode: manual + + - name: 'Configure CMake' + working-directory: ${{env.GITHUB_WORKSPACE}} + run: cmake --preset=x64-Debug + + - name: 'Build' + working-directory: ${{env.GITHUB_WORKSPACE}} + run: cmake --build out\build\x64-Debug + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:c-cpp" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d83a3ee..3f862f95 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,10 +14,9 @@ on: - '*.md' - LICENSE - '.nuget/*' - - build/*.cmd + - build/*.mdb - build/*.props - build/*.ps1 - - build/*.targets - build/*.yml jobs: diff --git a/build/UVAtlas-GitHub-CMake-Dev17.yml b/build/UVAtlas-GitHub-CMake-Dev17.yml index 7cf40b50..9390a3cb 100644 --- a/build/UVAtlas-GitHub-CMake-Dev17.yml +++ b/build/UVAtlas-GitHub-CMake-Dev17.yml @@ -20,6 +20,7 @@ trigger: exclude: - '*.md' - LICENSE + - '.github/*' - '.nuget/*' - build/*.mdb - build/*.ps1 @@ -32,6 +33,7 @@ pr: exclude: - '*.md' - LICENSE + - '.github/*' - '.nuget/*' - build/*.mdb - build/*.ps1 diff --git a/build/UVAtlas-GitHub-CMake.yml b/build/UVAtlas-GitHub-CMake.yml index abc162c6..07df6310 100644 --- a/build/UVAtlas-GitHub-CMake.yml +++ b/build/UVAtlas-GitHub-CMake.yml @@ -20,6 +20,7 @@ trigger: exclude: - '*.md' - LICENSE + - '.github/*' - '.nuget/*' - build/*.mdb - build/*.ps1 @@ -32,6 +33,7 @@ pr: exclude: - '*.md' - LICENSE + - '.github/*' - '.nuget/*' - build/*.mdb - build/*.ps1 diff --git a/build/UVAtlas-GitHub-Dev17.yml b/build/UVAtlas-GitHub-Dev17.yml index f7265dd0..f1a01e77 100644 --- a/build/UVAtlas-GitHub-Dev17.yml +++ b/build/UVAtlas-GitHub-Dev17.yml @@ -21,6 +21,7 @@ trigger: - '*.md' - LICENSE - CMake* + - '.github/*' - '.nuget/*' - build/*.cmake - build/*.in @@ -36,6 +37,7 @@ pr: - '*.md' - LICENSE - CMake* + - '.github/*' - '.nuget/*' - build/*.cmake - build/*.in diff --git a/build/UVAtlas-GitHub-MinGW.yml b/build/UVAtlas-GitHub-MinGW.yml index 123f2e30..17a05c03 100644 --- a/build/UVAtlas-GitHub-MinGW.yml +++ b/build/UVAtlas-GitHub-MinGW.yml @@ -20,6 +20,7 @@ trigger: exclude: - '*.md' - LICENSE + - '.github/*' - '.nuget/*' - build/*.mdb - build/*.ps1 @@ -32,6 +33,7 @@ pr: exclude: - '*.md' - LICENSE + - '.github/*' - '.nuget/*' - build/*.mdb - build/*.ps1 diff --git a/build/UVAtlas-GitHub-Test.yml b/build/UVAtlas-GitHub-Test.yml index 2c48a88c..a7b06516 100644 --- a/build/UVAtlas-GitHub-Test.yml +++ b/build/UVAtlas-GitHub-Test.yml @@ -21,6 +21,7 @@ trigger: - '*.md' - LICENSE - CMake* + - '.github/*' - '.nuget/*' - build/*.cmake - build/*.in @@ -36,6 +37,7 @@ pr: - '*.md' - LICENSE - CMake* + - '.github/*' - '.nuget/*' - build/*.cmake - build/*.in diff --git a/build/UVAtlas-GitHub-WSL.yml b/build/UVAtlas-GitHub-WSL.yml index 683fc721..b59890ff 100644 --- a/build/UVAtlas-GitHub-WSL.yml +++ b/build/UVAtlas-GitHub-WSL.yml @@ -20,6 +20,7 @@ trigger: exclude: - '*.md' - LICENSE + - '.github/*' - '.nuget/*' - build/*.mdb - build/*.ps1 @@ -32,6 +33,7 @@ pr: exclude: - '*.md' - LICENSE + - '.github/*' - '.nuget/*' - build/*.mdb - build/*.ps1 diff --git a/build/UVAtlas-GitHub.yml b/build/UVAtlas-GitHub.yml index 7edc15ff..261c390b 100644 --- a/build/UVAtlas-GitHub.yml +++ b/build/UVAtlas-GitHub.yml @@ -21,6 +21,7 @@ trigger: - '*.md' - LICENSE - CMake* + - '.github/*' - '.nuget/*' - build/*.cmake - build/*.in @@ -36,6 +37,7 @@ pr: - '*.md' - LICENSE - CMake* + - '.github/*' - '.nuget/*' - build/*.cmake - build/*.in