From 23a2aa8c845b61e8de812841fb2c94b79eff581c Mon Sep 17 00:00:00 2001 From: Kevin van Zonneveld Date: Mon, 8 Jun 2026 12:15:53 +0200 Subject: [PATCH 1/2] Replace Slack notification action --- .github/workflows/tests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5d699c2..ac03e14 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -62,8 +62,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: 8398a7/action-slack@v3 - with: - status: failure + - name: Send Slack notification 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 1a5d0cf9b33e7cd7b208857d5ce5857d15a19a57 Mon Sep 17 00:00:00 2001 From: Kevin van Zonneveld Date: Mon, 8 Jun 2026 14:41:44 +0200 Subject: [PATCH 2/2] Harden GitHub Action references --- .github/workflows/tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ac03e14..e1c0637 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,10 +26,10 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v5 with: java-version: ${{ matrix.java }} distribution: 'adopt' @@ -37,7 +37,7 @@ jobs: # This allows us to test Smart CDN Signatures against the Node SDK reference # implementation for parity. - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24 @@ -52,7 +52,7 @@ jobs: - name: Upload coverage to Codecov if: matrix.java == '11' - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6.0.2 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}