Skip to content

Commit

Permalink
Avoid uploading eslint sarif for dependabot PR
Browse files Browse the repository at this point in the history
Dependabot does not have `security-events: write` permission.s
  • Loading branch information
aeisenberg committed Sep 23, 2024
1 parent ef13051 commit 9580b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9580b7e

Please sign in to comment.