diff --git a/.github/workflows/drift.yml b/.github/workflows/drift.yml new file mode 100644 index 0000000..ce10aee --- /dev/null +++ b/.github/workflows/drift.yml @@ -0,0 +1,12 @@ +name: 'Drift Detection' + +on: + schedule: + - cron: '*/5 * * * *' +jobs: + detect_drift: + uses: ./.github/workflows/terraform.yml + permissions: + contents: read + id-token: write + pull-requests: write \ No newline at end of file diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index a00aec2..d7936da 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'main' ] pull_request: + workflow_call: permissions: contents: read