From 43e9fe041f5609317937804ee01fc0c2a96b2446 Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 1 Dec 2026 18:22:58 +0100 Subject: [PATCH] Added sending notification via webhook --- .gitea/workflows/pip-audit.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitea/workflows/pip-audit.yaml b/.gitea/workflows/pip-audit.yaml index b131169..c1f1661 100644 --- a/.gitea/workflows/pip-audit.yaml +++ b/.gitea/workflows/pip-audit.yaml @@ -76,3 +76,14 @@ jobs: with smtplib.SMTP("127.0.0.1", 25, timeout=30) as s: s.send_message(msg) EOF + - name: Send notification via webhook + if: ${{ always() }} + env: + REPO: ${{ gitea.repository }} + RUN_URL: ${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }} + run: | + send-notification \ + --config /var/lib/gitea-runner-local/config \ + --category utility \ + --link "$RUN_URL" \ + "Pip audit detected a problem" "$REPO" \ No newline at end of file