-
-
Notifications
You must be signed in to change notification settings - Fork 60
41 lines (35 loc) · 1.01 KB
/
detekt.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: detekt
on:
pull_request:
branches: [master]
push:
branches: [master]
env:
DETEKT_RELEASE: 1.23.7
jobs:
detekt:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup
run: |
curl \
--request GET \
--url https://github.com/detekt/detekt/releases/download/v${DETEKT_RELEASE}/detekt-cli-${DETEKT_RELEASE}-all.jar \
--silent \
--location \
--output detekt
chmod a+x detekt
- name: Run
continue-on-error: true
run: |
java -jar detekt \
--build-upon-default-config \
--config detekt.yml \
--input ${{ github.workspace }} \
--base-path ${{ github.workspace }} \
--report sarif:${{ github.workspace }}/detekt.sarif.json
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ github.workspace }}/detekt.sarif.json
checkout_path: ${{ github.workspace }}