@@ -103,18 +103,24 @@ jobs:
103103 run : npm run lint:pkg-json
104104
105105 - name : Detect ESLint coding standard violations
106- if : github.event.pull_request.head.repo.fork == true
106+ if : >
107+ github.event.pull_request.head.repo.fork == true ||
108+ github.event.pull_request.user.login == 'dependabot'
107109 run : npm run lint:js
108110
109111 - name : Generate ESLint coding standard violations report
110- # Prevent generating the ESLint report if run from a PR fork
111- if : github.event.pull_request.head.repo.fork == false
112+ # Prevent generating the ESLint report if PR is from a fork or authored by Dependabot.
113+ if : >
114+ ! ( github.event.pull_request.head.repo.fork == true ||
115+ github.event.pull_request.user.login == 'dependabot' )
112116 run : npm run lint:js:report
113117 continue-on-error : true
114118
115119 - name : Annotate code linting results
116- # The action cannot annotate the PR diff when run from a PR fork
117- if : github.event.pull_request.head.repo.fork == false
120+ # The action cannot annotate the PR when run from a PR fork or was authored by Dependabot.
121+ if : >
122+ ! ( github.event.pull_request.head.repo.fork == true ||
123+ github.event.pull_request.user.login == 'dependabot' )
118124119125 with :
120126 repo-token : ' ${{ secrets.GITHUB_TOKEN }}'
@@ -657,8 +663,11 @@ jobs:
657663
658664 build-zip :
659665 name : ' Build: ${{ matrix.build }} build ZIP'
660- # Only run if it is not a draft PR and the PR is not from a forked repository.
661- if : ( github.event.pull_request.draft || github.event.pull_request.head.repo.fork ) == false
666+ # Only run if the PR was not authored by Dependabot and it is not a draft or not from a fork.
667+ if : >
668+ github.event.pull_request.draft == false &&
669+ github.event.pull_request.head.repo.fork == false &&
670+ github.event.pull_request.user.login != 'dependabot'
662671 runs-on : ubuntu-latest
663672 needs :
664673 - lint-css
0 commit comments