Skip to content

Commit

Permalink
Fix incorrect stock Detekt setup
Browse files Browse the repository at this point in the history
  • Loading branch information
NorseDreki committed Apr 2, 2024
1 parent 9bb651d commit 4d7efb5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 142 deletions.
118 changes: 0 additions & 118 deletions .github/workflows/detekt.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/detekt2.yml

This file was deleted.

File renamed without changes.
32 changes: 32 additions & 0 deletions .github/workflows/scan-detekt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Scan with Detekt

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
validate:
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
steps:
- uses: actions/checkout@v4

- uses: natiginfo/action-detekt-all@1.23.5
with:
args: --report sarif:build/reports/detekt/detekt.sarif
continue-on-error: true

# Make sure we always run this upload task,
# because the previous step may fail if there are findings.
- name: Upload SARIF to GitHub using the upload-sarif action
uses: github/codeql-action/upload-sarif@v3
if: success() || failure()
with:
sarif_file: build/reports/detekt/detekt.sarif
# Optional category for the results
# Used to differentiate multiple results for one commit
category: detekt

0 comments on commit 4d7efb5

Please sign in to comment.