From 411e7c058537799def1b9d20a9f97536059cc31d Mon Sep 17 00:00:00 2001 From: timmiesmith Date: Tue, 22 Sep 2026 15:33:50 -0500 Subject: [PATCH 1/2] Add CodeQL static analysis workflow. --- .github/workflows/codeql.yml | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..17f32a3 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,54 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + paths: + - 'include/**' + - 'test/**' + - '.github/workflows/codeql.yml' + schedule: + - cron: '0 0 * * 1' + +permissions: + contents: read + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + # required to upload code scanning results + security-events: write + # required to fetch internal or private CodeQL packs + packages: read + # only required for workflows in private repositories + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + include: + # xvec is a header-only C++ library, so there is nothing to compile; + # build-mode "none" lets CodeQL extract the sources without a build. + - language: c-cpp + build-mode: none + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{ matrix.language }}" From 3aa0638c3aa28be13c228c9c1f2fec1d702a3246 Mon Sep 17 00:00:00 2001 From: timmiesmith Date: Thu, 24 Sep 2026 11:23:13 -0500 Subject: [PATCH 2/2] Adding copyright notice. --- .github/workflows/codeql.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 17f32a3..474b0a1 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,3 +1,10 @@ +##===-- codeql.yml --------------------------------------------------------===## +# +# Copyright (C) 2026 Intel Corporation +# +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +##===----------------------------------------------------------------------===## name: "CodeQL" on: