Skip to main content
In Backendless mode, drift detection runs in GitHub Actions and sends notifications directly from the workflow run.

Configure Slack webhook input

Pass drift-detection-slack-notification-url to the action:
name: Drift Detection

on:
  workflow_dispatch:
  # schedule:
  #   - cron: "0 0 * * *"

jobs:
  detect-drift:
    runs-on: ubuntu-latest
    steps:
      - name: digger drift detection
        uses: diggerhq/digger@vLatest
        with:
          mode: drift-detection
          no-backend: true
          drift-detection-slack-notification-url: ${{ secrets.SLACK_WEBHOOK_URL }}
        env:
          GITHUB_CONTEXT: ${{ toJson(github) }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}