Skip to content

Merge pull request #4880 from kubernetes-client/dependabot/maven/mave… #5184

Merge pull request #4880 from kubernetes-client/dependabot/maven/mave…

Merge pull request #4880 from kubernetes-client/dependabot/maven/mave… #5184

name: "CodeQL"
on:
push:
branches: [ master ]
paths:
- '**/*.java'
- '**/BUILD.bazel'
- 'MODULE.bazel'
- '.bazelrc'
- '.github/workflows/codeql-analysis.yml'
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
paths:
- '**/*.java'
- '**/BUILD.bazel'
- 'MODULE.bazel'
- '.bazelrc'
- '.github/workflows/codeql-analysis.yml'
schedule:
- cron: '37 19 * * 0'
permissions:
contents: read
jobs:
analyze:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
env:
BAZELISK_SKIP_VERSION_CHECK: "1"
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Java
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
distribution: 'temurin'
java-version: 17.0.x
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4
with:
languages: ${{ matrix.language }}
build-mode: none
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4