Avoid uploading eslint sarif for dependabot PR
Dependabot does not have `security-events: write` permission.s
This commit is contained in:
parent
ef130516b1
commit
9580b7e6d5
1 changed files with 1 additions and 1 deletions
2
.github/workflows/pr-checks.yml
vendored
2
.github/workflows/pr-checks.yml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
|||
- name: Upload sarif
|
||||
uses: github/codeql-action/upload-sarif@v3
|
||||
# Only upload SARIF for the latest version of Node.js
|
||||
if: "always() && matrix.node-types-version == 'current'"
|
||||
if: "always() && matrix.node-types-version == 'current' && !startsWith(github.head_ref, 'dependabot/')"
|
||||
with:
|
||||
sarif_file: eslint.sarif
|
||||
category: eslint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue