Skip to content

Restrict CodeQL to workflow analysis #2

Restrict CodeQL to workflow analysis

Restrict CodeQL to workflow analysis #2

Workflow file for this run

name: CodeQL
# Universal CodeQL config for KotlinMania repos.
#
# We do NOT analyze `java-kotlin`. The CodeQL Kotlin extractor only hooks
# JVM `kotlinc` invocations; Kotlin/Native and Kotlin/JS compilations
# produce no traced events, so `database finalize` aborts with
# "CodeQL could not process any code written in Java/Kotlin" on KMP
# projects without a JVM target. This repo has no maintained JavaScript or
# TypeScript source for CodeQL to extract, so `actions` covers workflow files.
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
schedule:
- cron: "27 4 * * 1"
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
security-events: write
packages: read
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"