From e7e721a490d65335eae1bc881de03a039abf2d6d Mon Sep 17 00:00:00 2001 From: Kevin van Zonneveld Date: Mon, 8 Jun 2026 12:16:03 +0200 Subject: [PATCH 1/2] Replace Slack notification action --- .github/workflows/transloaditkit-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/transloaditkit-ci.yml b/.github/workflows/transloaditkit-ci.yml index 9ed6f60..bc08c4e 100644 --- a/.github/workflows/transloaditkit-ci.yml +++ b/.github/workflows/transloaditkit-ci.yml @@ -14,9 +14,13 @@ jobs: run: swift build - name: Run tests run: swift test - - uses: 8398a7/action-slack@v3 + - name: Send Slack notification if: failure() && env.BRANCH == 'main' - with: - status: failure env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_TEXT: >- + ${{ github.workflow }} failed for ${{ github.repository }} on ${{ github.ref_name }}: + ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + run: | + node -e "process.stdout.write(JSON.stringify({ text: process.env.SLACK_TEXT }))" | + curl --fail-with-body -X POST -H 'Content-type: application/json' --data-binary @- "$SLACK_WEBHOOK_URL" From 6af4276631b9595890259f6eae3d2a8991bd4d90 Mon Sep 17 00:00:00 2001 From: Kevin van Zonneveld Date: Mon, 8 Jun 2026 14:41:51 +0200 Subject: [PATCH 2/2] Harden GitHub Action references --- .github/workflows/transloaditkit-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/transloaditkit-ci.yml b/.github/workflows/transloaditkit-ci.yml index bc08c4e..fe5269c 100644 --- a/.github/workflows/transloaditkit-ci.yml +++ b/.github/workflows/transloaditkit-ci.yml @@ -9,7 +9,7 @@ jobs: run: echo "BRANCH=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV - name: Get swift version run: swift --version - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: Build run: swift build - name: Run tests