Skip to content

Commit 9580b7e

Browse files
committed
Avoid uploading eslint sarif for dependabot PR
Dependabot does not have `security-events: write` permission.s
1 parent ef13051 commit 9580b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr-checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Upload sarif
3131
uses: github/codeql-action/upload-sarif@v3
3232
# Only upload SARIF for the latest version of Node.js
33-
if: "always() && matrix.node-types-version == 'current'"
33+
if: "always() && matrix.node-types-version == 'current' && !startsWith(github.head_ref, 'dependabot/')"
3434
with:
3535
sarif_file: eslint.sarif
3636
category: eslint

0 commit comments

Comments
 (0)