Skip to content

Merge 5.1.4 to the beta branch #1124

Merge 5.1.4 to the beta branch

Merge 5.1.4 to the beta branch #1124

Workflow file for this run

# refs https://github.com/github/codeql-action
name: "Code Scanning - Action"
on:
push:
branches:
- master
- beta
pull_request:
branches:
- master
- beta
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
# If this run was triggered by a pull request event then checkout
# the head of the pull request instead of the merge commit.
# Only include this step if you are running this workflow on pull requests.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version-file: .java-version
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: detekt --scan
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
# Path to SARIF file relative to the root of the repository
sarif_file: build/reports/detekt/detekt.sarif