Skip to content

Bump hashicorp/azurerm from 3.105.0 to 4.2.0 #5

Bump hashicorp/azurerm from 3.105.0 to 4.2.0

Bump hashicorp/azurerm from 3.105.0 to 4.2.0 #5

Workflow file for this run

name: 'Main'
concurrency:
group: build-and-test
on:
push:
branches:
- "main"
paths:
- ".github/workflows/main.yml"
- "**.tf*"
pull_request:
branches:
- "main"
paths:
- ".github/workflows/main.yml"
- "**.tf*"
permissions:
contents: read
id-token: write
jobs:
terraform:
name: 'Terraform'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
env:
# Terraform
TF_IN_AUTOMATION: "true"
TF_CLI_ARGS_init: "-input=false -no-color"
TF_CLI_ARGS_apply: "-auto-approve -input=false -no-color"
TF_CLI_ARGS_plan: "-input=false -no-color"
# Azure
ARM_CLIENT_ID: "${{ secrets.AZURE_CLIENT_ID }}"
ARM_SUBSCRIPTION_ID: "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
ARM_TENANT_ID: "${{ secrets.AZURE_TENANT_ID }}"
ARM_USE_AZUREAD: true
ARM_USE_OIDC: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: '>= 1.5'
- name: Terraform Init
run: terraform init
- name: Terraform Format
run: terraform fmt -check
- name: Terraform Plan
run: terraform plan
- name: Terraform Apply
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: terraform apply