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

summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/codeql.yml
diff options
context:
space:
mode:
authorLeitwolf112026-11-12 07:31:31 +0300
committerLeitwolf112026-11-12 07:31:31 +0300
commitf7545228848e250856b9cdf2cf92538dfda0eb4f (patch)
treee5ac0c1cc0ca8cf1225169d02112c7861cce4979 /.github/workflows/codeql.yml
downloadtazel-f7545228848e250856b9cdf2cf92538dfda0eb4f.tar.gz
Start Tazel again at 0.1.0 for C, C++, Objective-C, Objective-C++ and Zig
Tazel restarts as a build system and package manager for C, C++, Objective-C, Objective-C++ and Zig, with MODULE.kts and BUILD.kts project files and labels such as //app/:greeter. The earlier Tazel, the build system of Tala (0.1.0 to 0.4.0.3), is archived as Progmasoft/tazel-legacy, with its history and releases. This first commit holds the build of the program only: Gradle 9 with the Kotlin JVM plugin (JDK 25, warnings as errors), Spotless, JaCoCo, the Kotlin scripting libraries the project files will need, Mordant, and an entry point that answers version and help and refuses anything else with exit code 2. CI runs gradlew check installDist on Linux, Windows and macOS; CodeQL, zizmor and Dependency Review come from the earlier repository. The license is MPL-2.0 WITH AdditionRef-Progmasoft-Exception-2.0.
Diffstat (limited to '.github/workflows/codeql.yml')
-rw-r--r--.github/workflows/codeql.yml70
1 files changed, 70 insertions, 0 deletions
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 0000000..a0e4910
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,70 @@
+# SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
+# SPDX-License-Identifier: MPL-2.0 WITH AdditionRef-Progmasoft-Exception-2.0
+
+name: CodeQL
+
+on:
+ pull_request:
+ push:
+ branches:
+ - main
+ schedule:
+ - cron: '23 4 * * 1'
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: codeql-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ analyze:
+ name: ${{ matrix.language }}
+ runs-on: ubuntu-26.04
+ timeout-minutes: 30
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - language: actions
+ build_mode: none
+ - language: java-kotlin
+ build_mode: manual
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+
+ - name: Install JDK 25
+ if: matrix.language == 'java-kotlin'
+ uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ with:
+ distribution: temurin
+ java-version: "25"
+
+ - name: Set up Gradle
+ if: matrix.language == 'java-kotlin'
+ uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0
+
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
+ with:
+ languages: ${{ matrix.language }}
+ build-mode: ${{ matrix.build_mode }}
+ queries: security-extended
+
+ - name: Build the Kotlin sources for extraction
+ if: matrix.language == 'java-kotlin'
+ shell: bash
+ run: ./gradlew classes testClasses --rerun-tasks --no-build-cache --no-daemon
+
+ - name: Analyze
+ uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
+ with:
+ category: /language:${{ matrix.language }}