From a39bf1964c6a3357262b5c1551c3fb08c54ef25b Mon Sep 17 00:00:00 2001 From: JerrettDavis Date: Mon, 22 Jun 2026 22:15:21 -0500 Subject: [PATCH] [StrataConfig] add CodeQL security scanning Co-Authored-By: Claude Opus 4.6 --- .github/workflows/codeql.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..e993955 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,37 @@ +name: CodeQL Security Analysis + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: '0 3 * * 1' # Weekly Monday 3am UTC + +permissions: + contents: read + security-events: write + actions: read + +jobs: + analyze: + name: Analyze (csharp) + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: csharp + queries: security-extended + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: /language:csharp