Skip to content

ref(docs): Avoid shell redirects in PR workflow docs (#5180) #7867

ref(docs): Avoid shell redirects in PR workflow docs (#5180)

ref(docs): Avoid shell redirects in PR workflow docs (#5180) #7867

name: 'CodeQL'
on:
push:
branches: [main]
schedule:
- cron: '17 23 * * 3'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
runs-on: macos-15
env:
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
steps:
- name: Checkout Repo
uses: actions/checkout@v6
with:
submodules: 'recursive'
- name: Setup Java Version
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Initialize CodeQL
uses: github/codeql-action/init@89a39a4e59826350b863aa6b6252a07ad50cf83e # pin@v2
with:
languages: 'java'
- name: Build Java
run: |
./gradlew buildForCodeQL --no-build-cache
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@89a39a4e59826350b863aa6b6252a07ad50cf83e # pin@v2