Skip to content

Commit dc79c53

Browse files
committed
Avoid uploading eslint sarif for dependabot PR
Dependabot does not have `security-events: write` permission.
1 parent 59f3205 commit dc79c53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
npm run lint-ci
104104
105105
- name: Upload ESLint results to Code Scanning
106-
if: "${{ !cancelled() }}"
106+
if: "${{ !cancelled() && !startsWith(github.head_ref, 'dependabot/')}}"
107107
uses: github/codeql-action/upload-sarif@main
108108
with:
109109
sarif_file: extensions/ql-vscode/build/eslint.sarif

0 commit comments

Comments
 (0)