fix: close down language server during download, fix trust service [HEAD-1242][HEAD-1249] #1311
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: Code Scanning - Action | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
detekt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch Sources | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
name: Setup Java | |
with: | |
distribution: 'temurin' # See 'Supported distributions' for available options | |
java-version: '17' | |
- name: Setup Gradle Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Run detekt Gradle task | |
run: ./gradlew detekt | |
continue-on-error: true | |
# modifies the SARIF output produced by Detekt so that absolute URIs are relative | |
- name: Make artifact location URIs relative | |
if: always() | |
run: | | |
echo "$( | |
jq \ | |
--arg github_workspace ${{ github.workspace }} \ | |
'. | ( .runs[].results[].locations[].physicalLocation.artifactLocation.uri |= if test($github_workspace) then .[($github_workspace | length | . + 1):] else . end )' \ | |
build/detekt.sarif | |
)" > build/detekt.sarif | |
- name: Upload SARIF to GitHub | |
uses: github/codeql-action/upload-sarif@v1 | |
if: success() | |
with: | |
sarif_file: build/detekt.sarif |