Skip to content

Merge pull request #4799 from kubernetes-client/dependabot/maven/aws.… #5079

Merge pull request #4799 from kubernetes-client/dependabot/maven/aws.…

Merge pull request #4799 from kubernetes-client/dependabot/maven/aws.… #5079

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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
distribution: 'temurin'
java-version: 17.0.x
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
with:
languages: ${{ matrix.language }}
build-mode: none
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4