Skip to content

chore(CI): update Detekt scanning trigger #20

chore(CI): update Detekt scanning trigger

chore(CI): update Detekt scanning trigger #20

Workflow file for this run

name: Scan with Detekt
on:
push:
branches:
- main
paths:
- .github/workflows/detekt.yml
- app/config/detekt.yml
- 'app/src/main/java/**'
- 'app/src/test/java/**'
- 'app/src/local/kotlin/**'
- 'app/src/debug/kotlin/**'
- 'app/src/release/kotlin/**'
pull_request:
branches:
- main
workflow_dispatch:
permissions:
security-events: write
jobs:
scan:
name: Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: wrapper
- name: Run Detekt
continue-on-error: true
run: ./gradlew :app:detekt
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: app/build/reports/detekt/detekt.sarif