Skip to content

Add initial instrumentation of kafka connect SinkTask #4286

Add initial instrumentation of kafka connect SinkTask

Add initial instrumentation of kafka connect SinkTask #4286

Workflow file for this run

name: CodeQL
on:
pull_request:
branches:
- main
- release/*
- cloudfoundry
- gh-pages
push:
branches:
- main
- release/*
- cloudfoundry
- gh-pages
schedule:
- cron: "29 13 * * 2" # weekly at 13:29 UTC on Tuesday
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
permissions:
contents: read
actions: read # for github/codeql-action/init to get workflow details
security-events: write # for github/codeql-action/analyze to upload SARIF results
strategy:
fail-fast: false
matrix:
include:
- language: actions
- language: java
runs-on: oracle-8cpu-32gb-x86-64
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# don't need to free disk space (which takes time) since running on larger machine
- name: Set up JDK 11
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
with:
distribution: temurin
java-version: 11
- name: Set up JDK for running Gradle
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
with:
distribution: temurin
java-version-file: .java-version
- name: Increase gradle daemon heap size
run: |
# increasing more than other workflows since this is running on a large runner
# and so it uses more parallelism which uses more memory
sed -i "s/org.gradle.jvmargs=/org.gradle.jvmargs=-Xmx8g /" gradle.properties
- name: Set up Gradle
if: matrix.language == 'java'
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
with:
cache-read-only: ${{ github.event_name == 'pull_request' }}
- name: Initialize CodeQL
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
with:
languages: ${{ matrix.language }}
# using "linked" helps to keep up with the linked Kotlin support
# see https://github.com/github/codeql-action/issues/1555#issuecomment-1452228433
tools: linked
- name: Assemble
if: matrix.language == 'java'
# --no-build-cache is required for codeql to analyze all modules
# --no-daemon is required for codeql to observe the compilation
# (see https://docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/preparing-your-code-for-codeql-analysis#specifying-build-commands)
# collectReachabilityMetadata tasks are disabled because they often cause the build to fail
run: >
./gradlew assemble -x javadoc
-x :smoke-tests-otel-starter:spring-boot-3:collectReachabilityMetadata
-x :smoke-tests-otel-starter:spring-boot-3.2:collectReachabilityMetadata
-x :smoke-tests-otel-starter:spring-boot-reactive-3:collectReachabilityMetadata
--no-build-cache --no-daemon
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
with:
category: "/language:${{matrix.language}}"