From b55323667ebc1acc91affd1713711a0b3b894cd6 Mon Sep 17 00:00:00 2001 From: Nikita Pivkin Date: Tue, 22 Sep 2026 16:30:23 +0600 Subject: [PATCH] ci: replace Microsoft Teams failure alerts with Slack (#144) --- .github/workflows/cron.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 1692a84..40142e6 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -127,12 +127,12 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.PROD_AVD_SECRET_ACCESS_KEY }} AWS_REGION: us-east-1 - - name: Microsoft Teams Notification - uses: Skitionek/notify-microsoft-teams@e7a2493ac87dad8aa7a62f079f295e54ff511d88 + - name: Slack Notification + uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0 if: failure() with: - webhook_url: ${{ secrets.TRIVY_MSTEAMS_WEBHOOK }} - needs: ${{ toJson(needs) }} - job: ${{ toJson(job) }} - steps: ${{ toJson(steps) }} + webhook: ${{ secrets.TRIVY_SLACK_WEBHOOK }} + webhook-type: incoming-webhook + payload: | + text: ":x: *${{ github.workflow }}* workflow failed. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>"