diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39558bc70..99f4efacb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: steps: - name: 'Checking out repo code' - uses: actions/checkout@v2 + uses: actions/checkout@v6 - name: 'Validate build' run: | diff --git a/.github/workflows/defaultLabels.yml b/.github/workflows/defaultLabels.yml index fbe7c65af..e6cfd235c 100644 --- a/.github/workflows/defaultLabels.yml +++ b/.github/workflows/defaultLabels.yml @@ -13,7 +13,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/stale@v3 + - uses: actions/stale@v10 name: Setting issue as idle with: repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -24,7 +24,7 @@ jobs: operations-per-run: 100 exempt-issue-labels: 'backlog' - - uses: actions/stale@v3 + - uses: actions/stale@v10 name: Setting PR as idle with: repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/github_actions_test.yml b/.github/workflows/github_actions_test.yml index 1a4ce06da..f39d443b2 100644 --- a/.github/workflows/github_actions_test.yml +++ b/.github/workflows/github_actions_test.yml @@ -18,7 +18,7 @@ jobs: id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Modify the sample app run: | @@ -29,7 +29,7 @@ jobs: echo "The placeholder has been replaced with current UTC time: $current_utc_time" - name: Set up .NET Core - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: '8.x' @@ -40,7 +40,7 @@ jobs: run: dotnet publish dotnetapp/DOTNET_8_APP.csproj -c Release -o myapp - name: Upload artifact for deployment job - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: .net-app path: myapp @@ -67,7 +67,7 @@ jobs: id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: modify Node.js App run: | @@ -78,7 +78,7 @@ jobs: echo "The placeholder has been replaced with current UTC time: $current_utc_time" - name: Set up Node.js version - uses: actions/setup-node@v3 + uses: actions/setup-node@v6 with: node-version: '18.x' @@ -90,7 +90,7 @@ jobs: npm run test --if-present - name: Upload artifact for deployment job - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: node-app path: nodeapp diff --git a/.github/workflows/pr_check_webapp_dotnet_windows.yml b/.github/workflows/pr_check_webapp_dotnet_windows.yml index 81cf8c238..bf12fad4a 100644 --- a/.github/workflows/pr_check_webapp_dotnet_windows.yml +++ b/.github/workflows/pr_check_webapp_dotnet_windows.yml @@ -37,7 +37,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v6 - uses: actions/checkout@master with: @@ -46,7 +46,7 @@ jobs: path: 'dotnetsample' - name: Install Nuget - uses: nuget/setup-nuget@v1 + uses: nuget/setup-nuget@v2 with: nuget-version: ${{ env.NUGET_VERSION}} - name: NuGet to restore dependencies as well as project-specific tools that are specified in the project file @@ -56,12 +56,12 @@ jobs: nuget restore - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v1.0.2 + uses: microsoft/setup-msbuild@v2.0.0 - name: Run MSBuild run: msbuild .\dotnetsample\SampleWebApplication.sln - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 name: Checkout from PR branch with: repository: ${{ github.event.pull_request.head.repo.full_name }} diff --git a/.github/workflows/pr_check_windows_container_pubprofile.yml b/.github/workflows/pr_check_windows_container_pubprofile.yml index 759cd4703..dbb7b02db 100644 --- a/.github/workflows/pr_check_windows_container_pubprofile.yml +++ b/.github/workflows/pr_check_windows_container_pubprofile.yml @@ -45,7 +45,7 @@ jobs: docker logout env.CONTAINER_REGISTRY - name: Login to Azure Container Registry - uses: azure/docker-login@v1 + uses: azure/docker-login@v2 with: login-server: ${{ env.CONTAINER_REGISTRY }} username: ${{ secrets.WEBDEPLOY_TEST_ACR_USERNAME }} diff --git a/README.md b/README.md index 148bfaa19..7bcf44763 100644 --- a/README.md +++ b/README.md @@ -78,10 +78,10 @@ jobs: - name: 'Checkout Github Action' uses: actions/checkout@master - - name: Setup Node 10.x - uses: actions/setup-node@v1 + - name: Setup Node 24.x + uses: actions/setup-node@v6 with: - node-version: '10.x' + node-version: '24.x' - name: 'npm install, build, and test' run: | npm install @@ -89,7 +89,7 @@ jobs: npm run test --if-present - name: 'Run Azure webapp deploy action using publish profile credentials' - uses: azure/webapps-deploy@v2 + uses: azure/webapps-deploy@v3 with: app-name: node-rn publish-profile: ${{ secrets.azureWebAppPublishProfile }} @@ -111,7 +111,7 @@ jobs: - name: 'Checkout Github Action' uses: actions/checkout@master - - uses: azure/docker-login@v1 + - uses: azure/docker-login@v2 with: login-server: contoso.azurecr.io username: ${{ secrets.REGISTRY_USERNAME }} @@ -121,7 +121,7 @@ jobs: docker build . -t contoso.azurecr.io/nodejssampleapp:${{ github.sha }} docker push contoso.azurecr.io/nodejssampleapp:${{ github.sha }} - - uses: azure/webapps-deploy@v2 + - uses: azure/webapps-deploy@v3 with: app-name: 'node-rnc' publish-profile: ${{ secrets.azureWebAppPublishProfile }} @@ -166,7 +166,7 @@ jobs: with: creds: ${{ secrets.AZURE_CREDENTIALS }} - - uses: azure/docker-login@v1 + - uses: azure/docker-login@v2 with: login-server: contoso.azurecr.io username: ${{ secrets.REGISTRY_USERNAME }} @@ -176,7 +176,7 @@ jobs: docker build . -t contoso.azurecr.io/nodejssampleapp:${{ github.sha }} docker push contoso.azurecr.io/nodejssampleapp:${{ github.sha }} - - uses: azure/webapps-deploy@v2 + - uses: azure/webapps-deploy@v3 with: app-name: 'node-rnc' images: 'contoso.azurecr.io/nodejssampleapp:${{ github.sha }}' @@ -184,7 +184,7 @@ jobs: #### Configure deployment credentials: -The previous sample workflow depends on user-level credentials stored as a [secret](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets) named `AZURE_CREDENTIALS` in your repository. The value of this secret is expected to be a JSON object that represents a service principal (an identifer for an application or process) that authenticates the workflow with Azure. +The previous sample workflow depends on user-level credentials stored as a [secret](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets) named `AZURE_CREDENTIALS` in your repository. The value of this secret is expected to be a JSON object that represents a service principal (an identifier for an application or process) that authenticates the workflow with Azure. To function correctly, this service principal must be assigned the [Contributor]((https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#contributor)) role for the web app or the resource group that contains the web app. diff --git a/action.yml b/action.yml index d21392e56..6bc95df2e 100644 --- a/action.yml +++ b/action.yml @@ -41,7 +41,7 @@ inputs: description: 'Restart the app service after deployment' required: false sitecontainers-config: - description: 'Applies to Sitecontainers, containes a list of siteContainer specs' + description: 'Applies to Sitecontainers, contains a list of siteContainer specs' required: false outputs: diff --git a/src/DeploymentProvider/Providers/WebAppDeploymentProvider.ts b/src/DeploymentProvider/Providers/WebAppDeploymentProvider.ts index c018f02e0..361b4ce67 100644 --- a/src/DeploymentProvider/Providers/WebAppDeploymentProvider.ts +++ b/src/DeploymentProvider/Providers/WebAppDeploymentProvider.ts @@ -21,7 +21,7 @@ export class WebAppDeploymentProvider extends BaseWebAppDeploymentProvider { // kudu warm up await this.kuduServiceUtility.warmpUp(); - // If provided, type paramater takes precidence over file package type + // If provided, type parameter takes precedence over file package type if (this.actionParams.type != null && validTypes.includes(this.actionParams.type.toLowerCase())) { core.debug("Initiated deployment via kudu service for webapp" + this.actionParams.type + "package : "+ webPackage); }