From b9b982281acfce5259ad6f20cc1c053cb5a56c9a Mon Sep 17 00:00:00 2001 From: Ella Bronson <111298136+ebronson68@users.noreply.github.com> Date: Tue, 8 Aug 2023 15:28:57 -0500 Subject: [PATCH] [DEVOPS-XXX] Switch to major release tags for GitHub Actions (#49) ## Description - Switching to major release tags for GitHub actions ## Related Issues - Jira Issue: N/A --- .github/workflows/aks-deploy.yaml | 14 +++++++------- .github/workflows/dependabot-automations.yaml | 4 ++-- .github/workflows/mega-lint.yaml | 4 ++-- .github/workflows/purge-cdn.yaml | 4 ++-- .github/workflows/template-sync.yml | 2 +- .github/workflows/update-addns.yaml | 4 ++-- .github/workflows/update-azureapimanagement.yaml | 6 +++--- .github/workflows/wpe-deploy.yaml | 2 +- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/aks-deploy.yaml b/.github/workflows/aks-deploy.yaml index ac09dad7..e5db6f58 100644 --- a/.github/workflows/aks-deploy.yaml +++ b/.github/workflows/aks-deploy.yaml @@ -220,7 +220,7 @@ jobs: environmentKeyVault: ${{ inputs.environmentKeyVault }} - name: Generate build args from Azure Key Vaults - uses: azure/powershell@v1.2.0 + uses: azure/powershell@v1 with: inlineScript: | if ("${{ inputs.environmentKeyVault }}") { @@ -248,7 +248,7 @@ jobs: azPSVersion: "latest" - name: Login to Azure Container Registry - uses: Azure/docker-login@v1.0.1 + uses: Azure/docker-login@v1 with: login-server: ${{ secrets.registryHostName }} username: ${{ secrets.registryUserName }} @@ -318,7 +318,7 @@ jobs: - name: Bake Helm Templates id: bake - uses: azure/k8s-bake@v2.4 + uses: azure/k8s-bake@v2 with: renderEngine: "helm" helmChart: ${{ inputs.chartsPath }} @@ -393,7 +393,7 @@ jobs: - name: Apply configMap if it exists if: ${{ needs.build.outputs.configMap != null }} - uses: swdotcom/update-and-apply-kubernetes-configs@v1.2.0 + uses: swdotcom/update-and-apply-kubernetes-configs@v1 with: k8-config-file-paths: deployments/k8s/config-${{ inputs.environment }}.yaml @@ -419,7 +419,7 @@ jobs: } - name: Create K8s Image Pull Secret - uses: Azure/k8s-create-secret@v4.0 + uses: Azure/k8s-create-secret@v4 with: container-registry-url: ${{ secrets.registryHostName }} container-registry-username: ${{ secrets.registryUserName }} @@ -428,7 +428,7 @@ jobs: - name: Deploy to Azure Kubernetes Service timeout-minutes: ${{ inputs.deploymentTimeout }} - uses: Azure/k8s-deploy@v4.9 + uses: Azure/k8s-deploy@v4 with: namespace: ${{ inputs.environment }} manifests: ${{ needs.build.outputs.manifestsBundle }} @@ -468,7 +468,7 @@ jobs: enable-AzPSSession: true - name: Create or Update Public DNS Record - uses: azure/powershell@v1.2.0 + uses: azure/powershell@v1 with: inlineScript: | $NewRecords = New-AzDnsRecordConfig -Cname "${{ secrets.azureClusterName }}-${{ inputs.environment }}-ingress.centralus.cloudapp.azure.com." diff --git a/.github/workflows/dependabot-automations.yaml b/.github/workflows/dependabot-automations.yaml index a61b98c2..959bd4ce 100644 --- a/.github/workflows/dependabot-automations.yaml +++ b/.github/workflows/dependabot-automations.yaml @@ -26,12 +26,12 @@ jobs: # will not occur. - name: Dependabot metadata id: dependabot-metadata - uses: dependabot/fetch-metadata@v1.3.1 + uses: dependabot/fetch-metadata@v1 with: github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Auto Approve Dependabot PRs - uses: hmarr/auto-approve-action@v2.0.0 + uses: hmarr/auto-approve-action@v3.2.1 if: ${{ inputs.autoApprove && github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' }} with: github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/mega-lint.yaml b/.github/workflows/mega-lint.yaml index d61493dc..c1ca0940 100644 --- a/.github/workflows/mega-lint.yaml +++ b/.github/workflows/mega-lint.yaml @@ -60,7 +60,7 @@ jobs: # Run the MegaLinter Github Action - name: MegaLinter id: ml - uses: oxsecurity/megalinter/flavors/cupcake@v6.20.1 + uses: oxsecurity/megalinter/flavors/cupcake@v7 env: VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'workflow_dispatch' }} GITHUB_TOKEN: ${{ secrets.PAT_ACTION_CI }} @@ -115,7 +115,7 @@ jobs: # Run the MegaLinter Github Action - name: MegaLinter id: ml - uses: oxsecurity/megalinter/flavors/dotnet@v6.20.1 + uses: oxsecurity/megalinter/flavors/dotnet@v7 env: VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'workflow_dispatch' }} GITHUB_TOKEN: ${{ secrets.PAT_ACTION_CI }} diff --git a/.github/workflows/purge-cdn.yaml b/.github/workflows/purge-cdn.yaml index 057df5d5..a056dba6 100644 --- a/.github/workflows/purge-cdn.yaml +++ b/.github/workflows/purge-cdn.yaml @@ -29,7 +29,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check inputs - uses: azure/powershell@v1.2.0 + uses: azure/powershell@v1 with: azPSVersion: "latest" inlineScript: | @@ -62,7 +62,7 @@ jobs: enable-AzPSSession: true - name: Purge CDN cache - uses: azure/powershell@v1.2.0 + uses: azure/powershell@v1 with: azPSVersion: "latest" inlineScript: | diff --git a/.github/workflows/template-sync.yml b/.github/workflows/template-sync.yml index 600fefae..4a7300be 100644 --- a/.github/workflows/template-sync.yml +++ b/.github/workflows/template-sync.yml @@ -21,7 +21,7 @@ jobs: token: ${{ secrets.PAT_ACTION_CI }} - name: actions-template-sync - uses: AndreasAugustin/actions-template-sync@v0.8.0 + uses: AndreasAugustin/actions-template-sync@v1.1.0 with: github_token: ${{ secrets.PAT_ACTION_CI }} source_repo_path: Andrews-McMeel-Universal/.github diff --git a/.github/workflows/update-addns.yaml b/.github/workflows/update-addns.yaml index 3a2c136e..26a08d99 100644 --- a/.github/workflows/update-addns.yaml +++ b/.github/workflows/update-addns.yaml @@ -38,7 +38,7 @@ jobs: steps: - name: Retrieve Application information id: getappinfo - uses: azure/powershell@v1.2.0 + uses: azure/powershell@v1 with: azPSVersion: "latest" inlineScript: | @@ -81,7 +81,7 @@ jobs: echo "aksIngress=$aksIngress" >> $env:GITHUB_ENV - name: Update Internal Boley DNS - uses: azure/powershell@v1.2.0 + uses: azure/powershell@v1 with: azPSVersion: "latest" inlineScript: | diff --git a/.github/workflows/update-azureapimanagement.yaml b/.github/workflows/update-azureapimanagement.yaml index 0cf2461c..57e29a3e 100644 --- a/.github/workflows/update-azureapimanagement.yaml +++ b/.github/workflows/update-azureapimanagement.yaml @@ -100,7 +100,7 @@ jobs: - name: Login via PowerShell if: ${{ inputs.azureUser && env.azurePassword && env.azureSubscription }} - uses: azure/powershell@v1.2.0 + uses: azure/powershell@v1 with: azPSVersion: "latest" inlineScript: | @@ -114,7 +114,7 @@ jobs: - name: Retrieve Application information id: getappinfo - uses: azure/powershell@v1.2.0 + uses: azure/powershell@v1 with: azPSVersion: "latest" inlineScript: | @@ -155,7 +155,7 @@ jobs: echo "aksIngress=$aksIngress" >> $env:GITHUB_ENV - name: Update Azure API Management - uses: azure/powershell@v1.2.0 + uses: azure/powershell@v1 with: azPSVersion: "latest" inlineScript: | diff --git a/.github/workflows/wpe-deploy.yaml b/.github/workflows/wpe-deploy.yaml index 6abcea72..2178ae71 100644 --- a/.github/workflows/wpe-deploy.yaml +++ b/.github/workflows/wpe-deploy.yaml @@ -36,7 +36,7 @@ jobs: uses: actions/checkout@v2 - name: Deploy to WP Engine - uses: wpengine/github-action-wpe-site-deploy@v3.2.2 + uses: wpengine/github-action-wpe-site-deploy@v3 with: # Deploy vars WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPENGINE_ED25514 }}