diff --git a/.github/workflows/destroy-development.yml b/.github/workflows/destroy-development.yml index 63b2db0..7a0930c 100644 --- a/.github/workflows/destroy-development.yml +++ b/.github/workflows/destroy-development.yml @@ -23,6 +23,6 @@ jobs: terraform-folder: "terraform" terraform-var-file: "tfvars/dev.tfvars" terraform-backend-file: "backends/dev.backend.hcl" - AZURE_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - AZURE_TENANT_ID: ${{ env.AZURE_TENANT_ID }} - AZURE_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} + AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} + AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} diff --git a/.github/workflows/feature-development.yml b/.github/workflows/feature-development.yml index 06695fc..9e20ba9 100644 --- a/.github/workflows/feature-development.yml +++ b/.github/workflows/feature-development.yml @@ -52,9 +52,9 @@ jobs: terraform-folder: "terraform" terraform-var-file: "tfvars/dev.tfvars" terraform-backend-file: "backends/dev.backend.hcl" - AZURE_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - AZURE_TENANT_ID: ${{ env.AZURE_TENANT_ID }} - AZURE_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} + AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} + AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} - id: terraform-output shell: bash @@ -62,9 +62,9 @@ jobs: cd terraform echo "function_app_name=$(terraform output -raw function_app_name)" >> $GITHUB_OUTPUT env: - ARM_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - ARM_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} - ARM_TENANT_ID: ${{ env.AZURE_TENANT_ID }} + ARM_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + ARM_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} + ARM_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} ARM_USE_AZUREAD: true ARM_USE_OIDC: true @@ -86,6 +86,6 @@ jobs: with: function-app-artifact-name: "event-ingest-func" function-app-name: ${{ needs.terraform-plan-and-apply-dev.outputs.function_app_name }} - AZURE_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - AZURE_TENANT_ID: ${{ env.AZURE_TENANT_ID }} - AZURE_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} + AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} + AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} diff --git a/.github/workflows/pull-request-validation.yml b/.github/workflows/pull-request-validation.yml index 4d94254..64cc7af 100644 --- a/.github/workflows/pull-request-validation.yml +++ b/.github/workflows/pull-request-validation.yml @@ -49,9 +49,9 @@ jobs: terraform-folder: "terraform" terraform-var-file: "tfvars/dev.tfvars" terraform-backend-file: "backends/dev.backend.hcl" - AZURE_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - AZURE_TENANT_ID: ${{ env.AZURE_TENANT_ID }} - AZURE_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} + AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} + AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} - id: terraform-output shell: bash @@ -59,9 +59,9 @@ jobs: cd terraform echo "function_app_name=$(terraform output -raw function_app_name)" >> $GITHUB_OUTPUT env: - ARM_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - ARM_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} - ARM_TENANT_ID: ${{ env.AZURE_TENANT_ID }} + ARM_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + ARM_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} + ARM_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} ARM_USE_AZUREAD: true ARM_USE_OIDC: true @@ -83,9 +83,9 @@ jobs: with: function-app-artifact-name: "event-ingest-func" function-app-name: ${{ needs.terraform-plan-and-apply-dev.outputs.function_app_name }} - AZURE_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - AZURE_TENANT_ID: ${{ env.AZURE_TENANT_ID }} - AZURE_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} + AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} + AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} terraform-plan-prd: if: github.actor != 'dependabot[bot]' # dependabot context has no permissions to prod so skip this check @@ -104,6 +104,6 @@ jobs: terraform-folder: "terraform" terraform-var-file: "tfvars/prd.tfvars" terraform-backend-file: "backends/prd.backend.hcl" - AZURE_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - AZURE_TENANT_ID: ${{ env.AZURE_TENANT_ID }} - AZURE_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} + AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} + AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} diff --git a/.github/workflows/release-to-production.yml b/.github/workflows/release-to-production.yml index bfa83ef..a554beb 100644 --- a/.github/workflows/release-to-production.yml +++ b/.github/workflows/release-to-production.yml @@ -57,9 +57,9 @@ jobs: terraform-folder: "terraform" terraform-var-file: "tfvars/dev.tfvars" terraform-backend-file: "backends/dev.backend.hcl" - AZURE_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - AZURE_TENANT_ID: ${{ env.AZURE_TENANT_ID }} - AZURE_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} + AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} + AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} - id: terraform-output shell: bash @@ -67,9 +67,9 @@ jobs: cd terraform echo "function_app_name=$(terraform output -raw function_app_name)" >> $GITHUB_OUTPUT env: - ARM_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - ARM_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} - ARM_TENANT_ID: ${{ env.AZURE_TENANT_ID }} + ARM_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + ARM_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} + ARM_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} ARM_USE_AZUREAD: true ARM_USE_OIDC: true @@ -91,9 +91,9 @@ jobs: with: function-app-artifact-name: "event-ingest-func" function-app-name: ${{ needs.terraform-plan-and-apply-dev.outputs.function_app_name }} - AZURE_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - AZURE_TENANT_ID: ${{ env.AZURE_TENANT_ID }} - AZURE_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} + AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} + AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} terraform-plan-and-apply-prd: environment: Production @@ -111,9 +111,9 @@ jobs: terraform-folder: "terraform" terraform-var-file: "tfvars/prd.tfvars" terraform-backend-file: "backends/prd.backend.hcl" - AZURE_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - AZURE_TENANT_ID: ${{ env.AZURE_TENANT_ID }} - AZURE_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} + AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} + AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} - id: terraform-output shell: bash @@ -121,9 +121,9 @@ jobs: cd terraform echo "function_app_name=$(terraform output -raw function_app_name)" >> $GITHUB_OUTPUT env: - ARM_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - ARM_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} - ARM_TENANT_ID: ${{ env.AZURE_TENANT_ID }} + ARM_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + ARM_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} + ARM_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} ARM_USE_AZUREAD: true ARM_USE_OIDC: true @@ -145,6 +145,6 @@ jobs: with: function-app-artifact-name: "event-ingest-func" function-app-name: ${{ needs.terraform-plan-and-apply-prd.outputs.function_app_name }} - AZURE_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - AZURE_TENANT_ID: ${{ env.AZURE_TENANT_ID }} - AZURE_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} + AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} + AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} diff --git a/.github/workflows/update-dashboard-from-staging.yml b/.github/workflows/update-dashboard-from-staging.yml index 691aa71..c3d36bc 100644 --- a/.github/workflows/update-dashboard-from-staging.yml +++ b/.github/workflows/update-dashboard-from-staging.yml @@ -22,18 +22,18 @@ jobs: - name: 'Az CLI Login' uses: azure/login@v2 with: - client-id: ${{ env.AZURE_CLIENT_ID }} - tenant-id: ${{ env.AZURE_TENANT_ID }} - subscription-id: ${{ env.AZURE_SUBSCRIPTION_ID }} + client-id: ${{ vars.AZURE_CLIENT_ID }} + tenant-id: ${{ vars.AZURE_TENANT_ID }} + subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }} - uses: frasermolyneux/actions/terraform-plan@main with: terraform-folder: "terraform" terraform-var-file: "tfvars/dev.tfvars" terraform-backend-file: "backends/dev.backend.hcl" - AZURE_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - AZURE_TENANT_ID: ${{ env.AZURE_TENANT_ID }} - AZURE_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} + AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} + AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} - id: terraform-output shell: bash @@ -42,9 +42,9 @@ jobs: echo "resource_group_name=$(terraform output -raw resource_group_name)" >> $GITHUB_OUTPUT echo "staging_dashboard_name=$(terraform output -raw staging_dashboard_name)" >> $GITHUB_OUTPUT env: - ARM_CLIENT_ID: ${{ env.AZURE_CLIENT_ID }} - ARM_SUBSCRIPTION_ID: ${{ env.AZURE_SUBSCRIPTION_ID }} - ARM_TENANT_ID: ${{ env.AZURE_TENANT_ID }} + ARM_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} + ARM_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} + ARM_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} ARM_USE_AZUREAD: true ARM_USE_OIDC: true