Skip to content

Send slack notification on failed pipeline. #5

Send slack notification on failed pipeline.

Send slack notification on failed pipeline. #5

Workflow file for this run

name: pipeline
on:
push:
branches:
- '*'
jobs:
security:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Notify
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}