From d5b1690a42b8a4fe7bd5f3ae206a6a77300085d0 Mon Sep 17 00:00:00 2001 From: Atri Date: Mon, 11 Aug 2025 00:49:48 -0400 Subject: [PATCH] ci: Add CodeQL configuration --- .github/workflows/code-ql.yml | 38 +++++++++++++++++++++++++++++++++++ gradle.properties | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/code-ql.yml diff --git a/.github/workflows/code-ql.yml b/.github/workflows/code-ql.yml new file mode 100644 index 0000000..daff1cf --- /dev/null +++ b/.github/workflows/code-ql.yml @@ -0,0 +1,38 @@ +name: CodeQL Scanning +on: + push: + branches: + - 'master' + pull_request: + paths: + - 'src/main/kotlin/**' + - 'src/test/kotlin/**' + - 'src/main/resources/**' + - 'src/test/resources/**' + - '.github/workflows/code-ql.yml' + +permissions: + contents: read + security-events: write + +jobs: + codeql: + runs-on: ubuntu-latest + steps: + - name: Checkout Project + uses: actions/checkout@v4 + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: java-kotlin + build-mode: manual + - name: Build Project + run: |- + ./gradlew --no-daemon --info -S clean testClasses \ + -Pkotlin.incremental=false \ + -Dorg.gradle.workers.max=1 \ + -Pkotlin.compiler.execution.strategy=in-process + - name: Analyze Build + uses: github/codeql-action/analyze@v3 + with: + category: '/language:java-kotlin' \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 09f1a15..7a6e192 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ org.gradle.configuration-cache=true - +org.gradle.jvmargs=-Xmx4098m # x-release-please-start-version version=2.0.0 # x-release-please-end