diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..b8cfea5 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,38 @@ +name: CodeQL + +on: + push: + branches: main + pull_request: + branches: main + schedule: + - cron: 23 2 * * 0 + +concurrency: + group: codeql-${{ github.ref_name }} + cancel-in-progress: true + +jobs: + analyze: + runs-on: ubuntu-latest + timeout-minutes: 360 + permissions: + actions: read + contents: read + security-events: write + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v3 + with: + distribution: oracle + java-version: 21 + check-latest: true + - uses: gradle/gradle-build-action@v2 + - uses: github/codeql-action/init@v2 + with: + languages: java-kotlin + - run: ./gradlew build -x check + - uses: github/codeql-action/analyze@v2 + with: + category: /language:java-kotlin