Skip to content

fix: IDE-24 Disable Tracking via Segment and Amplitude for NON-MT-US … #1293

fix: IDE-24 Disable Tracking via Segment and Amplitude for NON-MT-US …

fix: IDE-24 Disable Tracking via Segment and Amplitude for NON-MT-US … #1293

Workflow file for this run

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