From 159fe6b28d37fe86376efbaf758317388b337d90 Mon Sep 17 00:00:00 2001 From: Stephan Renatus Date: Wed, 15 Apr 2026 09:15:30 +0200 Subject: [PATCH] workflows: fix nightly and release-vuln-check Signed-off-by: Stephan Renatus --- .github/workflows/nightly.yaml | 17 ++++++++++------- .../workflows/release-vulnerability-check.yaml | 5 ++++- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 5eb1a3ec2b..e706f83b7b 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -7,6 +7,9 @@ on: permissions: contents: read +env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + jobs: race-detector: name: Go Race Detector @@ -22,7 +25,7 @@ jobs: - name: Slack Notification uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 - if: ${{ failure() && secrets.SLACK_WEBHOOK_URL != '' }} # zizmor: ignore[secrets-outside-env] + if: failure() && env.SLACK_WEBHOOK_URL != '' with: webhook: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }} # zizmor: ignore[secrets-outside-env] webhook-type: incoming-webhook @@ -58,7 +61,7 @@ jobs: - name: Slack Notification uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 - if: ${{ failure() && secrets.SLACK_WEBHOOK_URL != '' }} # zizmor: ignore[secrets-outside-env] + if: failure() && env.SLACK_WEBHOOK_URL != '' with: webhook: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }} # zizmor: ignore[secrets-outside-env] webhook-type: incoming-webhook @@ -84,7 +87,7 @@ jobs: - name: Slack Notification uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 - if: ${{ failure() && secrets.SLACK_WEBHOOK_URL != '' }} # zizmor: ignore[secrets-outside-env] + if: failure() && env.SLACK_WEBHOOK_URL != '' with: webhook: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }} # zizmor: ignore[secrets-outside-env] webhook-type: incoming-webhook @@ -113,7 +116,7 @@ jobs: - name: Slack Notification uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 - if: ${{ failure() && secrets.SLACK_WEBHOOK_URL != '' }} # zizmor: ignore[secrets-outside-env] + if: failure() && env.SLACK_WEBHOOK_URL != '' with: webhook: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }} # zizmor: ignore[secrets-outside-env] webhook-type: incoming-webhook @@ -182,7 +185,7 @@ jobs: - name: Slack Notification uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 - if: ${{ failure() && secrets.SLACK_WEBHOOK_URL != '' }} # zizmor: ignore[secrets-outside-env] + if: failure() && env.SLACK_WEBHOOK_URL != '' with: webhook: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }} # zizmor: ignore[secrets-outside-env] webhook-type: incoming-webhook @@ -246,7 +249,7 @@ jobs: - name: Slack Notification uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 - if: ${{ failure() && secrets.SLACK_WEBHOOK_URL != '' }} # zizmor: ignore[secrets-outside-env] + if: failure() && env.SLACK_WEBHOOK_URL != '' with: webhook: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }} # zizmor: ignore[secrets-outside-env] webhook-type: incoming-webhook @@ -295,7 +298,7 @@ jobs: - name: Slack Notification uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 - if: ${{ failure() && secrets.SLACK_WEBHOOK_URL != '' }} # zizmor: ignore[secrets-outside-env] + if: failure() && env.SLACK_WEBHOOK_URL != '' with: webhook: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }} # zizmor: ignore[secrets-outside-env] webhook-type: incoming-webhook diff --git a/.github/workflows/release-vulnerability-check.yaml b/.github/workflows/release-vulnerability-check.yaml index 940d097c5e..4cf0c6911a 100644 --- a/.github/workflows/release-vulnerability-check.yaml +++ b/.github/workflows/release-vulnerability-check.yaml @@ -7,6 +7,9 @@ on: permissions: contents: read +env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + jobs: fetch-release-info: name: Fetch release information @@ -49,7 +52,7 @@ jobs: - name: Slack Notification uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1 - if: ${{ failure() && secrets.SLACK_WEBHOOK_URL != '' }} # zizmor: ignore[secrets-outside-env] + if: failure() && env.SLACK_WEBHOOK_URL != '' with: webhook: ${{ secrets.SLACK_NOTIFICATION_WEBHOOK }} # zizmor: ignore[secrets-outside-env] webhook-type: incoming-webhook