From 0a87a7e1bce4c7d5e01e0cb3e3e94f542c6adca9 Mon Sep 17 00:00:00 2001 From: VimleshGupta Date: Tue, 14 Jan 2025 15:36:23 +0000 Subject: [PATCH] Fix terraform_check.yml --- .github/workflows/terraform_check.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terraform_check.yml b/.github/workflows/terraform_check.yml index 2ed4d6d..66951c9 100644 --- a/.github/workflows/terraform_check.yml +++ b/.github/workflows/terraform_check.yml @@ -13,5 +13,10 @@ jobs: message: ":warning: Secrets found in repository da-terraform-modules" slack-url: ${{ secrets.SLACK_WEBHOOK }} - name: Terraform Format - id: fmt - run: terraform fmt -check --recursive + uses: nationalarchives/tdr-github-actions/.github/workflows/terraform_check.yml@main + with: + use-workspace: false + terraform-version: 1.5.0 + secrets: + MANAGEMENT_ACCOUNT: ${{ secrets.MANAGEMENT_ACCOUNT }} + WORKFLOW_PAT: ${{ secrets.WORKFLOW_PAT }} \ No newline at end of file