From 08d5e508668cdc58ce292362caed3da3fc2f3c10 Mon Sep 17 00:00:00 2001 From: rahul wale Date: Mon, 20 Jul 2026 10:58:59 -0700 Subject: [PATCH] ci: pin actions in credential-bearing release workflows Merge https://github.com/google/adk-python/pull/6172 Pin Action references in the credential-bearing release workflows to their currently resolved immutable commit SHAs. PiperOrigin-RevId: 950937818 --- .../analyze-releases-for-adk-docs-updates.yml | 10 +++++----- .github/workflows/release-finalize.yml | 2 +- .github/workflows/release-update-adk-web.yaml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/analyze-releases-for-adk-docs-updates.yml b/.github/workflows/analyze-releases-for-adk-docs-updates.yml index 78e9dcfa..973d39c7 100644 --- a/.github/workflows/analyze-releases-for-adk-docs-updates.yml +++ b/.github/workflows/analyze-releases-for-adk-docs-updates.yml @@ -45,15 +45,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 with: python-version: '3.11' - name: Load adk-bot SSH Private Key - uses: webfactory/ssh-agent@v0.9.1 + uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 with: ssh-private-key: ${{ secrets.ADK_BOT_SSH_PRIVATE_KEY }} @@ -64,7 +64,7 @@ jobs: - name: Restore session DB from cache if: ${{ github.event.inputs.resume == 'true' }} - uses: actions/cache/restore@v4 + uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 with: path: contributing/samples/adk_team/adk_documentation/adk_release_analyzer/sessions.db key: analyzer-session-db-${{ github.run_id }}-${{ github.run_attempt }} @@ -102,7 +102,7 @@ jobs: - name: Save session DB to cache if: always() - uses: actions/cache/save@v4 + uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 with: path: contributing/samples/adk_team/adk_documentation/adk_release_analyzer/sessions.db key: analyzer-session-db-${{ github.run_id }}-${{ github.run_attempt }} diff --git a/.github/workflows/release-finalize.yml b/.github/workflows/release-finalize.yml index 8422b8b9..05b15e07 100644 --- a/.github/workflows/release-finalize.yml +++ b/.github/workflows/release-finalize.yml @@ -59,7 +59,7 @@ jobs: echo "manifest_file=.github/.release-please-manifest.json" >> $GITHUB_OUTPUT fi - - uses: actions/checkout@v6 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 if: steps.check.outputs.is_release_pr == 'true' with: ref: ${{ github.event.pull_request.base.ref }} diff --git a/.github/workflows/release-update-adk-web.yaml b/.github/workflows/release-update-adk-web.yaml index b0796652..38cc4359 100644 --- a/.github/workflows/release-update-adk-web.yaml +++ b/.github/workflows/release-update-adk-web.yaml @@ -36,7 +36,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 with: persist-credentials: false @@ -78,7 +78,7 @@ jobs: echo "email=$(echo "$USER_JSON" | jq -r '.id')+$(echo "$USER_JSON" | jq -r '.login')@users.noreply.github.com" >> $GITHUB_OUTPUT - name: Create Pull Request - uses: peter-evans/create-pull-request@v6 + uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6 with: token: ${{ secrets.RELEASE_PAT }} commit-message: "Update compiled adk web files from ${{ github.event.inputs.adk_web_repo }}@${{ github.event.inputs.adk_web_tag || 'latest' }}"