Bump github/codeql-action from 2 to 3 #111
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Detekt' | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
env: | |
GRADLE_OPTS: -Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.welcome=never | |
jobs: | |
detekt: | |
name: 'Detekt' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Fetch Git tags, so that semantic version can be calculated. | |
# Alternatively, run `git fetch --prune --unshallow --tags` as the | |
# next step, see | |
# https://github.com/actions/checkout/issues/206#issuecomment-607496604. | |
fetch-depth: 0 | |
- name: 'Set up Java 17' | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 17 | |
java-package: jdk+fx | |
- name: 'Cache ~/.konan' | |
id: cache-konan | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.konan | |
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }}-detekt | |
restore-keys: | | |
${{ runner.os }}-konan-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }}- | |
${{ runner.os }}-konan- | |
- name: 'Execute Gradle build' | |
uses: gradle/gradle-build-action@v3.1.0 | |
with: | |
gradle-version: wrapper | |
arguments: | | |
--continue | |
detektAll | |
- name: 'Publish SARIF to GitHub' | |
id: publish | |
if: ${{ always() }} | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: build/detekt-sarif-reports/detekt-merged.sarif |