Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/codeql.yml
diff options
context:
space:
mode:
authorLeitwolf112026-09-26 16:57:36 +0300
committerLeitwolf112026-09-26 16:57:36 +0300
commit07b91c2966ffe5daa9501f41436b3a45b3a2d774 (patch)
tree4a8771a38cbd7bc61735c3ae59b8b440f03d0d42 /.github/workflows/codeql.yml
parent1855533fa44547e568471303530c67e5d2fa69c5 (diff)
downloadprogmaweb-07b91c2966ffe5daa9501f41436b3a45b3a2d774.tar.gz
Add Progmaweb frontend tests and full-stack security and coverage workflows
Diffstat (limited to '.github/workflows/codeql.yml')
-rw-r--r--.github/workflows/codeql.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 0000000..1f6db33
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,50 @@
+# SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
+# SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1
+
+name: CodeQL
+on:
+ push:
+ branches: [main]
+ pull_request:
+ schedule:
+ - cron: '37 4 * * 1'
+permissions:
+ actions: read
+ contents: read
+ security-events: write
+jobs:
+ analyze:
+ name: ${{ matrix.language }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 45
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - language: actions
+ build_mode: none
+ - language: javascript-typescript
+ build_mode: none
+ - language: csharp
+ build_mode: manual
+ steps:
+ - uses: actions/checkout@v7
+ - uses: actions/setup-dotnet@v5
+ if: matrix.language == 'csharp'
+ with:
+ dotnet-version: 10.0.x
+ - uses: github/codeql-action/init@7999b86c43a865dc79d8923397f35af22de63401 # v4
+ with:
+ languages: ${{ matrix.language }}
+ build-mode: ${{ matrix.build_mode }}
+ config-file: ./.github/codeql/codeql-config.yml
+ queries: security-extended
+ - name: Build ASP.NET Core for extraction
+ if: matrix.language == 'csharp'
+ run: |
+ dotnet restore Progmaweb.slnx --locked-mode
+ dotnet build Progmaweb.slnx --configuration Release --no-restore
+ - uses: github/codeql-action/analyze@7999b86c43a865dc79d8923397f35af22de63401 # v4
+ with:
+ category: /language:${{ matrix.language }}
+