From f0ae7319dc5715c51504cac2140cd9ae821aa622 Mon Sep 17 00:00:00 2001 From: PavelSBorisov Date: Mon, 25 Nov 2024 16:29:46 +0200 Subject: [PATCH 1/2] build(deps): bump slackapi/slack-github-action from 1.25.0 to 2.0.0 Signed-off-by: PavelSBorisov --- .github/workflows/node-zxc-build-release-artifact.yaml | 3 ++- .github/workflows/node-zxcron-release-branching.yaml | 3 ++- .github/workflows/zxcron-extended-test-suite.yaml | 3 ++- .github/workflows/zxcron-promote-build-candidate.yaml | 3 ++- .github/workflows/zxf-prepare-extended-test-suite.yaml | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node-zxc-build-release-artifact.yaml b/.github/workflows/node-zxc-build-release-artifact.yaml index d55d600bad8..987d2342efa 100644 --- a/.github/workflows/node-zxc-build-release-artifact.yaml +++ b/.github/workflows/node-zxc-build-release-artifact.yaml @@ -864,11 +864,12 @@ jobs: echo "artifact-registry=${ARTIFACT_REGISTRY}" >>"${GITHUB_OUTPUT}" - name: Send Slack Notification (Maven Central) - uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0 + uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 env: SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK SLACK_WEBHOOK_URL: ${{ secrets.slack-webhook-url }} with: + payload-templated: true payload: | { "attachments": [ diff --git a/.github/workflows/node-zxcron-release-branching.yaml b/.github/workflows/node-zxcron-release-branching.yaml index 1b61cc79f03..330af645f4a 100644 --- a/.github/workflows/node-zxcron-release-branching.yaml +++ b/.github/workflows/node-zxcron-release-branching.yaml @@ -140,11 +140,12 @@ jobs: run: echo "short-id=$(echo -n "${{ github.sha }}" | tr -d '[:space:]' | cut -c1-8)" >> "${GITHUB_OUTPUT}" - name: Send Slack Notification - uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0 + uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 env: SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_WEBHOOK }} with: + payload-templated: true payload: | { "attachments": [ diff --git a/.github/workflows/zxcron-extended-test-suite.yaml b/.github/workflows/zxcron-extended-test-suite.yaml index 09fee106d09..22793ddee11 100644 --- a/.github/workflows/zxcron-extended-test-suite.yaml +++ b/.github/workflows/zxcron-extended-test-suite.yaml @@ -285,11 +285,12 @@ jobs: path: run.log - name: Report failure (slack) - uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0 + uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 env: SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CITR_FAILURES_WEBHOOK }} with: + payload-templated: true payload: | { "attachments": [ diff --git a/.github/workflows/zxcron-promote-build-candidate.yaml b/.github/workflows/zxcron-promote-build-candidate.yaml index 2cef5d2a31a..61cb56f00a0 100644 --- a/.github/workflows/zxcron-promote-build-candidate.yaml +++ b/.github/workflows/zxcron-promote-build-candidate.yaml @@ -231,11 +231,12 @@ jobs: egress-policy: audit - name: Report failure (slack) - uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0 + uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 env: SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CITR_FAILURES_WEBHOOK }} with: + payload-templated: true payload: | { "attachments": [ diff --git a/.github/workflows/zxf-prepare-extended-test-suite.yaml b/.github/workflows/zxf-prepare-extended-test-suite.yaml index 12573878dbc..2a6bf085fa3 100644 --- a/.github/workflows/zxf-prepare-extended-test-suite.yaml +++ b/.github/workflows/zxf-prepare-extended-test-suite.yaml @@ -128,11 +128,12 @@ jobs: - name: Report failure if: ${{ !cancelled() && failure() && always() }} - uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0 + uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 env: SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CITR_FAILURES_WEBHOOK }} with: + payload-templated: true payload: | { "attachments": [ From a64a8686fb52714b8f322830ec555ba50e4e9a56 Mon Sep 17 00:00:00 2001 From: PavelSBorisov Date: Wed, 27 Nov 2024 11:40:57 +0200 Subject: [PATCH 2/2] fix: add webhook-type as step input value as required by new major version Signed-off-by: PavelSBorisov --- .../workflows/node-zxc-build-release-artifact.yaml | 5 ++--- .../workflows/node-zxcron-release-branching.yaml | 5 ++--- .github/workflows/zxcron-extended-test-suite.yaml | 5 ++--- .../workflows/zxcron-promote-build-candidate.yaml | 13 ++++++------- .../workflows/zxf-prepare-extended-test-suite.yaml | 5 ++--- 5 files changed, 14 insertions(+), 19 deletions(-) diff --git a/.github/workflows/node-zxc-build-release-artifact.yaml b/.github/workflows/node-zxc-build-release-artifact.yaml index 987d2342efa..fd97a9a9d58 100644 --- a/.github/workflows/node-zxc-build-release-artifact.yaml +++ b/.github/workflows/node-zxc-build-release-artifact.yaml @@ -865,10 +865,9 @@ jobs: - name: Send Slack Notification (Maven Central) uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 - env: - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - SLACK_WEBHOOK_URL: ${{ secrets.slack-webhook-url }} with: + webhook: ${{ secrets.slack-webhook-url }} + webhook-type: incoming-webhook payload-templated: true payload: | { diff --git a/.github/workflows/node-zxcron-release-branching.yaml b/.github/workflows/node-zxcron-release-branching.yaml index 330af645f4a..dab40bfa75a 100644 --- a/.github/workflows/node-zxcron-release-branching.yaml +++ b/.github/workflows/node-zxcron-release-branching.yaml @@ -141,10 +141,9 @@ jobs: - name: Send Slack Notification uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 - env: - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_WEBHOOK }} with: + webhook: ${{ secrets.SLACK_RELEASE_WEBHOOK }} + webhook-type: incoming-webhook payload-templated: true payload: | { diff --git a/.github/workflows/zxcron-extended-test-suite.yaml b/.github/workflows/zxcron-extended-test-suite.yaml index 22793ddee11..eeaf6a2db2f 100644 --- a/.github/workflows/zxcron-extended-test-suite.yaml +++ b/.github/workflows/zxcron-extended-test-suite.yaml @@ -286,10 +286,9 @@ jobs: - name: Report failure (slack) uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 - env: - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CITR_FAILURES_WEBHOOK }} with: + webhook: ${{ secrets.SLACK_CITR_FAILURES_WEBHOOK }} + webhook-type: incoming-webhook payload-templated: true payload: | { diff --git a/.github/workflows/zxcron-promote-build-candidate.yaml b/.github/workflows/zxcron-promote-build-candidate.yaml index 61cb56f00a0..115b6a1874b 100644 --- a/.github/workflows/zxcron-promote-build-candidate.yaml +++ b/.github/workflows/zxcron-promote-build-candidate.yaml @@ -165,11 +165,11 @@ jobs: egress-policy: audit - name: Report Promoted Build - uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0 - env: - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CITR_OPERATIONS_WEBHOOK }} + uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 with: + webhook: ${{ secrets.SLACK_CITR_OPERATIONS_WEBHOOK }} + webhook-type: incoming-webhook + payload-templated: true payload: | { "attachments": [ @@ -232,10 +232,9 @@ jobs: - name: Report failure (slack) uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 - env: - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CITR_FAILURES_WEBHOOK }} with: + webhook: ${{ secrets.SLACK_CITR_FAILURES_WEBHOOK }} + webhook-type: incoming-webhook payload-templated: true payload: | { diff --git a/.github/workflows/zxf-prepare-extended-test-suite.yaml b/.github/workflows/zxf-prepare-extended-test-suite.yaml index 2a6bf085fa3..e3f021b98eb 100644 --- a/.github/workflows/zxf-prepare-extended-test-suite.yaml +++ b/.github/workflows/zxf-prepare-extended-test-suite.yaml @@ -129,10 +129,9 @@ jobs: - name: Report failure if: ${{ !cancelled() && failure() && always() }} uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 - env: - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CITR_FAILURES_WEBHOOK }} with: + webhook: ${{ secrets.SLACK_CITR_FAILURES_WEBHOOK }} + webhook-type: incoming-webhook payload-templated: true payload: | {