diff --git a/.github/workflows/greetings.md b/.github/workflows/greetings.md index 2ec445b..96a01de 100644 --- a/.github/workflows/greetings.md +++ b/.github/workflows/greetings.md @@ -34,8 +34,9 @@ Mainly using [First Interaction Action](https://github.com/actions/first-interac - On issue creation, a comment is added to the issue. - On first contribution from a branch in the same repository, a comment is added to the pull request. -Pull requests from forks are skipped because their `pull_request` token is read-only. -Callers do not need their own fork condition. Issue greetings remain enabled. +Pull requests from forks and runs triggered by Dependabot are skipped because +their `pull_request` token is read-only. Callers do not need their own conditions +for these pull requests. Issue greetings remain enabled. ### Permissions diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 237017e..dee4f51 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -4,8 +4,9 @@ # - On issue creation, a comment is added to the issue. # - On first contribution from a branch in the same repository, a comment is added to the pull request. # -# Pull requests from forks are skipped because their `pull_request` token is read-only. -# Callers do not need their own fork condition. Issue greetings remain enabled. +# Pull requests from forks and runs triggered by Dependabot are skipped because +# their `pull_request` token is read-only. Callers do not need their own conditions +# for these pull requests. Issue greetings remain enabled. name: Greetings @@ -50,7 +51,7 @@ permissions: {} jobs: greeting: - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository + if: github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') runs-on: ${{ inputs.runs-on && fromJson(inputs.runs-on) || 'ubuntu-latest' }} permissions: contents: read