Skip to content

Checks: CodeQL

Checks: CodeQL #2

Workflow file for this run

name: "Checks: CodeQL"
on:
## Manual dispatch
workflow_dispatch: {}
## Sub-workflow call
workflow_call: {}
## Scheduled checks
schedule:
- cron: '41 8 * * 1'
env:
CI: true
BUILDLESS_APIKEY: ${{ secrets.BUILDLESS_APIKEY }}
permissions:
contents: read
jobs:
check-codeql:
name: "Checks: CodeQL"
runs-on: ubuntu-latest
timeout-minutes: 120
permissions:
actions: read
contents: read
security-events: write
steps:
- name: "Setup: Harden Runner"
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.azul.com:443
api.github.com:443
cdn.azul.com:443
dl.less.build:443
github.com:443
gradle.less.build:443
gradle.pkg.st:443
uploads.github.com:443
- name: "Setup: Checkout"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: "Setup: JDK ${{ inputs.java_version || vars.JVM_VERSION }}"
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: ${{ inputs.java_version || vars.JVM_VERSION || '21' }}
distribution: ${{ inputs.jvm || vars.JVM_VARIANT || 'zulu' }}
- name: "Setup: Cache SonarCloud Packages"
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: "Setup: Cache Gradle Packages"
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: "Setup: Initialize CodeQL"
uses: github/codeql-action/init@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
with:
languages: java-kotlin
- name: "CodeQL: Autobuild"
uses: github/codeql-action/autobuild@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
- name: "CodeQL: Analysis"
uses: github/codeql-action/analyze@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
with:
category: "/language:java-kotlin"