Merge pull request #2499 from github/aeisenberg/no-upload-sarif

Avoid uploading eslint sarif for dependabot PR
This commit is contained in:
Andrew Eisenberg
2024-09-23 13:18:07 -07:00
committed by GitHub

View File

@@ -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: "!cancelled() && matrix.node-types-version == 'current' && !startsWith(github.head_ref, 'dependabot/')"
with:
sarif_file: eslint.sarif
category: eslint