diff --git a/alz/github/actions/bicep-classic/templates/actions/bicep-deploy/action.yaml b/alz/github/actions/bicep-classic/templates/actions/bicep-deploy/action.yaml index e0750447..90da8cce 100644 --- a/alz/github/actions/bicep-classic/templates/actions/bicep-deploy/action.yaml +++ b/alz/github/actions/bicep-classic/templates/actions/bicep-deploy/action.yaml @@ -40,7 +40,7 @@ runs: using: "composite" steps: - name: Run Bicep Deploy - uses: azure/powershell@v2 + uses: azure/powershell@f5b8adcfff1904872c7b98d4012d4914d74b1a82 # v3.0.0 with: azPSVersion: 'latest' inlineScript: | diff --git a/alz/github/actions/bicep-classic/templates/actions/bicep-destroy/action.yaml b/alz/github/actions/bicep-classic/templates/actions/bicep-destroy/action.yaml index 35b64e6b..32e1608e 100644 --- a/alz/github/actions/bicep-classic/templates/actions/bicep-destroy/action.yaml +++ b/alz/github/actions/bicep-classic/templates/actions/bicep-destroy/action.yaml @@ -10,7 +10,7 @@ runs: using: "composite" steps: - name: Run Bicep Deploy - uses: azure/powershell@v2 + uses: azure/powershell@f5b8adcfff1904872c7b98d4012d4914d74b1a82 # v3.0.0 with: azPSVersion: 'latest' inlineScript: ./${destroy_script_path} -WhatIfEnabled $$${{ inputs.whatIfEnabled }} diff --git a/alz/github/actions/bicep-classic/templates/actions/bicep-first-deployment-check/action.yaml b/alz/github/actions/bicep-classic/templates/actions/bicep-first-deployment-check/action.yaml index 4cd27d24..6d927eb0 100644 --- a/alz/github/actions/bicep-classic/templates/actions/bicep-first-deployment-check/action.yaml +++ b/alz/github/actions/bicep-classic/templates/actions/bicep-first-deployment-check/action.yaml @@ -11,7 +11,7 @@ runs: steps: - name: First Deployment Check id: firstDeployment - uses: azure/powershell@v2 + uses: azure/powershell@f5b8adcfff1904872c7b98d4012d4914d74b1a82 # v3.0.0 with: azPSVersion: 'latest' inlineScript: | diff --git a/alz/github/actions/bicep-classic/templates/actions/bicep-installer/action.yaml b/alz/github/actions/bicep-classic/templates/actions/bicep-installer/action.yaml index c9cb3f9c..89caf94e 100644 --- a/alz/github/actions/bicep-classic/templates/actions/bicep-installer/action.yaml +++ b/alz/github/actions/bicep-classic/templates/actions/bicep-installer/action.yaml @@ -27,7 +27,7 @@ runs: shell: pwsh - name: Upgrade AZ PowerShell - uses: azure/powershell@v2 + uses: azure/powershell@f5b8adcfff1904872c7b98d4012d4914d74b1a82 # v3.0.0 if: $${{ env.runPowerShellAzUpgrade == 'true' }} with: azPSVersion: '$${{ env.latestPowerShellAzVersion }}' diff --git a/alz/github/actions/bicep-classic/templates/workflows/cd-template.yaml b/alz/github/actions/bicep-classic/templates/workflows/cd-template.yaml index 87c464cc..4ad18691 100644 --- a/alz/github/actions/bicep-classic/templates/workflows/cd-template.yaml +++ b/alz/github/actions/bicep-classic/templates/workflows/cd-template.yaml @@ -36,7 +36,7 @@ jobs: shell: pwsh - name: Checkout Bicep Module - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Get Bicep Variables uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-variables@main @@ -59,7 +59,7 @@ jobs: uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-installer@main - name: OIDC Login to Tenant - uses: azure/login@v2 + uses: azure/login@a641126d1b8aa4d1fa005f4f92df94a3a4c4c906 # v3.1.0 with: client-id: $${{ vars.AZURE_CLIENT_ID }} tenant-id: $${{ vars.AZURE_TENANT_ID }} @@ -118,7 +118,7 @@ jobs: shell: pwsh - name: Checkout Bicep Module - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Get Bicep Variables uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-variables@main @@ -141,7 +141,7 @@ jobs: uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-installer@main - name: OIDC Login to Tenant - uses: azure/login@v2 + uses: azure/login@a641126d1b8aa4d1fa005f4f92df94a3a4c4c906 # v3.1.0 with: client-id: $${{ vars.AZURE_CLIENT_ID }} tenant-id: $${{ vars.AZURE_TENANT_ID }} diff --git a/alz/github/actions/bicep-classic/templates/workflows/ci-template.yaml b/alz/github/actions/bicep-classic/templates/workflows/ci-template.yaml index 23c5d588..e7a832aa 100644 --- a/alz/github/actions/bicep-classic/templates/workflows/ci-template.yaml +++ b/alz/github/actions/bicep-classic/templates/workflows/ci-template.yaml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout Bicep Module - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Install Bicep and Update Az Module uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-installer@main @@ -72,7 +72,7 @@ jobs: steps: - name: Checkout Bicep Module - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Get Bicep Variables uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-variables@main @@ -94,7 +94,7 @@ jobs: uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-installer@main - name: OIDC Login to Tenant - uses: azure/login@v2 + uses: azure/login@a641126d1b8aa4d1fa005f4f92df94a3a4c4c906 # v3.1.0 with: client-id: $${{ vars.AZURE_CLIENT_ID }} tenant-id: $${{ vars.AZURE_TENANT_ID }} diff --git a/alz/github/actions/bicep/templates/actions/bicep-deploy/action.yaml b/alz/github/actions/bicep/templates/actions/bicep-deploy/action.yaml index 22b85b58..6aa5c8e4 100644 --- a/alz/github/actions/bicep/templates/actions/bicep-deploy/action.yaml +++ b/alz/github/actions/bicep/templates/actions/bicep-deploy/action.yaml @@ -39,7 +39,7 @@ runs: using: "composite" steps: - name: Run Bicep Deploy with Deployment Stack - uses: azure/powershell@v2 + uses: azure/powershell@f5b8adcfff1904872c7b98d4012d4914d74b1a82 # v3.0.0 with: azPSVersion: 'latest' inlineScript: | diff --git a/alz/github/actions/bicep/templates/actions/bicep-first-deployment-check/action.yaml b/alz/github/actions/bicep/templates/actions/bicep-first-deployment-check/action.yaml index adc9743b..e43e8849 100644 --- a/alz/github/actions/bicep/templates/actions/bicep-first-deployment-check/action.yaml +++ b/alz/github/actions/bicep/templates/actions/bicep-first-deployment-check/action.yaml @@ -11,7 +11,7 @@ runs: steps: - name: First Deployment Check id: firstDeployment - uses: azure/powershell@v2 + uses: azure/powershell@f5b8adcfff1904872c7b98d4012d4914d74b1a82 # v3.0.0 with: azPSVersion: 'latest' inlineScript: | diff --git a/alz/github/actions/bicep/templates/actions/bicep-installer/action.yaml b/alz/github/actions/bicep/templates/actions/bicep-installer/action.yaml index c9cb3f9c..89caf94e 100644 --- a/alz/github/actions/bicep/templates/actions/bicep-installer/action.yaml +++ b/alz/github/actions/bicep/templates/actions/bicep-installer/action.yaml @@ -27,7 +27,7 @@ runs: shell: pwsh - name: Upgrade AZ PowerShell - uses: azure/powershell@v2 + uses: azure/powershell@f5b8adcfff1904872c7b98d4012d4914d74b1a82 # v3.0.0 if: $${{ env.runPowerShellAzUpgrade == 'true' }} with: azPSVersion: '$${{ env.latestPowerShellAzVersion }}' diff --git a/alz/github/actions/bicep/templates/actions/bicep-variables/action.yaml b/alz/github/actions/bicep/templates/actions/bicep-variables/action.yaml index 038c768b..5b0ba07e 100644 --- a/alz/github/actions/bicep/templates/actions/bicep-variables/action.yaml +++ b/alz/github/actions/bicep/templates/actions/bicep-variables/action.yaml @@ -11,7 +11,7 @@ runs: using: "composite" steps: - name: Get Variables from parameters.json - uses: azure/powershell@v2 + uses: azure/powershell@f5b8adcfff1904872c7b98d4012d4914d74b1a82 # v3.0.0 with: azPSVersion: 'latest' inlineScript: | diff --git a/alz/github/actions/bicep/templates/workflows/cd-template.yaml b/alz/github/actions/bicep/templates/workflows/cd-template.yaml index 302261ff..86873196 100644 --- a/alz/github/actions/bicep/templates/workflows/cd-template.yaml +++ b/alz/github/actions/bicep/templates/workflows/cd-template.yaml @@ -33,7 +33,7 @@ jobs: shell: pwsh - name: Checkout Bicep Module - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Get Bicep Variables uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-variables@main @@ -44,7 +44,7 @@ jobs: uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-installer@main - name: OIDC Login to Tenant - uses: azure/login@v2 + uses: azure/login@a641126d1b8aa4d1fa005f4f92df94a3a4c4c906 # v3.1.0 with: client-id: $${{ vars.AZURE_CLIENT_ID }} tenant-id: $${{ vars.AZURE_TENANT_ID }} @@ -95,7 +95,7 @@ jobs: shell: pwsh - name: Checkout Bicep Module - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Get Bicep Variables uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-variables@main @@ -106,7 +106,7 @@ jobs: uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-installer@main - name: OIDC Login to Tenant - uses: azure/login@v2 + uses: azure/login@a641126d1b8aa4d1fa005f4f92df94a3a4c4c906 # v3.1.0 with: client-id: $${{ vars.AZURE_CLIENT_ID }} tenant-id: $${{ vars.AZURE_TENANT_ID }} diff --git a/alz/github/actions/bicep/templates/workflows/ci-template.yaml b/alz/github/actions/bicep/templates/workflows/ci-template.yaml index bc438654..0820a692 100644 --- a/alz/github/actions/bicep/templates/workflows/ci-template.yaml +++ b/alz/github/actions/bicep/templates/workflows/ci-template.yaml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout Bicep Module - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Install Bicep and Update Az Module uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-installer@main @@ -54,7 +54,7 @@ jobs: steps: - name: Checkout Bicep Module - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Get Bicep Variables uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-variables@main @@ -65,7 +65,7 @@ jobs: uses: ${project_or_organization_name}/${repository_name_templates}/.github/actions/bicep-installer@main - name: OIDC Login to Tenant - uses: azure/login@v2 + uses: azure/login@a641126d1b8aa4d1fa005f4f92df94a3a4c4c906 # v3.1.0 with: client-id: $${{ vars.AZURE_CLIENT_ID }} tenant-id: $${{ vars.AZURE_TENANT_ID }} diff --git a/alz/github/actions/terraform/templates/workflows/cd-template.yaml b/alz/github/actions/terraform/templates/workflows/cd-template.yaml index 6ddb1908..65b0e78b 100644 --- a/alz/github/actions/terraform/templates/workflows/cd-template.yaml +++ b/alz/github/actions/terraform/templates/workflows/cd-template.yaml @@ -35,10 +35,10 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Install Terraform - uses: hashicorp/setup-terraform@v3 + uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1 with: terraform_wrapper: false terraform_version: $${{ inputs.terraform_cli_version }} @@ -78,7 +78,7 @@ jobs: shell: pwsh - name: Publish Module Artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: module path: ./staging/ @@ -110,12 +110,12 @@ jobs: steps: - name: Download a Build Artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: module - name: Install Terraform - uses: hashicorp/setup-terraform@v3 + uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1 with: terraform_wrapper: false terraform_version: $${{ inputs.terraform_cli_version }} diff --git a/alz/github/actions/terraform/templates/workflows/ci-template.yaml b/alz/github/actions/terraform/templates/workflows/ci-template.yaml index e3b3a75f..b133467f 100644 --- a/alz/github/actions/terraform/templates/workflows/ci-template.yaml +++ b/alz/github/actions/terraform/templates/workflows/ci-template.yaml @@ -20,10 +20,10 @@ jobs: environment: ${environment_name_plan} steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Install Terraform - uses: hashicorp/setup-terraform@v3 + uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1 with: terraform_wrapper: false terraform_version: $${{ inputs.terraform_cli_version }} @@ -71,10 +71,10 @@ jobs: ARM_USE_OIDC: true steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Install Terraform - uses: hashicorp/setup-terraform@v3 + uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1 with: terraform_wrapper: false terraform_version: $${{ inputs.terraform_cli_version }} @@ -99,7 +99,7 @@ jobs: - name: Update Pull Request if: (success() || failure()) && github.event_name == 'pull_request' - uses: actions/github-script@v6 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: github-token: $${{ secrets.GITHUB_TOKEN }} script: |