From d88bf278b5bd520076873386660fa356e4aab284 Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Fri, 28 Aug 2026 18:13:33 -0400 Subject: [PATCH] Pin GitHub Actions to full-length commit SHAs --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/delete-slot.yml | 4 ++-- .github/workflows/deploy-to-gh-pages.yml | 4 ++-- .github/workflows/deploy-to-staging-site.yml | 20 ++++++++++---------- 4 files changed, 25 insertions(+), 14 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..2c48305b7e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + groups: + github-actions: + patterns: ["*"] + schedule: + interval: "weekly" + cooldown: + default-days: 7 diff --git a/.github/workflows/delete-slot.yml b/.github/workflows/delete-slot.yml index 9a17cd489e..78676b7f50 100644 --- a/.github/workflows/delete-slot.yml +++ b/.github/workflows/delete-slot.yml @@ -25,7 +25,7 @@ jobs: steps: #OIDC - name: Run Azure Login with OIDC - uses: azure/login@v2 + uses: azure/login@7184910d9eb2b1c5e48f7073824a90609bb9b6d6 # v2.3.1 with: client-id: ${{ secrets.AZURE_CLIENT_ID }} tenant-id: ${{ secrets.AZURE_TENANT_ID }} @@ -45,7 +45,7 @@ jobs: steps: - name: Delete Deployment Environment - uses: strumwolf/delete-deployment-environment@v2.0.1 + uses: strumwolf/delete-deployment-environment@45c821e46baa405e25410700fe2e9643929706a0 # v2.0.1 with: environment: "PR #${{ github.event.number }}" token: ${{ github.token }} diff --git a/.github/workflows/deploy-to-gh-pages.yml b/.github/workflows/deploy-to-gh-pages.yml index 3c0e5a72df..abf4341613 100644 --- a/.github/workflows/deploy-to-gh-pages.yml +++ b/.github/workflows/deploy-to-gh-pages.yml @@ -18,10 +18,10 @@ jobs: steps: - name: Check out repo - uses: actions/checkout@v1 + uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0 - name: Set up Ruby 3.0 - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0 with: ruby-version: '3.0' diff --git a/.github/workflows/deploy-to-staging-site.yml b/.github/workflows/deploy-to-staging-site.yml index 4cae9782d1..478143b2f4 100644 --- a/.github/workflows/deploy-to-staging-site.yml +++ b/.github/workflows/deploy-to-staging-site.yml @@ -22,10 +22,10 @@ jobs: steps: - name: Check out repo - uses: actions/checkout@v1 + uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0 - name: Set up Ruby 3.0 - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0 with: ruby-version: '3.0' bundler-cache: true @@ -44,7 +44,7 @@ jobs: run: cd _site && zip -r ../blog.zip . - name: Upload artifact for deployment job - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: jekyll-app path: blog.zip @@ -59,14 +59,14 @@ jobs: steps: - name: Run Azure Login with OIDC - uses: azure/login@v2 + uses: azure/login@7184910d9eb2b1c5e48f7073824a90609bb9b6d6 # v2.3.1 with: client-id: ${{ secrets.AZURE_CLIENT_ID }} tenant-id: ${{ secrets.AZURE_TENANT_ID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - name: Azure CLI script - uses: azure/CLI@v2 + uses: azure/CLI@9f7ce6f37c31b777ec6c6b6d1dfe7db79f497956 # v2.2.0 with: azcliversion: latest inlineScript: | @@ -94,33 +94,33 @@ jobs: steps: - name: Run Azure Login with OIDC - uses: azure/login@v2 + uses: azure/login@7184910d9eb2b1c5e48f7073824a90609bb9b6d6 # v2.3.1 with: client-id: ${{ secrets.AZURE_CLIENT_ID }} tenant-id: ${{ secrets.AZURE_TENANT_ID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - name: Azure CLI script - uses: azure/CLI@v2 + uses: azure/CLI@9f7ce6f37c31b777ec6c6b6d1dfe7db79f497956 # v2.2.0 with: azcliversion: latest inlineScript: | az account show - name: Download artifact from build job - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: jekyll-app - name: Deploy to slot on staging site - uses: Azure/webapps-deploy@v3.0.0 + uses: Azure/webapps-deploy@145a0687697df1d8a28909569f6e5d86213041f9 # v3.0.0 with: app-name: ${{ env.WEBAPP_NAME }} slot-name: ${{ env.SLOT_NAME }} package: blog.zip - name: Comment on PR with the preview link - uses: mshick/add-pr-comment@v1 + uses: mshick/add-pr-comment@a96c578acba98b60f16c6866d5f20478dc4ef68b # v1 with: message: | ## Preview link: https://antares-blog-staging-pr-${{ github.event.number }}.azurewebsites.net