Skip to content

Commit

Permalink
Infra: Implement discord notification for failed CVE checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean committed Jan 3, 2025
1 parent dc2c207 commit 0b3da7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ jobs:
uses: ./.github/workflows/infra_discord_hook.yml
with:
message: "Achtung! CVE checks run failed!"
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL_CVE }}
secrets:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL_CVE }}
7 changes: 3 additions & 4 deletions .github/workflows/infra_discord_hook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ on:
description: 'Message text'
required: true
type: string
webhook_url:
description: 'Webhook url'
secrets:
DISCORD_WEBHOOK_URL:
required: true
type: string

permissions:
contents: read
Expand All @@ -25,4 +24,4 @@ jobs:
with:
args: ${{ inputs.message }}
env:
DISCORD_WEBHOOK: ${{ inputs.webhook_url }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}

0 comments on commit 0b3da7d

Please sign in to comment.