From 71bc798cf45841919d0ef6ae6c598013292ca6ae Mon Sep 17 00:00:00 2001 From: WaterLemons2k <62788816+WaterLemons2k@users.noreply.github.com> Date: Sat, 18 Mar 2023 15:11:38 +0800 Subject: [PATCH 1/2] chore: bump actions to `node16` There are some yaml and markdown file actions that still using `node12`, update these actions to `node16`. --- .../building-and-testing-java-with-gradle.md | 6 +++--- .../building-and-testing-nodejs.md | 2 +- .../building-and-testing-ruby.md | 16 ++++++++-------- .../building-and-testing-swift.md | 6 +++--- .../creating-actions/about-custom-actions.md | 2 +- .../creating-a-javascript-action.md | 2 +- .../metadata-syntax-for-github-actions.md | 2 +- ...ying-to-amazon-elastic-container-service.md | 8 ++++---- .../deploying-docker-to-azure-app-service.md | 8 ++++---- .../deploying-java-to-azure-app-service.md | 2 +- .../deploying-net-to-azure-app-service.md | 2 +- .../deploying-nodejs-to-azure-app-service.md | 2 +- .../deploying-php-to-azure-app-service.md | 4 ++-- .../deploying-python-to-azure-app-service.md | 2 +- .../deploying-to-azure-kubernetes-service.md | 10 +++++----- .../deploying-to-google-kubernetes-engine.md | 4 ++-- .../using-the-github-cli-on-a-runner.md | 6 +++--- .../learn-github-actions/expressions.md | 2 +- .../finding-and-customizing-actions.md | 2 +- ...enting-on-an-issue-when-a-label-is-added.md | 2 +- ...moving-assigned-issues-on-project-boards.md | 2 +- .../scheduling-issue-creation.md | 2 +- ...igrating-from-circleci-to-github-actions.md | 2 +- .../publishing-docker-images.md | 18 +++++++++--------- .../publishing-java-packages-with-gradle.md | 6 +++--- .../workflow-syntax-for-github-actions.md | 2 +- ...utomating-dependabot-with-github-actions.md | 2 +- .../automating-projects-using-actions.md | 4 ++-- ...installing-a-package-with-github-actions.md | 12 ++++++------ .../working-with-the-container-registry.md | 2 +- content/rest/quickstart.md | 6 +++--- contributing/content-style-guide.md | 4 ++-- .../actions/allow-specific-actions-intro.md | 2 +- .../package_registry/publish-docker-image.md | 6 +++--- 34 files changed, 80 insertions(+), 80 deletions(-) diff --git a/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md b/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md index 445c04445e1d..013db1816e0a 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md @@ -69,7 +69,7 @@ jobs: java-version: '17' distribution: 'temurin' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 - name: Build with Gradle uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: @@ -105,7 +105,7 @@ steps: java-version: '17' distribution: 'temurin' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 - name: Run the Gradle package task uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: @@ -136,7 +136,7 @@ steps: java-version: '17' distribution: 'temurin' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 - name: Build with Gradle uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: diff --git a/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md b/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md index 4ed733df3309..c14dfc1457b8 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md @@ -267,7 +267,7 @@ The following example caches dependencies for pnpm (v6.10+). steps: - uses: {% data reusables.actions.action-checkout %} -- uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2 +- uses: pnpm/action-setup@f4129fb46eaadbab36b5be281b768dfef049df0d with: version: 6.10.0 - uses: {% data reusables.actions.action-setup-node %} diff --git a/content/actions/automating-builds-and-tests/building-and-testing-ruby.md b/content/actions/automating-builds-and-tests/building-and-testing-ruby.md index 43cfb88518cd..0550f76cb2d1 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-ruby.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-ruby.md @@ -56,7 +56,7 @@ jobs: steps: - uses: {% data reusables.actions.action-checkout %} - name: Set up Ruby - uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 + uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 with: ruby-version: '3.1' - name: Install dependencies @@ -76,7 +76,7 @@ The `setup-ruby` action takes a Ruby version as an input and configures that ver ```yaml steps: - uses: {% data reusables.actions.action-checkout %} -- uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 +- uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 with: ruby-version: '3.1' # Not needed with a .ruby-version file - run: bundle install @@ -126,7 +126,7 @@ jobs: steps: - uses: {% data reusables.actions.action-checkout %} - name: {% raw %}Set up Ruby ${{ matrix.ruby-version }}{% endraw %} - uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 + uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 with: ruby-version: {% raw %}${{ matrix.ruby-version }}{% endraw %} - name: Install dependencies @@ -142,7 +142,7 @@ The `setup-ruby` action will automatically install bundler for you. The version ```yaml steps: - uses: {% data reusables.actions.action-checkout %} -- uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 +- uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 with: ruby-version: '3.1' - run: bundle install @@ -159,7 +159,7 @@ To enable caching, set the following. {% raw %} ```yaml steps: -- uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 +- uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 with: bundler-cache: true ``` @@ -231,7 +231,7 @@ jobs: continue-on-error: {% raw %}${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}{% endraw %} steps: - uses: {% data reusables.actions.action-checkout %} - - uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6 + - uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 with: ruby-version: {% raw %}${{ matrix.ruby }}{% endraw %} - run: bundle install @@ -256,7 +256,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: {% data reusables.actions.action-checkout %} - - uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6 + - uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 with: ruby-version: 2.6 - run: bundle install @@ -297,7 +297,7 @@ jobs: steps: - uses: {% data reusables.actions.action-checkout %} - name: Set up Ruby 2.6 - uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6 + uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 with: ruby-version: 2.6 - run: bundle install diff --git a/content/actions/automating-builds-and-tests/building-and-testing-swift.md b/content/actions/automating-builds-and-tests/building-and-testing-swift.md index cf5bb54f9c73..dd2e3b1a9c22 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-swift.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-swift.md @@ -87,7 +87,7 @@ jobs: swift: ["5.2", "5.3"] runs-on: {% raw %}${{ matrix.os }}{% endraw %} steps: - - uses: fwal/setup-swift@2040b795e5c453c3a05fcb8316496afc8a74f192 + - uses: fwal/setup-swift@3e6392c1f6b2f871d06177eb5721e3eafcc405ac with: swift-version: {% raw %}${{ matrix.swift }}{% endraw %} - uses: {% data reusables.actions.action-checkout %} @@ -104,7 +104,7 @@ You can configure your job to use a single specific version of Swift, such as `5 {% raw %} ```yaml{:copy} steps: - - uses: fwal/setup-swift@2040b795e5c453c3a05fcb8316496afc8a74f192 + - uses: fwal/setup-swift@3e6392c1f6b2f871d06177eb5721e3eafcc405ac with: swift-version: "5.3.3" - name: Get swift version @@ -119,7 +119,7 @@ You can use the same commands that you use locally to build and test your code u ```yaml{:copy} steps: - uses: {% data reusables.actions.action-checkout %} - - uses: fwal/setup-swift@2040b795e5c453c3a05fcb8316496afc8a74f192 + - uses: fwal/setup-swift@3e6392c1f6b2f871d06177eb5721e3eafcc405ac with: swift-version: "5.3.3" - name: Build diff --git a/content/actions/creating-actions/about-custom-actions.md b/content/actions/creating-actions/about-custom-actions.md index 7675bb474fd2..d4cf57de2d17 100644 --- a/content/actions/creating-actions/about-custom-actions.md +++ b/content/actions/creating-actions/about-custom-actions.md @@ -133,7 +133,7 @@ Each Git commit receives a calculated SHA value, which is unique and immutable. ```yaml steps: - - uses: actions/javascript-action@172239021f7ba04fe7327647b213799853a9eb89 + - uses: actions/javascript-action@571a71ff01be3802e62f5470d0c062c03ca0ee96 ``` ## Creating a README file for your action diff --git a/content/actions/creating-actions/creating-a-javascript-action.md b/content/actions/creating-actions/creating-a-javascript-action.md index 21a7c241aede..3f6034d740f9 100644 --- a/content/actions/creating-actions/creating-a-javascript-action.md +++ b/content/actions/creating-actions/creating-a-javascript-action.md @@ -160,7 +160,7 @@ The time we greeted you. ## Example usage ```yaml -uses: actions/hello-world-javascript-action@v1.1 +uses: actions/hello-world-javascript-action@a8dd2c1169d0de038bb630cf188c6a66d3dcecd6 with: who-to-greet: 'Mona the Octocat' ``` diff --git a/content/actions/creating-actions/metadata-syntax-for-github-actions.md b/content/actions/creating-actions/metadata-syntax-for-github-actions.md index 14a1bd7fa7a1..922510339dda 100644 --- a/content/actions/creating-actions/metadata-syntax-for-github-actions.md +++ b/content/actions/creating-actions/metadata-syntax-for-github-actions.md @@ -322,7 +322,7 @@ runs: using: "composite" steps: # Reference a specific commit - - uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 + - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # Reference the major version of a release - uses: {% data reusables.actions.action-checkout %} # Reference a specific version diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md index 7b3871d7a320..ce3a3329fe87 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md @@ -123,7 +123,7 @@ jobs: uses: {% data reusables.actions.action-checkout %} {% raw %}- name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@13d241b293754004c80624b5567555c4a39ffbe3 + uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -131,7 +131,7 @@ jobs: - name: Login to Amazon ECR id: login-ecr - uses: aws-actions/amazon-ecr-login@aaf69d68aa3fb14c1d5a6be9ac61fe15b48453a2 + uses: aws-actions/amazon-ecr-login@29516697cce506511bbd2ab14eec27dcfb5626b9 - name: Build, tag, and push image to Amazon ECR id: build-image @@ -152,14 +152,14 @@ jobs: - name: Fill in the new image ID in the Amazon ECS task definition id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@97587c9d45a4930bf0e3da8dd2feb2a463cf4a3a + uses: aws-actions/amazon-ecs-render-task-definition@9b7abdaa04efe589b07b5bd9a2ec44a58bb25033 with: task-definition: ${{ env.ECS_TASK_DEFINITION }} container-name: ${{ env.CONTAINER_NAME }} image: ${{ steps.build-image.outputs.image }} - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@de0132cf8cdedb79975c6d42b77eb7ea193cf28e + uses: aws-actions/amazon-ecs-deploy-task-definition@293653f66dbfdd066c22b7d2c0c96454a7612d50 with: task-definition: ${{ steps.task-def.outputs.task-definition }} service: ${{ env.ECS_SERVICE }} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md index 9749adeb8cf3..809c0703455f 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md @@ -105,10 +105,10 @@ jobs: - uses: {% data reusables.actions.action-checkout %} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Log in to GitHub container registry - uses: docker/login-action@v1.10.0 + uses: docker/login-action@v2 with: registry: ghcr.io username: {% raw %}${{ github.actor }}{% endraw %} @@ -118,7 +118,7 @@ jobs: run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} - name: Build and push container image to registry - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: push: true tags: ghcr.io/{% raw %}${{ env.REPO }}{% endraw %}:{% raw %}${{ github.sha }}{% endraw %} @@ -139,7 +139,7 @@ jobs: - name: Deploy to Azure Web App id: deploy-to-webapp - uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e + uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md index ffda01bdcb67..f18dcc913741 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md @@ -117,7 +117,7 @@ jobs: - name: Deploy to Azure Web App id: deploy-to-webapp - uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e + uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md index fd1d13b52dd5..96d9a3c70cd7 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md @@ -127,7 +127,7 @@ jobs: - name: Deploy to Azure Web App id: deploy-to-webapp - uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e + uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md index c98be9e3727e..86b479aba492 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md @@ -122,7 +122,7 @@ jobs: - name: 'Deploy to Azure WebApp' id: deploy-to-webapp - uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e + uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md index 5256e37828be..b08c22a35dbf 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md @@ -94,7 +94,7 @@ jobs: - name: Check if composer.json exists id: check_files - uses: andstor/file-existence-action@v1 + uses: andstor/file-existence-action@v2 with: files: 'composer.json' @@ -142,7 +142,7 @@ jobs: - name: 'Deploy to Azure Web App' id: deploy-to-webapp - uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e + uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md index e0adcc7587e3..0cb8059b2c8d 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md @@ -135,7 +135,7 @@ jobs: - name: 'Deploy to Azure Web App' id: deploy-to-webapp - uses: azure/webapps-deploy@0b651ed7546ecfc75024011f76944cb9b381ef1e + uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-to-azure-kubernetes-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-to-azure-kubernetes-service.md index 50f772dc1cfe..488f612887e7 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-to-azure-kubernetes-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-to-azure-kubernetes-service.md @@ -78,12 +78,12 @@ jobs: - uses: {% data reusables.actions.action-checkout %} - name: Azure Login - uses: azure/login@89d153571fe9a34ed70fcf9f1d95ab8debea7a73 + uses: azure/login@14a755a4e2fd6dff25794233def4f2cf3f866955 with: creds: {% raw %}${{ secrets.AZURE_CREDENTIALS }}{% endraw %} - name: Build image on ACR - uses: azure/CLI@7378ce2ca3c38b4b063feb7a4cbe384fef978055 + uses: azure/CLI@61bb69d64d613b52663984bf12d6bac8fd7b3cc8 with: azcliversion: 2.29.1 inlineScript: | @@ -91,7 +91,7 @@ jobs: az acr build -t -t {% raw %}${{ env.REGISTRY_URL }}{% endraw %}/{% raw %}${{ env.PROJECT_NAME }}{% endraw %}:{% raw %}${{ github.sha }}{% endraw %} - name: Gets K8s context - uses: azure/aks-set-context@4e5aec273183a197b181314721843e047123d9fa + uses: azure/aks-set-context@4d245b6708f53b68f9decf5e1dc98e9753017daf with: creds: {% raw %}${{ secrets.AZURE_CREDENTIALS }}{% endraw %} resource-group: {% raw %}${{ env.RESOURCE_GROUP }}{% endraw %} @@ -99,7 +99,7 @@ jobs: id: login - name: Configure deployment - uses: azure/k8s-bake@773b6144a3732e3bf4c78b146a0bb9617b2e016b + uses: azure/k8s-bake@83c5bf7343d6ba148f927433db8307a992588614 with: renderEngine: 'helm' helmChart: {% raw %}${{ env.CHART_PATH }}{% endraw %} @@ -110,7 +110,7 @@ jobs: id: bake - name: Deploys application - - uses: Azure/k8s-deploy@c8fbd76ededaad2799c054a9fd5d0fa5d4e9aee4 + - uses: Azure/k8s-deploy@dcd9bc6b1acbf6dd5c1acbaaed835c0cac33e4f3 with: manifests: {% raw %}${{ steps.bake.outputs.manifestsBundle }}{% endraw %} images: | diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md index bf5f5df20b81..b03813a6d136 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md @@ -164,7 +164,7 @@ jobs: uses: {% data reusables.actions.action-checkout %} # Setup gcloud CLI - - uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7 + - uses: google-github-actions/setup-gcloud@c66a06cb89c6c4ceab6ae8cb679bc07b689c243d with: service_account_key: {% raw %}${{ secrets.GKE_SA_KEY }}{% endraw %} project_id: {% raw %}${{ secrets.GKE_PROJECT }}{% endraw %} @@ -175,7 +175,7 @@ jobs: gcloud --quiet auth configure-docker # Get the GKE credentials so we can deploy to the cluster - - uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e + - uses: google-github-actions/get-gke-credentials@b044f8a93871e4b36b15adb52cec9b9cda4c5f3f with: cluster_name: {% raw %}${{ env.GKE_CLUSTER }}{% endraw %} location: {% raw %}${{ env.GKE_ZONE }}{% endraw %} diff --git a/content/actions/examples/using-the-github-cli-on-a-runner.md b/content/actions/examples/using-the-github-cli-on-a-runner.md index 6971e0997325..5d869659fb9f 100644 --- a/content/actions/examples/using-the-github-cli-on-a-runner.md +++ b/content/actions/examples/using-the-github-cli-on-a-runner.md @@ -117,7 +117,7 @@ jobs: - if: {% raw %}${{ failure() }}{% endraw %} name: Create issue from file id: broken-link-report - uses: peter-evans/create-issue-from-file@b4f9ee0a9d4abbfc6986601d9b1a4f8f8e74c77e + uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f with: token: {% raw %}${{ env.GITHUB_TOKEN }}{% endraw %} @@ -395,7 +395,7 @@ If the `check-english-links.js` script detects broken links and returns a non-ze - if: {% raw %}${{ failure() }}{% endraw %} name: Create issue from file id: broken-link-report - uses: peter-evans/create-issue-from-file@b4f9ee0a9d4abbfc6986601d9b1a4f8f8e74c77e + uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f with: token: {% raw %}${{ env.GITHUB_TOKEN }}{% endraw %} @@ -407,7 +407,7 @@ If the `check-english-links.js` script detects broken links and returns a non-ze -Uses the `peter-evans/create-issue-from-file` action to create a new {% data variables.product.prodname_dotcom %} issue. This example is pinned to a specific version of the action, using the `b4f9ee0a9d4abbfc6986601d9b1a4f8f8e74c77e` SHA. +Uses the `peter-evans/create-issue-from-file` action to create a new {% data variables.product.prodname_dotcom %} issue. This example is pinned to a specific version of the action, using the `433e51abf769039ee20ba1293a088ca19d573b7f` SHA. diff --git a/content/actions/learn-github-actions/expressions.md b/content/actions/learn-github-actions/expressions.md index b92c8c3c532b..7c768d0c20fd 100644 --- a/content/actions/learn-github-actions/expressions.md +++ b/content/actions/learn-github-actions/expressions.md @@ -32,7 +32,7 @@ You need to use specific syntax to tell {% data variables.product.prodname_dotco ```yaml steps: - - uses: actions/hello-world-javascript-action@v1.1 + - uses: actions/hello-world-javascript-action@a8dd2c1169d0de038bb630cf188c6a66d3dcecd6 if: {% raw %}${{ }}{% endraw %} ``` diff --git a/content/actions/learn-github-actions/finding-and-customizing-actions.md b/content/actions/learn-github-actions/finding-and-customizing-actions.md index b5d4ba3c4b9a..e1293d529457 100644 --- a/content/actions/learn-github-actions/finding-and-customizing-actions.md +++ b/content/actions/learn-github-actions/finding-and-customizing-actions.md @@ -163,7 +163,7 @@ If you need more reliable versioning, you should use the SHA value associated wi ```yaml steps: - - uses: actions/javascript-action@172239021f7ba04fe7327647b213799853a9eb89 + - uses: actions/javascript-action@571a71ff01be3802e62f5470d0c062c03ca0ee96 ``` ### Using branches diff --git a/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md b/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md index 9bf884655ced..ac696fede776 100644 --- a/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md +++ b/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md @@ -48,7 +48,7 @@ In the tutorial, you will first make a workflow file that uses the [`peter-evans issues: write steps: - name: Add comment - uses: peter-evans/create-or-update-comment@a35cf36e5301d70b76f316e867e7788a55a31dae + uses: peter-evans/create-or-update-comment@67dcc547d311b736a8e6c5c236542148a47adc3d with: issue-number: {% raw %}${{ github.event.issue.number }}{% endraw %} body: | diff --git a/content/actions/managing-issues-and-pull-requests/moving-assigned-issues-on-project-boards.md b/content/actions/managing-issues-and-pull-requests/moving-assigned-issues-on-project-boards.md index c6795998eb86..f4c0f4182063 100644 --- a/content/actions/managing-issues-and-pull-requests/moving-assigned-issues-on-project-boards.md +++ b/content/actions/managing-issues-and-pull-requests/moving-assigned-issues-on-project-boards.md @@ -45,7 +45,7 @@ In the tutorial, you will first make a workflow file that uses the [`alex-page/g move-assigned-card: runs-on: ubuntu-latest steps: - - uses: alex-page/github-project-automation-plus@5bcba1c1c091a222584d10913e5c060d32c44044 + - uses: alex-page/github-project-automation-plus@1f8873e97e3c8f58161a323b7c568c1f623a1c4d with: project: Docs Work column: In Progress diff --git a/content/actions/managing-issues-and-pull-requests/scheduling-issue-creation.md b/content/actions/managing-issues-and-pull-requests/scheduling-issue-creation.md index 7a41bf5536e4..5b61b181c0e6 100644 --- a/content/actions/managing-issues-and-pull-requests/scheduling-issue-creation.md +++ b/content/actions/managing-issues-and-pull-requests/scheduling-issue-creation.md @@ -48,7 +48,7 @@ In the tutorial, you will first make a workflow file that uses the [`imjohnbo/is issues: write steps: - name: Create team sync issue - uses: imjohnbo/issue-bot@3daae12aa54d38685d7ff8459fc8a2aee8cea98b + uses: imjohnbo/issue-bot@4c86f3182f738efa1a0a7fec4df114ac21c4b7b1 with: assignees: "monalisa, doctocat, hubot" labels: "weekly sync, docs-team" diff --git a/content/actions/migrating-to-github-actions/manual-migrations/migrating-from-circleci-to-github-actions.md b/content/actions/migrating-to-github-actions/manual-migrations/migrating-from-circleci-to-github-actions.md index 82b61fbf7f52..6c03cec44b4c 100644 --- a/content/actions/migrating-to-github-actions/manual-migrations/migrating-from-circleci-to-github-actions.md +++ b/content/actions/migrating-to-github-actions/manual-migrations/migrating-from-circleci-to-github-actions.md @@ -446,7 +446,7 @@ jobs: steps: - uses: {% data reusables.actions.action-checkout %} - name: Setup Ruby - uses: eregon/use-ruby-action@477b21f02be01bcb8030d50f37cfec92bfa615b6 + uses: eregon/use-ruby-action@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 with: ruby-version: {% raw %}${{ matrix.ruby }}{% endraw %} - name: Cache dependencies diff --git a/content/actions/publishing-packages/publishing-docker-images.md b/content/actions/publishing-packages/publishing-docker-images.md index 6172aaef9435..f2cf0136bc6b 100644 --- a/content/actions/publishing-packages/publishing-docker-images.md +++ b/content/actions/publishing-packages/publishing-docker-images.md @@ -93,19 +93,19 @@ jobs: uses: {% data reusables.actions.action-checkout %} - name: Log in to Docker Hub - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 with: username: {% raw %}${{ secrets.DOCKER_USERNAME }}{% endraw %} password: {% raw %}${{ secrets.DOCKER_PASSWORD }}{% endraw %} - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@5edf56f2c486f342f4319e9c0a1a79d59a474516 with: images: my-docker-hub-namespace/my-docker-hub-repository - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: context: . push: true @@ -174,14 +174,14 @@ jobs: uses: {% data reusables.actions.action-checkout %} - name: Log in to GitHub Docker Registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 with: registry: {% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %} username: {% raw %}${{ github.actor }}{% endraw %} password: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: context: . push: true @@ -226,13 +226,13 @@ jobs: uses: {% data reusables.actions.action-checkout %} - name: Log in to Docker Hub - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 with: username: {% raw %}${{ secrets.DOCKER_USERNAME }}{% endraw %} password: {% raw %}${{ secrets.DOCKER_PASSWORD }}{% endraw %} - name: Log in to the {% ifversion fpt or ghec or ghes > 3.4 %}Container{% else %}Docker{% endif %} registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 with: registry: {% ifversion fpt or ghec %}ghcr.io{% elsif ghae %}docker.YOUR-HOSTNAME.com{% elsif ghes > 3.4 %}{% data reusables.package_registry.container-registry-hostname %}{% else %}docker.pkg.github.com{% endif %} username: {% raw %}${{ github.actor }}{% endraw %} @@ -240,14 +240,14 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@5edf56f2c486f342f4319e9c0a1a79d59a474516 with: images: | my-docker-hub-namespace/my-docker-hub-repository {% ifversion fpt or ghec or ghes > 3.4 %}{% data reusables.package_registry.container-registry-hostname %}/{% raw %}${{ github.repository }}{% endraw %}{% elsif ghae %}{% raw %}docker.YOUR-HOSTNAME.com/${{ github.repository }}/my-image{% endraw %}{% else %}{% raw %}docker.pkg.github.com/${{ github.repository }}/my-image{% endraw %}{% endif %} - name: Build and push Docker images - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: context: . push: true diff --git a/content/actions/publishing-packages/publishing-java-packages-with-gradle.md b/content/actions/publishing-packages/publishing-java-packages-with-gradle.md index 1298e074c39f..84fd39281b6f 100644 --- a/content/actions/publishing-packages/publishing-java-packages-with-gradle.md +++ b/content/actions/publishing-packages/publishing-java-packages-with-gradle.md @@ -97,7 +97,7 @@ jobs: java-version: '11' distribution: 'adopt' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 - name: Publish package uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: @@ -171,7 +171,7 @@ jobs: java-version: '11' distribution: 'adopt' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 - name: Publish package uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: @@ -253,7 +253,7 @@ jobs: java-version: '11' distribution: 'adopt' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 - name: Publish package uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: diff --git a/content/actions/using-workflows/workflow-syntax-for-github-actions.md b/content/actions/using-workflows/workflow-syntax-for-github-actions.md index 38a5c1ce42b2..b379e85bf388 100644 --- a/content/actions/using-workflows/workflow-syntax-for-github-actions.md +++ b/content/actions/using-workflows/workflow-syntax-for-github-actions.md @@ -429,7 +429,7 @@ Actions are either JavaScript files or Docker containers. If the action you're u ```yaml steps: # Reference a specific commit - - uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 + - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # Reference the major version of a release - uses: {% data reusables.actions.action-checkout %} # Reference a specific version diff --git a/content/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions.md b/content/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions.md index 9d1205637ed8..6b4826ca9bfb 100644 --- a/content/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions.md +++ b/content/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions.md @@ -94,7 +94,7 @@ jobs: uses: {% data reusables.actions.action-checkout %} - name: Login to private container registry for dependencies - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: https://1234567890.dkr.ecr.us-east-1.amazonaws.com username: {% raw %}${{ secrets.READONLY_AWS_ACCESS_KEY_ID }}{% endraw %} diff --git a/content/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions.md b/content/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions.md index 7a50f349d721..808cbc9a74bf 100644 --- a/content/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions.md +++ b/content/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions.md @@ -65,7 +65,7 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0 + uses: tibdex/github-app-token@cd81e4cb40c3672f41b30a21758d6298e821691b with: app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %} private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %} @@ -308,7 +308,7 @@ This workflow runs whenever a pull request in the repository is marked as "ready ```yaml - name: Generate token id: generate_token - uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0 + uses: tibdex/github-app-token@cd81e4cb40c3672f41b30a21758d6298e821691b with: app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %} private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %} diff --git a/content/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions.md b/content/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions.md index c6cacf824424..c2f238420d22 100644 --- a/content/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions.md +++ b/content/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions.md @@ -154,13 +154,13 @@ jobs: - name: Checkout uses: {% data reusables.actions.action-checkout %} - name: Log in to GitHub Docker Registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 with: registry: {% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %} username: {% raw %}${{ github.actor }}{% endraw %} password: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: push: true tags: | @@ -317,7 +317,7 @@ permissions: {% raw %} ```yaml - name: Log in to the Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -336,7 +336,7 @@ permissions: ```yaml - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@5edf56f2c486f342f4319e9c0a1a79d59a474516 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} ``` @@ -353,7 +353,7 @@ permissions: {% raw %} ```yaml - name: Log in to GitHub Docker Registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 with: registry: {% endraw %}{% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %}{% raw %} username: ${{ github.actor }} @@ -384,7 +384,7 @@ permissions: {% raw %} ```yaml -uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc +uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 ``` {% endraw %} diff --git a/content/packages/working-with-a-github-packages-registry/working-with-the-container-registry.md b/content/packages/working-with-a-github-packages-registry/working-with-the-container-registry.md index 0ba49228568c..aa4efc801eb1 100644 --- a/content/packages/working-with-a-github-packages-registry/working-with-the-container-registry.md +++ b/content/packages/working-with-a-github-packages-registry/working-with-the-container-registry.md @@ -212,7 +212,7 @@ For example, the following {% data variables.product.prodname_actions %} workflo {% data reusables.actions.actions-not-certified-by-github-comment %} - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: context: . file: ./Dockerfile diff --git a/content/rest/quickstart.md b/content/rest/quickstart.md index 3822f7187cfe..b79407f4efe1 100644 --- a/content/rest/quickstart.md +++ b/content/rest/quickstart.md @@ -92,7 +92,7 @@ If you are authenticating with a {% data variables.product.prodname_github_app % steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0 + uses: tibdex/github-app-token@cd81e4cb40c3672f41b30a21758d6298e821691b with: app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %} private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %} @@ -249,7 +249,7 @@ If you are authenticating with a {% data variables.product.prodname_github_app % - name: Generate token id: generate_token - uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0 + uses: tibdex/github-app-token@cd81e4cb40c3672f41b30a21758d6298e821691b with: app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %} private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %} @@ -362,7 +362,7 @@ If you are authenticating with a {% data variables.product.prodname_github_app % steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0 + uses: tibdex/github-app-token@cd81e4cb40c3672f41b30a21758d6298e821691b with: app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %} private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %} diff --git a/contributing/content-style-guide.md b/contributing/content-style-guide.md index e5ab1e502d6d..8491aec41137 100644 --- a/contributing/content-style-guide.md +++ b/contributing/content-style-guide.md @@ -533,7 +533,7 @@ This is an example of a third-party action: ``` steps: - - uses: google-github-actions/setup-gcloud@daadedc81d5f9d3c06d2c92f49202a3cc2b919ba + - uses: google-github-actions/setup-gcloud@c66a06cb89c6c4ceab6ae8cb679bc07b689c243d ``` Examples: @@ -545,7 +545,7 @@ Code examples that use third-party actions must always pin to a full length comm ``` steps: - - uses: google-github-actions/setup-gcloud@daadedc81d5f9d3c06d2c92f49202a3cc2b919ba + - uses: google-github-actions/setup-gcloud@c66a06cb89c6c4ceab6ae8cb679bc07b689c243d ``` For GitHub Docs purposes, a third-party action is any action that doesn't have one of the following prefixes: `actions/`, `github/`, and `octo-org/`. For example, this is a first-party action: diff --git a/data/reusables/actions/allow-specific-actions-intro.md b/data/reusables/actions/allow-specific-actions-intro.md index a65d551102b9..5a3a085f7df8 100644 --- a/data/reusables/actions/allow-specific-actions-intro.md +++ b/data/reusables/actions/allow-specific-actions-intro.md @@ -10,7 +10,7 @@ When you choose {% data reusables.actions.policy-label-for-select-actions-workfl To restrict access to specific tags or commit SHAs of an action{% ifversion actions-workflow-policy %} or reusable workflow{% endif %}, use the same syntax used in the workflow to select the action{% ifversion actions-workflow-policy %} or reusable workflow{% endif %}. - - For an action, the syntax is `/@`. For example, use `actions/javascript-action@v1.0.1` to select a tag or `actions/javascript-action@172239021f7ba04fe7327647b213799853a9eb89` to select a SHA. For more information, see "[AUTOTITLE](/actions/learn-github-actions/finding-and-customizing-actions#using-release-management-for-your-custom-actions)." + - For an action, the syntax is `/@`. For example, use `actions/javascript-action@v1.0.1` to select a tag or `actions/javascript-action@571a71ff01be3802e62f5470d0c062c03ca0ee96` to select a SHA. For more information, see "[AUTOTITLE](/actions/learn-github-actions/finding-and-customizing-actions#using-release-management-for-your-custom-actions)." {%- ifversion actions-workflow-policy %} - For a reusable workflow, the syntax is `///@`. For example, `octo-org/another-repo/.github/workflows/workflow.yml@v1`. For more information, see "[AUTOTITLE](/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow)." {%- endif %} diff --git a/data/reusables/package_registry/publish-docker-image.md b/data/reusables/package_registry/publish-docker-image.md index a0a12f644b2e..7bb2c8d5f1ce 100644 --- a/data/reusables/package_registry/publish-docker-image.md +++ b/data/reusables/package_registry/publish-docker-image.md @@ -25,7 +25,7 @@ jobs: uses: {% data reusables.actions.action-checkout %} - name: Log in to the Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 with: registry: {% raw %}${{ env.REGISTRY }}{% endraw %} username: {% raw %}${{ github.actor }}{% endraw %} @@ -33,12 +33,12 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@5edf56f2c486f342f4319e9c0a1a79d59a474516 with: images: {% raw %}${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}{% endraw %} - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: context: . push: true From 6fe11534d2de3a7d63a9462a89f7d802244b4b4a Mon Sep 17 00:00:00 2001 From: WaterLemons2k <62788816+WaterLemons2k@users.noreply.github.com> Date: Wed, 29 Mar 2023 21:13:36 +0800 Subject: [PATCH 2/2] Update commits and tags to latest --- .../building-and-testing-java-with-gradle.md | 6 +++--- .../building-and-testing-nodejs.md | 2 +- .../building-and-testing-ruby.md | 16 ++++++++-------- .../building-and-testing-swift.md | 6 +++--- .../creating-actions/about-custom-actions.md | 2 +- .../creating-a-javascript-action.md | 2 +- .../metadata-syntax-for-github-actions.md | 2 +- ...ying-to-amazon-elastic-container-service.md | 8 ++++---- .../deploying-docker-to-azure-app-service.md | 4 ++-- .../deploying-java-to-azure-app-service.md | 2 +- .../deploying-net-to-azure-app-service.md | 2 +- .../deploying-nodejs-to-azure-app-service.md | 2 +- .../deploying-php-to-azure-app-service.md | 2 +- .../deploying-python-to-azure-app-service.md | 2 +- .../deploying-to-azure-kubernetes-service.md | 6 +++--- .../deploying-to-google-kubernetes-engine.md | 4 ++-- .../using-the-github-cli-on-a-runner.md | 6 +++--- .../learn-github-actions/expressions.md | 2 +- .../finding-and-customizing-actions.md | 2 +- ...enting-on-an-issue-when-a-label-is-added.md | 2 +- ...moving-assigned-issues-on-project-boards.md | 2 +- .../scheduling-issue-creation.md | 2 +- ...igrating-from-circleci-to-github-actions.md | 2 +- .../publishing-docker-images.md | 18 +++++++++--------- .../publishing-java-packages-with-gradle.md | 6 +++--- .../workflow-syntax-for-github-actions.md | 2 +- .../automating-projects-using-actions.md | 4 ++-- ...installing-a-package-with-github-actions.md | 12 ++++++------ .../working-with-the-container-registry.md | 2 +- content/rest/quickstart.md | 6 +++--- contributing/content-style-guide.md | 4 ++-- .../actions/allow-specific-actions-intro.md | 2 +- .../package_registry/publish-docker-image.md | 6 +++--- 33 files changed, 74 insertions(+), 74 deletions(-) diff --git a/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md b/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md index 013db1816e0a..7f72e55ea241 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md @@ -69,7 +69,7 @@ jobs: java-version: '17' distribution: 'temurin' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 + uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 - name: Build with Gradle uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: @@ -105,7 +105,7 @@ steps: java-version: '17' distribution: 'temurin' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 + uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 - name: Run the Gradle package task uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: @@ -136,7 +136,7 @@ steps: java-version: '17' distribution: 'temurin' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 + uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 - name: Build with Gradle uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: diff --git a/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md b/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md index c14dfc1457b8..e3c28b74fac2 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md @@ -267,7 +267,7 @@ The following example caches dependencies for pnpm (v6.10+). steps: - uses: {% data reusables.actions.action-checkout %} -- uses: pnpm/action-setup@f4129fb46eaadbab36b5be281b768dfef049df0d +- uses: pnpm/action-setup@0609f0983b7a228f052f81ef4c3d6510cae254ad with: version: 6.10.0 - uses: {% data reusables.actions.action-setup-node %} diff --git a/content/actions/automating-builds-and-tests/building-and-testing-ruby.md b/content/actions/automating-builds-and-tests/building-and-testing-ruby.md index 0550f76cb2d1..db55cc77ec42 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-ruby.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-ruby.md @@ -56,7 +56,7 @@ jobs: steps: - uses: {% data reusables.actions.action-checkout %} - name: Set up Ruby - uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 + uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 with: ruby-version: '3.1' - name: Install dependencies @@ -76,7 +76,7 @@ The `setup-ruby` action takes a Ruby version as an input and configures that ver ```yaml steps: - uses: {% data reusables.actions.action-checkout %} -- uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 +- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 with: ruby-version: '3.1' # Not needed with a .ruby-version file - run: bundle install @@ -126,7 +126,7 @@ jobs: steps: - uses: {% data reusables.actions.action-checkout %} - name: {% raw %}Set up Ruby ${{ matrix.ruby-version }}{% endraw %} - uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 + uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 with: ruby-version: {% raw %}${{ matrix.ruby-version }}{% endraw %} - name: Install dependencies @@ -142,7 +142,7 @@ The `setup-ruby` action will automatically install bundler for you. The version ```yaml steps: - uses: {% data reusables.actions.action-checkout %} -- uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 +- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 with: ruby-version: '3.1' - run: bundle install @@ -159,7 +159,7 @@ To enable caching, set the following. {% raw %} ```yaml steps: -- uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 +- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 with: bundler-cache: true ``` @@ -231,7 +231,7 @@ jobs: continue-on-error: {% raw %}${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}{% endraw %} steps: - uses: {% data reusables.actions.action-checkout %} - - uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 + - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 with: ruby-version: {% raw %}${{ matrix.ruby }}{% endraw %} - run: bundle install @@ -256,7 +256,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: {% data reusables.actions.action-checkout %} - - uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 + - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 with: ruby-version: 2.6 - run: bundle install @@ -297,7 +297,7 @@ jobs: steps: - uses: {% data reusables.actions.action-checkout %} - name: Set up Ruby 2.6 - uses: ruby/setup-ruby@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 + uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 with: ruby-version: 2.6 - run: bundle install diff --git a/content/actions/automating-builds-and-tests/building-and-testing-swift.md b/content/actions/automating-builds-and-tests/building-and-testing-swift.md index dd2e3b1a9c22..6203efc7bf7f 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-swift.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-swift.md @@ -87,7 +87,7 @@ jobs: swift: ["5.2", "5.3"] runs-on: {% raw %}${{ matrix.os }}{% endraw %} steps: - - uses: fwal/setup-swift@3e6392c1f6b2f871d06177eb5721e3eafcc405ac + - uses: fwal/setup-swift@ffb5a44dd03d3d22fb26f48fa43e43fa4ce655a7 with: swift-version: {% raw %}${{ matrix.swift }}{% endraw %} - uses: {% data reusables.actions.action-checkout %} @@ -104,7 +104,7 @@ You can configure your job to use a single specific version of Swift, such as `5 {% raw %} ```yaml{:copy} steps: - - uses: fwal/setup-swift@3e6392c1f6b2f871d06177eb5721e3eafcc405ac + - uses: fwal/setup-swift@ffb5a44dd03d3d22fb26f48fa43e43fa4ce655a7 with: swift-version: "5.3.3" - name: Get swift version @@ -119,7 +119,7 @@ You can use the same commands that you use locally to build and test your code u ```yaml{:copy} steps: - uses: {% data reusables.actions.action-checkout %} - - uses: fwal/setup-swift@3e6392c1f6b2f871d06177eb5721e3eafcc405ac + - uses: fwal/setup-swift@ffb5a44dd03d3d22fb26f48fa43e43fa4ce655a7 with: swift-version: "5.3.3" - name: Build diff --git a/content/actions/creating-actions/about-custom-actions.md b/content/actions/creating-actions/about-custom-actions.md index d4cf57de2d17..8f92850aae60 100644 --- a/content/actions/creating-actions/about-custom-actions.md +++ b/content/actions/creating-actions/about-custom-actions.md @@ -133,7 +133,7 @@ Each Git commit receives a calculated SHA value, which is unique and immutable. ```yaml steps: - - uses: actions/javascript-action@571a71ff01be3802e62f5470d0c062c03ca0ee96 + - uses: actions/javascript-action@a824008085750b8e136effc585c3cd6082bd575f ``` ## Creating a README file for your action diff --git a/content/actions/creating-actions/creating-a-javascript-action.md b/content/actions/creating-actions/creating-a-javascript-action.md index 3f6034d740f9..849c0736cf28 100644 --- a/content/actions/creating-actions/creating-a-javascript-action.md +++ b/content/actions/creating-actions/creating-a-javascript-action.md @@ -160,7 +160,7 @@ The time we greeted you. ## Example usage ```yaml -uses: actions/hello-world-javascript-action@a8dd2c1169d0de038bb630cf188c6a66d3dcecd6 +uses: actions/hello-world-javascript-action@e76147da8e5c81eaf017dede5645551d4b94427b with: who-to-greet: 'Mona the Octocat' ``` diff --git a/content/actions/creating-actions/metadata-syntax-for-github-actions.md b/content/actions/creating-actions/metadata-syntax-for-github-actions.md index 922510339dda..e0958e68b223 100644 --- a/content/actions/creating-actions/metadata-syntax-for-github-actions.md +++ b/content/actions/creating-actions/metadata-syntax-for-github-actions.md @@ -322,7 +322,7 @@ runs: using: "composite" steps: # Reference a specific commit - - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # Reference the major version of a release - uses: {% data reusables.actions.action-checkout %} # Reference a specific version diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md index ce3a3329fe87..c5bf8d51ce8d 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service.md @@ -123,7 +123,7 @@ jobs: uses: {% data reusables.actions.action-checkout %} {% raw %}- name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef + uses: aws-actions/configure-aws-credentials@0e613a0980cbf65ed5b322eb7a1e075d28913a83 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -131,7 +131,7 @@ jobs: - name: Login to Amazon ECR id: login-ecr - uses: aws-actions/amazon-ecr-login@29516697cce506511bbd2ab14eec27dcfb5626b9 + uses: aws-actions/amazon-ecr-login@62f4f872db3836360b72999f4b87f1ff13310f3a - name: Build, tag, and push image to Amazon ECR id: build-image @@ -152,14 +152,14 @@ jobs: - name: Fill in the new image ID in the Amazon ECS task definition id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@9b7abdaa04efe589b07b5bd9a2ec44a58bb25033 + uses: aws-actions/amazon-ecs-render-task-definition@c804dfbdd57f713b6c079302a4c01db7017a36fc with: task-definition: ${{ env.ECS_TASK_DEFINITION }} container-name: ${{ env.CONTAINER_NAME }} image: ${{ steps.build-image.outputs.image }} - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@293653f66dbfdd066c22b7d2c0c96454a7612d50 + uses: aws-actions/amazon-ecs-deploy-task-definition@df9643053eda01f169e64a0e60233aacca83799a with: task-definition: ${{ steps.task-def.outputs.task-definition }} service: ${{ env.ECS_SERVICE }} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md index 809c0703455f..9de9e37ce4ac 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-docker-to-azure-app-service.md @@ -118,7 +118,7 @@ jobs: run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} - name: Build and push container image to registry - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: push: true tags: ghcr.io/{% raw %}${{ env.REPO }}{% endraw %}:{% raw %}${{ github.sha }}{% endraw %} @@ -139,7 +139,7 @@ jobs: - name: Deploy to Azure Web App id: deploy-to-webapp - uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 + uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md index f18dcc913741..3d599c122e45 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-java-to-azure-app-service.md @@ -117,7 +117,7 @@ jobs: - name: Deploy to Azure Web App id: deploy-to-webapp - uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 + uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md index 96d9a3c70cd7..68791e8a2221 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-net-to-azure-app-service.md @@ -127,7 +127,7 @@ jobs: - name: Deploy to Azure Web App id: deploy-to-webapp - uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 + uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md index 86b479aba492..5a880408dc20 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-nodejs-to-azure-app-service.md @@ -122,7 +122,7 @@ jobs: - name: 'Deploy to Azure WebApp' id: deploy-to-webapp - uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 + uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md index b08c22a35dbf..6667ad674ff9 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-php-to-azure-app-service.md @@ -142,7 +142,7 @@ jobs: - name: 'Deploy to Azure Web App' id: deploy-to-webapp - uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 + uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md index 0cb8059b2c8d..e4f443a838f6 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-python-to-azure-app-service.md @@ -135,7 +135,7 @@ jobs: - name: 'Deploy to Azure Web App' id: deploy-to-webapp - uses: azure/webapps-deploy@8adc03fc9203eeb3a32ae41f516e56ed3e306da1 + uses: azure/webapps-deploy@05ac4e98bfa0f856e6669624239291c73ca27698 with: app-name: {% raw %}${{ env.AZURE_WEBAPP_NAME }}{% endraw %} publish-profile: {% raw %}${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}{% endraw %} diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-to-azure-kubernetes-service.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-to-azure-kubernetes-service.md index 488f612887e7..adf7f66587c8 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-to-azure-kubernetes-service.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-azure/deploying-to-azure-kubernetes-service.md @@ -91,7 +91,7 @@ jobs: az acr build -t -t {% raw %}${{ env.REGISTRY_URL }}{% endraw %}/{% raw %}${{ env.PROJECT_NAME }}{% endraw %}:{% raw %}${{ github.sha }}{% endraw %} - name: Gets K8s context - uses: azure/aks-set-context@4d245b6708f53b68f9decf5e1dc98e9753017daf + uses: azure/aks-set-context@94ccc775c1997a3fcfbfbce3c459fec87e0ab188 with: creds: {% raw %}${{ secrets.AZURE_CREDENTIALS }}{% endraw %} resource-group: {% raw %}${{ env.RESOURCE_GROUP }}{% endraw %} @@ -99,7 +99,7 @@ jobs: id: login - name: Configure deployment - uses: azure/k8s-bake@83c5bf7343d6ba148f927433db8307a992588614 + uses: azure/k8s-bake@61041e8c2f75c1f01186c8f05fb8b24e1fc507d8 with: renderEngine: 'helm' helmChart: {% raw %}${{ env.CHART_PATH }}{% endraw %} @@ -110,7 +110,7 @@ jobs: id: bake - name: Deploys application - - uses: Azure/k8s-deploy@dcd9bc6b1acbf6dd5c1acbaaed835c0cac33e4f3 + - uses: Azure/k8s-deploy@dd4bbd13a5abd2fc9ca8bdcb8aee152bb718fa78 with: manifests: {% raw %}${{ steps.bake.outputs.manifestsBundle }}{% endraw %} images: | diff --git a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md index b03813a6d136..a071e3408e77 100644 --- a/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md +++ b/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md @@ -164,7 +164,7 @@ jobs: uses: {% data reusables.actions.action-checkout %} # Setup gcloud CLI - - uses: google-github-actions/setup-gcloud@c66a06cb89c6c4ceab6ae8cb679bc07b689c243d + - uses: google-github-actions/setup-gcloud@1bee7de035d65ec5da40a31f8589e240eba8fde5 with: service_account_key: {% raw %}${{ secrets.GKE_SA_KEY }}{% endraw %} project_id: {% raw %}${{ secrets.GKE_PROJECT }}{% endraw %} @@ -175,7 +175,7 @@ jobs: gcloud --quiet auth configure-docker # Get the GKE credentials so we can deploy to the cluster - - uses: google-github-actions/get-gke-credentials@b044f8a93871e4b36b15adb52cec9b9cda4c5f3f + - uses: google-github-actions/get-gke-credentials@db150f2cc60d1716e61922b832eae71d2a45938f with: cluster_name: {% raw %}${{ env.GKE_CLUSTER }}{% endraw %} location: {% raw %}${{ env.GKE_ZONE }}{% endraw %} diff --git a/content/actions/examples/using-the-github-cli-on-a-runner.md b/content/actions/examples/using-the-github-cli-on-a-runner.md index 5d869659fb9f..bf0fb7c79b3f 100644 --- a/content/actions/examples/using-the-github-cli-on-a-runner.md +++ b/content/actions/examples/using-the-github-cli-on-a-runner.md @@ -117,7 +117,7 @@ jobs: - if: {% raw %}${{ failure() }}{% endraw %} name: Create issue from file id: broken-link-report - uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f + uses: peter-evans/create-issue-from-file@ceef9be92406ace67ab5421f66570acf213ec395 with: token: {% raw %}${{ env.GITHUB_TOKEN }}{% endraw %} @@ -395,7 +395,7 @@ If the `check-english-links.js` script detects broken links and returns a non-ze - if: {% raw %}${{ failure() }}{% endraw %} name: Create issue from file id: broken-link-report - uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f + uses: peter-evans/create-issue-from-file@ceef9be92406ace67ab5421f66570acf213ec395 with: token: {% raw %}${{ env.GITHUB_TOKEN }}{% endraw %} @@ -407,7 +407,7 @@ If the `check-english-links.js` script detects broken links and returns a non-ze -Uses the `peter-evans/create-issue-from-file` action to create a new {% data variables.product.prodname_dotcom %} issue. This example is pinned to a specific version of the action, using the `433e51abf769039ee20ba1293a088ca19d573b7f` SHA. +Uses the `peter-evans/create-issue-from-file` action to create a new {% data variables.product.prodname_dotcom %} issue. This example is pinned to a specific version of the action, using the `ceef9be92406ace67ab5421f66570acf213ec395` SHA. diff --git a/content/actions/learn-github-actions/expressions.md b/content/actions/learn-github-actions/expressions.md index 7c768d0c20fd..2100c1ba6bf4 100644 --- a/content/actions/learn-github-actions/expressions.md +++ b/content/actions/learn-github-actions/expressions.md @@ -32,7 +32,7 @@ You need to use specific syntax to tell {% data variables.product.prodname_dotco ```yaml steps: - - uses: actions/hello-world-javascript-action@a8dd2c1169d0de038bb630cf188c6a66d3dcecd6 + - uses: actions/hello-world-javascript-action@e76147da8e5c81eaf017dede5645551d4b94427b if: {% raw %}${{ }}{% endraw %} ``` diff --git a/content/actions/learn-github-actions/finding-and-customizing-actions.md b/content/actions/learn-github-actions/finding-and-customizing-actions.md index e1293d529457..f0c9a83524bf 100644 --- a/content/actions/learn-github-actions/finding-and-customizing-actions.md +++ b/content/actions/learn-github-actions/finding-and-customizing-actions.md @@ -163,7 +163,7 @@ If you need more reliable versioning, you should use the SHA value associated wi ```yaml steps: - - uses: actions/javascript-action@571a71ff01be3802e62f5470d0c062c03ca0ee96 + - uses: actions/javascript-action@a824008085750b8e136effc585c3cd6082bd575f ``` ### Using branches diff --git a/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md b/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md index ac696fede776..b324c7682a97 100644 --- a/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md +++ b/content/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added.md @@ -48,7 +48,7 @@ In the tutorial, you will first make a workflow file that uses the [`peter-evans issues: write steps: - name: Add comment - uses: peter-evans/create-or-update-comment@67dcc547d311b736a8e6c5c236542148a47adc3d + uses: peter-evans/create-or-update-comment@5f728c3dae25f329afbe34ee4d08eef25569d79f with: issue-number: {% raw %}${{ github.event.issue.number }}{% endraw %} body: | diff --git a/content/actions/managing-issues-and-pull-requests/moving-assigned-issues-on-project-boards.md b/content/actions/managing-issues-and-pull-requests/moving-assigned-issues-on-project-boards.md index f4c0f4182063..5f69efb90fd1 100644 --- a/content/actions/managing-issues-and-pull-requests/moving-assigned-issues-on-project-boards.md +++ b/content/actions/managing-issues-and-pull-requests/moving-assigned-issues-on-project-boards.md @@ -45,7 +45,7 @@ In the tutorial, you will first make a workflow file that uses the [`alex-page/g move-assigned-card: runs-on: ubuntu-latest steps: - - uses: alex-page/github-project-automation-plus@1f8873e97e3c8f58161a323b7c568c1f623a1c4d + - uses: alex-page/github-project-automation-plus@7ffb872c64bd809d23563a130a0a97d01dfa8f43 with: project: Docs Work column: In Progress diff --git a/content/actions/managing-issues-and-pull-requests/scheduling-issue-creation.md b/content/actions/managing-issues-and-pull-requests/scheduling-issue-creation.md index 5b61b181c0e6..32be75fa1a3c 100644 --- a/content/actions/managing-issues-and-pull-requests/scheduling-issue-creation.md +++ b/content/actions/managing-issues-and-pull-requests/scheduling-issue-creation.md @@ -48,7 +48,7 @@ In the tutorial, you will first make a workflow file that uses the [`imjohnbo/is issues: write steps: - name: Create team sync issue - uses: imjohnbo/issue-bot@4c86f3182f738efa1a0a7fec4df114ac21c4b7b1 + uses: imjohnbo/issue-bot@3d96848fb5e9a4a473bb81ae62b4b4866a56e93a with: assignees: "monalisa, doctocat, hubot" labels: "weekly sync, docs-team" diff --git a/content/actions/migrating-to-github-actions/manual-migrations/migrating-from-circleci-to-github-actions.md b/content/actions/migrating-to-github-actions/manual-migrations/migrating-from-circleci-to-github-actions.md index 6c03cec44b4c..a3c1b23cee46 100644 --- a/content/actions/migrating-to-github-actions/manual-migrations/migrating-from-circleci-to-github-actions.md +++ b/content/actions/migrating-to-github-actions/manual-migrations/migrating-from-circleci-to-github-actions.md @@ -446,7 +446,7 @@ jobs: steps: - uses: {% data reusables.actions.action-checkout %} - name: Setup Ruby - uses: eregon/use-ruby-action@e92b7971f0f3a08d2cf29cceb1d82d4c704a2a78 + uses: eregon/use-ruby-action@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 with: ruby-version: {% raw %}${{ matrix.ruby }}{% endraw %} - name: Cache dependencies diff --git a/content/actions/publishing-packages/publishing-docker-images.md b/content/actions/publishing-packages/publishing-docker-images.md index f2cf0136bc6b..e2db26a2d096 100644 --- a/content/actions/publishing-packages/publishing-docker-images.md +++ b/content/actions/publishing-packages/publishing-docker-images.md @@ -93,19 +93,19 @@ jobs: uses: {% data reusables.actions.action-checkout %} - name: Log in to Docker Hub - uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: username: {% raw %}${{ secrets.DOCKER_USERNAME }}{% endraw %} password: {% raw %}${{ secrets.DOCKER_PASSWORD }}{% endraw %} - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@5edf56f2c486f342f4319e9c0a1a79d59a474516 + uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: images: my-docker-hub-namespace/my-docker-hub-repository - name: Build and push Docker image - uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: context: . push: true @@ -174,14 +174,14 @@ jobs: uses: {% data reusables.actions.action-checkout %} - name: Log in to GitHub Docker Registry - uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: registry: {% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %} username: {% raw %}${{ github.actor }}{% endraw %} password: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} - name: Build and push Docker image - uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: context: . push: true @@ -226,13 +226,13 @@ jobs: uses: {% data reusables.actions.action-checkout %} - name: Log in to Docker Hub - uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: username: {% raw %}${{ secrets.DOCKER_USERNAME }}{% endraw %} password: {% raw %}${{ secrets.DOCKER_PASSWORD }}{% endraw %} - name: Log in to the {% ifversion fpt or ghec or ghes > 3.4 %}Container{% else %}Docker{% endif %} registry - uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: registry: {% ifversion fpt or ghec %}ghcr.io{% elsif ghae %}docker.YOUR-HOSTNAME.com{% elsif ghes > 3.4 %}{% data reusables.package_registry.container-registry-hostname %}{% else %}docker.pkg.github.com{% endif %} username: {% raw %}${{ github.actor }}{% endraw %} @@ -240,14 +240,14 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@5edf56f2c486f342f4319e9c0a1a79d59a474516 + uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: images: | my-docker-hub-namespace/my-docker-hub-repository {% ifversion fpt or ghec or ghes > 3.4 %}{% data reusables.package_registry.container-registry-hostname %}/{% raw %}${{ github.repository }}{% endraw %}{% elsif ghae %}{% raw %}docker.YOUR-HOSTNAME.com/${{ github.repository }}/my-image{% endraw %}{% else %}{% raw %}docker.pkg.github.com/${{ github.repository }}/my-image{% endraw %}{% endif %} - name: Build and push Docker images - uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: context: . push: true diff --git a/content/actions/publishing-packages/publishing-java-packages-with-gradle.md b/content/actions/publishing-packages/publishing-java-packages-with-gradle.md index 84fd39281b6f..5bff463075ba 100644 --- a/content/actions/publishing-packages/publishing-java-packages-with-gradle.md +++ b/content/actions/publishing-packages/publishing-java-packages-with-gradle.md @@ -97,7 +97,7 @@ jobs: java-version: '11' distribution: 'adopt' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 + uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 - name: Publish package uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: @@ -171,7 +171,7 @@ jobs: java-version: '11' distribution: 'adopt' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 + uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 - name: Publish package uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: @@ -253,7 +253,7 @@ jobs: java-version: '11' distribution: 'adopt' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@094d8354f0cc239ee6a315e3331528fbc2008041 + uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 - name: Publish package uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: diff --git a/content/actions/using-workflows/workflow-syntax-for-github-actions.md b/content/actions/using-workflows/workflow-syntax-for-github-actions.md index b379e85bf388..9f3641b9d25e 100644 --- a/content/actions/using-workflows/workflow-syntax-for-github-actions.md +++ b/content/actions/using-workflows/workflow-syntax-for-github-actions.md @@ -429,7 +429,7 @@ Actions are either JavaScript files or Docker containers. If the action you're u ```yaml steps: # Reference a specific commit - - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # Reference the major version of a release - uses: {% data reusables.actions.action-checkout %} # Reference a specific version diff --git a/content/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions.md b/content/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions.md index 808cbc9a74bf..342d846fa6a4 100644 --- a/content/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions.md +++ b/content/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions.md @@ -65,7 +65,7 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@cd81e4cb40c3672f41b30a21758d6298e821691b + uses: tibdex/github-app-token@c2055a00597a80f713b78b1650e8d3418f4d9a65 with: app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %} private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %} @@ -308,7 +308,7 @@ This workflow runs whenever a pull request in the repository is marked as "ready ```yaml - name: Generate token id: generate_token - uses: tibdex/github-app-token@cd81e4cb40c3672f41b30a21758d6298e821691b + uses: tibdex/github-app-token@c2055a00597a80f713b78b1650e8d3418f4d9a65 with: app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %} private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %} diff --git a/content/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions.md b/content/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions.md index c2f238420d22..bfc1f9d9f8f4 100644 --- a/content/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions.md +++ b/content/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions.md @@ -154,13 +154,13 @@ jobs: - name: Checkout uses: {% data reusables.actions.action-checkout %} - name: Log in to GitHub Docker Registry - uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: registry: {% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %} username: {% raw %}${{ github.actor }}{% endraw %} password: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} - name: Build and push Docker image - uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: push: true tags: | @@ -317,7 +317,7 @@ permissions: {% raw %} ```yaml - name: Log in to the Container registry - uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -336,7 +336,7 @@ permissions: ```yaml - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@5edf56f2c486f342f4319e9c0a1a79d59a474516 + uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} ``` @@ -353,7 +353,7 @@ permissions: {% raw %} ```yaml - name: Log in to GitHub Docker Registry - uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: registry: {% endraw %}{% ifversion ghae %}docker.YOUR-HOSTNAME.com{% else %}docker.pkg.github.com{% endif %}{% raw %} username: ${{ github.actor }} @@ -384,7 +384,7 @@ permissions: {% raw %} ```yaml -uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 +uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 ``` {% endraw %} diff --git a/content/packages/working-with-a-github-packages-registry/working-with-the-container-registry.md b/content/packages/working-with-a-github-packages-registry/working-with-the-container-registry.md index aa4efc801eb1..98793f091686 100644 --- a/content/packages/working-with-a-github-packages-registry/working-with-the-container-registry.md +++ b/content/packages/working-with-a-github-packages-registry/working-with-the-container-registry.md @@ -212,7 +212,7 @@ For example, the following {% data variables.product.prodname_actions %} workflo {% data reusables.actions.actions-not-certified-by-github-comment %} - name: Build and push Docker image - uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: context: . file: ./Dockerfile diff --git a/content/rest/quickstart.md b/content/rest/quickstart.md index b79407f4efe1..64c1b69b63da 100644 --- a/content/rest/quickstart.md +++ b/content/rest/quickstart.md @@ -92,7 +92,7 @@ If you are authenticating with a {% data variables.product.prodname_github_app % steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@cd81e4cb40c3672f41b30a21758d6298e821691b + uses: tibdex/github-app-token@c2055a00597a80f713b78b1650e8d3418f4d9a65 with: app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %} private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %} @@ -249,7 +249,7 @@ If you are authenticating with a {% data variables.product.prodname_github_app % - name: Generate token id: generate_token - uses: tibdex/github-app-token@cd81e4cb40c3672f41b30a21758d6298e821691b + uses: tibdex/github-app-token@c2055a00597a80f713b78b1650e8d3418f4d9a65 with: app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %} private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %} @@ -362,7 +362,7 @@ If you are authenticating with a {% data variables.product.prodname_github_app % steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@cd81e4cb40c3672f41b30a21758d6298e821691b + uses: tibdex/github-app-token@c2055a00597a80f713b78b1650e8d3418f4d9a65 with: app_id: {% raw %}${{ secrets.APP_ID }}{% endraw %} private_key: {% raw %}${{ secrets.APP_PEM }}{% endraw %} diff --git a/contributing/content-style-guide.md b/contributing/content-style-guide.md index 8491aec41137..47545a28e0f9 100644 --- a/contributing/content-style-guide.md +++ b/contributing/content-style-guide.md @@ -533,7 +533,7 @@ This is an example of a third-party action: ``` steps: - - uses: google-github-actions/setup-gcloud@c66a06cb89c6c4ceab6ae8cb679bc07b689c243d + - uses: google-github-actions/setup-gcloud@1bee7de035d65ec5da40a31f8589e240eba8fde5 ``` Examples: @@ -545,7 +545,7 @@ Code examples that use third-party actions must always pin to a full length comm ``` steps: - - uses: google-github-actions/setup-gcloud@c66a06cb89c6c4ceab6ae8cb679bc07b689c243d + - uses: google-github-actions/setup-gcloud@1bee7de035d65ec5da40a31f8589e240eba8fde5 ``` For GitHub Docs purposes, a third-party action is any action that doesn't have one of the following prefixes: `actions/`, `github/`, and `octo-org/`. For example, this is a first-party action: diff --git a/data/reusables/actions/allow-specific-actions-intro.md b/data/reusables/actions/allow-specific-actions-intro.md index 5a3a085f7df8..f09fe5788bae 100644 --- a/data/reusables/actions/allow-specific-actions-intro.md +++ b/data/reusables/actions/allow-specific-actions-intro.md @@ -10,7 +10,7 @@ When you choose {% data reusables.actions.policy-label-for-select-actions-workfl To restrict access to specific tags or commit SHAs of an action{% ifversion actions-workflow-policy %} or reusable workflow{% endif %}, use the same syntax used in the workflow to select the action{% ifversion actions-workflow-policy %} or reusable workflow{% endif %}. - - For an action, the syntax is `/@`. For example, use `actions/javascript-action@v1.0.1` to select a tag or `actions/javascript-action@571a71ff01be3802e62f5470d0c062c03ca0ee96` to select a SHA. For more information, see "[AUTOTITLE](/actions/learn-github-actions/finding-and-customizing-actions#using-release-management-for-your-custom-actions)." + - For an action, the syntax is `/@`. For example, use `actions/javascript-action@v1.0.1` to select a tag or `actions/javascript-action@a824008085750b8e136effc585c3cd6082bd575f` to select a SHA. For more information, see "[AUTOTITLE](/actions/learn-github-actions/finding-and-customizing-actions#using-release-management-for-your-custom-actions)." {%- ifversion actions-workflow-policy %} - For a reusable workflow, the syntax is `///@`. For example, `octo-org/another-repo/.github/workflows/workflow.yml@v1`. For more information, see "[AUTOTITLE](/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow)." {%- endif %} diff --git a/data/reusables/package_registry/publish-docker-image.md b/data/reusables/package_registry/publish-docker-image.md index 7bb2c8d5f1ce..e1a6497cc905 100644 --- a/data/reusables/package_registry/publish-docker-image.md +++ b/data/reusables/package_registry/publish-docker-image.md @@ -25,7 +25,7 @@ jobs: uses: {% data reusables.actions.action-checkout %} - name: Log in to the Container registry - uses: docker/login-action@b61a9ce7bd93239c435d3a7e3d6fe56020bf38c3 + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: registry: {% raw %}${{ env.REGISTRY }}{% endraw %} username: {% raw %}${{ github.actor }}{% endraw %} @@ -33,12 +33,12 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@5edf56f2c486f342f4319e9c0a1a79d59a474516 + uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: images: {% raw %}${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}{% endraw %} - name: Build and push Docker image - uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: context: . push: true