From 5ecbd90f5c3bdd7a1eb50362351c45c42c930b83 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Date: Sat, 14 Dec 2024 16:20:19 +0000 Subject: [PATCH] pin slackapi/slack-github-action to v2.0.0 sha --- .github/workflows/ci.yml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b411e9e4b1068..ccff13a13a325 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -744,23 +744,16 @@ jobs: steps: - name: Notify Slack id: slack - uses: slackapi/slack-github-action@v1.27.0 + uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 with: - channel-id: 'internal-airflow-ci-cd' + token: ${{ env.SLACK_BOT_TOKEN }} # yamllint disable rule:line-length payload: | - { - "text": "🚨🕒 Scheduled CI Failure Alert 🕒🚨\n\n*Details:* ", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "🚨🕒 Scheduled CI Failure Alert 🕒🚨\n\n*Details:* " - } - } - ] - } + channel: "internal-airflow-ci-cd" + text: "🚨🕒 Scheduled CI Failure Alert 🕒🚨\n\n*Details:* " + blocks: + - type: "section" + text: + type: "mrkdwn" + text: "🚨🕒 Scheduled CI Failure Alert 🕒🚨\n\n*Details:* " # yamllint enable rule:line-length - env: - SLACK_BOT_TOKEN: ${{ env.SLACK_BOT_TOKEN }}