From 16d9918ffc20562ee2c8e8ef95b7ec53d6a7bbdc Mon Sep 17 00:00:00 2001 From: adhl-0216 <113506757+adhl-0216@users.noreply.github.com> Date: Thu, 3 Apr 2025 21:39:06 +0000 Subject: [PATCH] Update sonarcloud.yml, slack integration [skip ci] --- .github/workflows/sonarcloud.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 305dabaea..886d1d6a6 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -52,8 +52,10 @@ jobs: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Send Slack Notification (SonarCloud Complete, Pending Docker Push Review) - uses: slackapi/slack-github-action@v1.24.0 + uses: slackapi/slack-github-action@v2.0.0 with: - slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }} - channel-id: 'ci-notifications' - text: "SonarCloud Analysis Complete: ${{ job.status }} for commit ${{ github.sha }}. Docker Hub push is pending review in GitHub Actions." + method: chat.postMessage + token: ${{ secrets.SLACK_BOT_TOKEN }} + payload: | + channel: ${{ secrets.SLACK_CI_CHANNEL_ID }} + text: "SonarCloud Analysis Complete: ${{ job.status }} for commit ${{ github.sha }}. Docker Hub push is pending review in GitHub Actions."