From 976a88d23fb2501b135dcd6e6c5c2a6d10949098 Mon Sep 17 00:00:00 2001 From: Mohamed Habib Date: Wed, 5 Jun 2024 16:57:29 +0100 Subject: [PATCH] Update drift.yml --- .github/workflows/drift.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/drift.yml b/.github/workflows/drift.yml index e69de29..bc7e6f6 100644 --- a/.github/workflows/drift.yml +++ b/.github/workflows/drift.yml @@ -0,0 +1,27 @@ +name: Drift Detection + +on: + workflow_dispatch: + #schedule: ## Schedule the job to run at 12.am daily. + # - cron: '0 0 * * *' + +jobs: + detect-drift: + runs-on: ubuntu-latest + steps: + - name: digger drift detection + uses: diggerhq/digger@veeee + with: + ee: 'true' + mode: drift-detection + setup-aws: true + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DIGGER_GITHUB_TOKEN: ${{ secrets.DIGGER_GITHUB_TOKEN }} + INPUT_DRIFT_GITHUB_ISSUES: 'true' + DIGGER_MANAGEMENT_REPO: "https://github.com/diggerhq/mgmt-repo-one" + DIGGER_LICENSE_KEY: ${{ secrets.DIGGER_LICENSE_KEY }}