Skip to content

Merge pull request #784 from supabase-community/dependabot/gradle/and… #1959

Merge pull request #784 from supabase-community/dependabot/gradle/and…

Merge pull request #784 from supabase-community/dependabot/gradle/and… #1959

Workflow file for this run

name: Analyze code using detekt
on:
push:
branches:
- 'master'
pull_request:
branches:
- '*'
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.0.1
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- name: Analyze code using detekt
run: ./gradlew -DLibrariesOnly=true detektAll --stacktrace --configuration-cache
- uses: github/codeql-action/upload-sarif@v3
if: success() || failure()
with:
sarif_file: build/reports/detekt/merge.sarif
category: lint