Skip to content

Commit 5a3f3d5

Browse files
authored
Enable sarif in megalinter (#27)
* Enable sarif in megalinter * [MegaLinter] Apply linters fixes --------- Co-authored-by: RelativeSure <[email protected]>
1 parent e3884d0 commit 5a3f3d5

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
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

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Autocopr forked repo
22

3-
## For any issues or questions related to python scripts, please go to upstream repo.
3+
## For any issues or questions related to python scripts, please go to upstream repo
44

55
<details open>
66

0 commit comments

Comments
 (0)