Skip to content

Commit 91a4f14

Browse files
committed
Enable sarif in megalinter
1 parent e3884d0 commit 91a4f14

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/mega-linter.yml

+6
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,9 @@ jobs:
192192
commit_message: "[MegaLinter] Apply linters fixes"
193193
commit_user_name: megalinter-bot
194194
commit_user_email: [email protected]
195+
196+
- name: Upload MegaLinter scan results to GitHub Security tab
197+
if: success() || failure()
198+
uses: github/codeql-action/upload-sarif@v2
199+
with:
200+
sarif_file: "megalinter-reports/megalinter-report.sarif"

.mega-linter.yml

+3
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ SHOW_ELAPSED_TIME: true
3333
FILEIO_REPORTER: false
3434
# Uncomment if you want MegaLinter to detect errors but not block CI to pass
3535
# DISABLE_ERRORS: true
36+
37+
# Activate SARIF for GitHub Security
38+
SARIF_REPORTER: true

0 commit comments

Comments
 (0)