-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bb651d
commit 4d7efb5
Showing
4 changed files
with
32 additions
and
142 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |