From 302f0109ddde27a6cecdfa9b3bf97b74531ba0b6 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 15 Aug 2021 02:37:19 -0700 Subject: [PATCH] Use standardized repository secret name for Slack webhook The "Check Certificates" workflow is configured to send a notification via Slack if a problem is found with a certificate. TThis is currently posted to the `team_tooling` channel, but that is not necessarily always going to be the case, and for every deployment of the workflow. So a less specific secret name is more universally applicable to serve all applications of this "template" workflow. --- .github/workflows/check-certificates.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-certificates.yml b/.github/workflows/check-certificates.yml index 975574f8..5496cf8d 100644 --- a/.github/workflows/check-certificates.yml +++ b/.github/workflows/check-certificates.yml @@ -67,7 +67,7 @@ jobs: - name: Slack notification of certificate verification failure if: failure() env: - SLACK_WEBHOOK: ${{ secrets.TEAM_TOOLING_CHANNEL_SLACK_WEBHOOK }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} SLACK_MESSAGE: | :warning::warning::warning::warning: WARNING: ${{ github.repository }} ${{ matrix.certificate.identifier }} verification failed!!! @@ -121,7 +121,7 @@ jobs: # Don't send spurious expiration notification if verification fails. if: failure() && steps.check-expiration.outcome == 'failure' env: - SLACK_WEBHOOK: ${{ secrets.TEAM_TOOLING_CHANNEL_SLACK_WEBHOOK }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} SLACK_MESSAGE: | :warning::warning::warning::warning: WARNING: ${{ github.repository }} ${{ matrix.certificate.identifier }} will expire in ${{ steps.get-days-before-expiration.outputs.days }} days!!!