From 98f9f323af5055a7ca997631e56edd190981b5bb Mon Sep 17 00:00:00 2001 From: Pavel Lonkin Date: Thu, 25 Jun 2026 18:35:44 +0200 Subject: [PATCH] fix(ci): skip PR Teams notification for Dependabot The build job's "Notify Microsoft Teams" step uses secrets.TEAMS_WEBHOOK_URL, which is empty on Dependabot PRs (Dependabot has no secret access), so curl fails with a malformed URL and the build job goes red on every Dependabot PR. Guard the notification steps (and the diff computation feeding them) with github.actor != 'dependabot[bot]' so Dependabot PRs no longer fail build. MPT-22665 --- .github/workflows/pr-build-merge.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-build-merge.yaml b/.github/workflows/pr-build-merge.yaml index b298b84..f6afe58 100644 --- a/.github/workflows/pr-build-merge.yaml +++ b/.github/workflows/pr-build-merge.yaml @@ -125,7 +125,7 @@ jobs: run: uv run pytest - name: Compute added/removed lines for notification - if: ${{ github.event_name == 'pull_request' }} + if: ${{ github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }} id: diff run: | PR_DATA=$(gh pr view "${{ github.event.pull_request.number }}" --json additions,deletions -q '.') @@ -137,7 +137,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Notify Microsoft Teams - if: ${{ github.event_name == 'pull_request' }} + if: ${{ github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }} uses: softwareone-platform/notify-pr-teams-action@v4 with: webhook_url: ${{ secrets.TEAMS_WEBHOOK_URL }}