megalinter: upload-sarif needs more permissons?
https://github.com/github/codeql-action/issues/1806
This commit is contained in:
parent
056494c9dc
commit
6309fc5a37
1 changed files with 2 additions and 1 deletions
3
.github/workflows/mega-linter.yml
vendored
3
.github/workflows/mega-linter.yml
vendored
|
|
@ -48,6 +48,7 @@ jobs:
|
||||||
contents: write
|
contents: write
|
||||||
issues: write
|
issues: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
security-events: write # needed for SARIF upload
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Git Checkout
|
# Git Checkout
|
||||||
|
|
@ -200,6 +201,6 @@ jobs:
|
||||||
# https://megalinter.io/latest/reporters/SarifReporter/
|
# https://megalinter.io/latest/reporters/SarifReporter/
|
||||||
- name: Upload MegaLinter scan results to GitHub Security tab
|
- name: Upload MegaLinter scan results to GitHub Security tab
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
sarif_file: "megalinter-reports/megalinter-report.sarif"
|
sarif_file: "megalinter-reports/megalinter-report.sarif"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue