From 3a7fedfcbe24cfee5116cbd2a0cfe8653ee071d6 Mon Sep 17 00:00:00 2001 From: Sergio Valverde Date: Sat, 16 Mar 2024 03:01:28 +0100 Subject: [PATCH] tf automation and github secrets --- .github/workflows/terraform.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index e475024..ef4e8d9 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -33,6 +33,9 @@ jobs: - name: Terraform Init, Format, and Plan run: make ci working-directory: apps/github-as-code + env: + TF_IN_AUTOMATION: "true" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # On push to "main", build or change infrastructure according to Terraform configuration files # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks @@ -40,3 +43,6 @@ jobs: if: github.ref == 'refs/heads/"main"' && github.event_name == 'push' run: make cd working-directory: apps/github-as-code + env: + TF_IN_AUTOMATION: "true" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}