diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 932b4e9..0fa2cb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,9 @@ name: CI on: push: + branches: + - "**" + - "!dependabot/**" pull_request: workflow_dispatch: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..1c709b7 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,53 @@ +name: "CodeQL" + +on: + push: + branches: + - "**" + - "!dependabot/**" + pull_request: + branches: + - "**" + - "!dependabot/**" + schedule: + - cron: "0 0 * * 0" + workflow_dispatch: + +jobs: + analyze: + name: Analyze + runs-on: windows-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Clone repository + uses: actions/checkout@v4 + with: + submodules: true + persist-credentials: false + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: "cpp" + queries: security-extended,security-and-quality + + - name: Add MSVC to PATH + uses: ilammy/msvc-dev-cmd@v1 + + - name: Set up NASM + uses: ilammy/setup-nasm@v1 + with: + version: 2.16.03 + + - name: Build + run: CALL "build.bat" + shell: cmd + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:cpp"