[CI] Run zizmor in pre-commit and fix workflow findings (#25225)

Lint workflow to checkGitHub Actions workflows.

Run [zizmor](https://docs.zizmor.sh/) from pre-commit, and fix zizimor
findings.

### Changes

- **Template injection:** run steps no longer expand `${{ inputs.* }}`,
`${{ github.event.inputs.* }}` or `${{ env.* }}` directly into the
script. Each value goes through the step's `env:` and is used as a
quoted shell variable.
- **Checkout token on disk :** checkouts set `persist-credentials:
false`.
- **`secrets: inherit`:** ci.yml, pkgci.yml and samples.yml pass each
reusable workflow only the secrets it declares under `workflow_call`.

- **Other findings:**
- Dependabot waits seven days before it proposes a new action release.
Security updates are not delayed.
- publish_website.yml runs on `release` and pushes to gh-pages, so it no
longer restores a pip cache that other workflows on main can write
(zizimor: cache-poisoning)
- Three pin comments named a release that did not match the pinned
commit.
- pull_request_greeter.yml keeps `pull_request_target`, marked as
reviewed: it runs only base-branch code and passes PR fields through
`env`.
- The candidate release workflows keep ncipollo/release-action, because
build_package.yml needs the draft release id it outputs.
- **Hook:** zizmor v1.32.0, pinned to a commit.

---------

Signed-off-by: Tobias Fuchs <fuchs@roofline.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index cc365f7..3e823a8 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -6,6 +6,11 @@
     directory: "/"
     schedule:
       interval: "weekly"
+    # Wait a week before proposing a new release, so that a compromised
+    # release is likely to be yanked before it reaches a PR. Security
+    # updates are not delayed.
+    cooldown:
+      default-days: 7
     groups:
       github-actions:
         patterns:
diff --git a/.github/workflows/build_clang_tidy.yml b/.github/workflows/build_clang_tidy.yml
index 0529452..fcb6ca4 100644
--- a/.github/workflows/build_clang_tidy.yml
+++ b/.github/workflows/build_clang_tidy.yml
@@ -40,6 +40,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
 
       - name: Install Python requirements
diff --git a/.github/workflows/build_package.yml b/.github/workflows/build_package.yml
index 2f753e1..beb3d77 100644
--- a/.github/workflows/build_package.yml
+++ b/.github/workflows/build_package.yml
@@ -52,6 +52,7 @@
       - name: Checkout repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           path: "c" # Windows can hit path length limits, so use a short path.
           submodules: false
           ref: ${{ github.event.inputs.commit }}
@@ -59,13 +60,19 @@
       - name: Write version info (release)
         id: version_local
         shell: bash
+        env:
+          PACKAGE_SUFFIX: ${{ github.event.inputs.package_suffix }}
+          LEGACY_PACKAGE_VERSION: ${{ github.event.inputs.legacy_package_version }}
+          PACKAGE_VERSION: ${{ github.event.inputs.package_version }}
+          COMPILER_PACKAGE_VERSION: ${{ github.event.inputs.compiler_package_version }}
+          RUNTIME_PACKAGE_VERSION: ${{ github.event.inputs.runtime_package_version }}
         run: |
           # Note: `version_info.json` holds the CalVer version and is still used
           # for iree-tools-tf and iree-tools-tflite.
           cat << EOF > ./c/version_info.json
           {
-            "package-suffix": "${{ github.event.inputs.package_suffix }}",
-            "package-version": "${{ github.event.inputs.legacy_package_version }}",
+            "package-suffix": "${PACKAGE_SUFFIX}",
+            "package-version": "${LEGACY_PACKAGE_VERSION}",
             "iree-revision": "$(cd ./c && git rev-parse HEAD)"
           }
           EOF
@@ -74,8 +81,8 @@
           echo "iree-dist"
           cat << EOF > ./c/version_local.json
           {
-            "package-suffix": "${{ github.event.inputs.package_suffix }}",
-            "package-version": "${{ github.event.inputs.package_version }}",
+            "package-suffix": "${PACKAGE_SUFFIX}",
+            "package-version": "${PACKAGE_VERSION}",
             "iree-revision": "$(cd ./c && git rev-parse HEAD)"
           }
           EOF
@@ -84,8 +91,8 @@
           echo "iree-base-compiler"
           cat << EOF > ./c/compiler/version_local.json
           {
-            "package-suffix": "${{ github.event.inputs.package_suffix }}",
-            "package-version": "${{ github.event.inputs.compiler_package_version }}",
+            "package-suffix": "${PACKAGE_SUFFIX}",
+            "package-version": "${COMPILER_PACKAGE_VERSION}",
             "iree-revision": "$(cd ./c && git rev-parse HEAD)"
           }
           EOF
@@ -94,8 +101,8 @@
           echo "iree-base-runtime"
           cat << EOF > ./c/runtime/version_local.json
           {
-            "package-suffix": "${{ github.event.inputs.package_suffix }}",
-            "package-version": "${{ github.event.inputs.runtime_package_version }}",
+            "package-suffix": "${PACKAGE_SUFFIX}",
+            "package-version": "${RUNTIME_PACKAGE_VERSION}",
             "iree-revision": "$(cd ./c && git rev-parse HEAD)"
           }
           EOF
@@ -191,6 +198,7 @@
     steps:
       - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           path: "c" # Windows can hit path length limits, so use a short path.
           submodules: true
           ref: ${{ github.event.inputs.commit }}
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7cb25c8..374d08f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -47,7 +47,7 @@
 # Jobs are organized into groups and topologically sorted by dependencies
 jobs:
   setup:
-    uses: ./.github/workflows/setup.yml
+    uses: $/.github/workflows/setup.yml
     # A called workflow can't exceed the permissions granted here.
     permissions:
       contents: read
@@ -84,6 +84,8 @@
       BUILD_DIR: build-runtime
     steps:
       - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
       - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
         with:
           python-version: "3.11"
@@ -140,6 +142,8 @@
       CXX: clang++
     steps:
       - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
       - name: Install requirements
         run: sudo apt update && sudo apt install -y ninja-build
       - name: Checkout runtime submodules
@@ -177,6 +181,8 @@
         shell: bash
     steps:
       - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
       - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
         with:
           node-version: "22"
@@ -231,6 +237,8 @@
       BUILD_DIR: build-tracing
     steps:
       - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
 
       - name: (Linux) Install requirements
         if: contains(matrix.runs-on, 'ubuntu')
@@ -282,74 +290,86 @@
   linux_x64_bazel:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_bazel')
-    uses: ./.github/workflows/ci_linux_x64_bazel.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_linux_x64_bazel.yml
 
   linux_x64_clang:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang')
-    uses: ./.github/workflows/ci_linux_x64_clang.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_linux_x64_clang.yml
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING: ${{ secrets.AZURE_CCACHE_CONNECTION_STRING }}
 
   linux_x64_gcc:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_gcc')
-    uses: ./.github/workflows/ci_linux_x64_gcc.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_linux_x64_gcc.yml
+    secrets:
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
 
   linux_arm64_clang:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_arm64_clang')
-    uses: ./.github/workflows/ci_linux_arm64_clang.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_linux_arm64_clang.yml
+    secrets:
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
 
   linux_x64_clang_debug:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang_debug')
-    uses: ./.github/workflows/ci_linux_x64_clang_debug.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_linux_x64_clang_debug.yml
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING: ${{ secrets.AZURE_CCACHE_CONNECTION_STRING }}
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
 
   linux_x64_clang_dynamic_plugins:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang_dynamic_plugins')
-    uses: ./.github/workflows/ci_linux_x64_clang_dynamic_plugins.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_linux_x64_clang_dynamic_plugins.yml
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING: ${{ secrets.AZURE_CCACHE_CONNECTION_STRING }}
 
   linux_x64_clang_asan:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang_asan')
-    uses: ./.github/workflows/ci_linux_x64_clang_asan.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_linux_x64_clang_asan.yml
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING: ${{ secrets.AZURE_CCACHE_CONNECTION_STRING }}
 
   linux_x64_clang_ubsan:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang_ubsan')
-    uses: ./.github/workflows/ci_linux_x64_clang_ubsan.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_linux_x64_clang_ubsan.yml
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING: ${{ secrets.AZURE_CCACHE_CONNECTION_STRING }}
 
   linux_x64_clang_tsan:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang_tsan')
-    uses: ./.github/workflows/ci_linux_x64_clang_tsan.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_linux_x64_clang_tsan.yml
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING: ${{ secrets.AZURE_CCACHE_CONNECTION_STRING }}
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
 
   linux_x64_clang_byollvm:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang_byollvm')
-    uses: ./.github/workflows/ci_linux_x64_clang_byollvm.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_linux_x64_clang_byollvm.yml
+    secrets:
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
 
   macos_arm64_clang:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'macos_arm64_clang')
-    uses: ./.github/workflows/ci_macos_arm64_clang.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_macos_arm64_clang.yml
+    secrets:
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
 
   windows_x64_msvc:
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'windows_x64_msvc')
-    uses: ./.github/workflows/ci_windows_x64_msvc.yml
-    secrets: inherit
+    uses: $/.github/workflows/ci_windows_x64_msvc.yml
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING: ${{ secrets.AZURE_CCACHE_CONNECTION_STRING }}
 
   ##############################################################################
 
@@ -378,8 +398,9 @@
       - linux_x64_clang_byollvm
       - macos_arm64_clang
       - windows_x64_msvc
-    uses: ./.github/workflows/workflow_summary.yml
-    secrets: inherit
+    uses: $/.github/workflows/workflow_summary.yml
+    secrets:
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
     with:
       jobs-json: ${{ toJson(needs) }}
       ci-deferred: ${{ needs.setup.outputs.ci-deferred == 'true' }}
diff --git a/.github/workflows/ci_linux_arm64_clang.yml b/.github/workflows/ci_linux_arm64_clang.yml
index f33dbf6..c5702ae 100644
--- a/.github/workflows/ci_linux_arm64_clang.yml
+++ b/.github/workflows/ci_linux_arm64_clang.yml
@@ -12,6 +12,9 @@
     - cron: "15 9 * * 1-5"
   workflow_dispatch:
   workflow_call:
+    secrets:
+      DISCORD_WEBHOOK:
+        required: false
 
 permissions:
   contents: read
@@ -32,6 +35,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       - name: Install Python requirements
         run: |
diff --git a/.github/workflows/ci_linux_x64_bazel.yml b/.github/workflows/ci_linux_x64_bazel.yml
index 8a4a151..f906ba6 100644
--- a/.github/workflows/ci_linux_x64_bazel.yml
+++ b/.github/workflows/ci_linux_x64_bazel.yml
@@ -29,6 +29,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       - name: Install Python requirements
         run: python3 -m pip install -r ./runtime/bindings/python/iree/runtime/build_requirements.txt
diff --git a/.github/workflows/ci_linux_x64_clang.yml b/.github/workflows/ci_linux_x64_clang.yml
index 0e95248..5d4586e 100644
--- a/.github/workflows/ci_linux_x64_clang.yml
+++ b/.github/workflows/ci_linux_x64_clang.yml
@@ -8,6 +8,9 @@
 
 on:
   workflow_call:
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING:
+        required: false
   workflow_dispatch:
 
 permissions:
@@ -46,6 +49,7 @@
       - name: Checking out repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
 
       - name: Install Python requirements and TheRock SDK
diff --git a/.github/workflows/ci_linux_x64_clang_asan.yml b/.github/workflows/ci_linux_x64_clang_asan.yml
index 3b8024f..61bef5b 100644
--- a/.github/workflows/ci_linux_x64_clang_asan.yml
+++ b/.github/workflows/ci_linux_x64_clang_asan.yml
@@ -8,6 +8,9 @@
 
 on:
   workflow_call:
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING:
+        required: false
   workflow_dispatch:
 
 permissions:
@@ -24,6 +27,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       - name: Install Python requirements
         run: |
diff --git a/.github/workflows/ci_linux_x64_clang_byollvm.yml b/.github/workflows/ci_linux_x64_clang_byollvm.yml
index 4e6d3d9..e122be1 100644
--- a/.github/workflows/ci_linux_x64_clang_byollvm.yml
+++ b/.github/workflows/ci_linux_x64_clang_byollvm.yml
@@ -12,6 +12,9 @@
     - cron: "15 9 * * 1-5"
   workflow_dispatch:
   workflow_call:
+    secrets:
+      DISCORD_WEBHOOK:
+        required: false
 
 permissions:
   contents: read
@@ -28,6 +31,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       - name: Install Python requirements
         run: python3 -m pip install -r ./build_tools/github_actions/ci_requirements.txt
diff --git a/.github/workflows/ci_linux_x64_clang_debug.yml b/.github/workflows/ci_linux_x64_clang_debug.yml
index f9b27ee..83dd45e 100644
--- a/.github/workflows/ci_linux_x64_clang_debug.yml
+++ b/.github/workflows/ci_linux_x64_clang_debug.yml
@@ -12,6 +12,11 @@
     - cron: "15 9 * * 1-5"
   workflow_dispatch:
   workflow_call:
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING:
+        required: false
+      DISCORD_WEBHOOK:
+        required: false
 
 permissions:
   contents: read
@@ -36,6 +41,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       - name: Install Python requirements
         run: |
diff --git a/.github/workflows/ci_linux_x64_clang_dynamic_plugins.yml b/.github/workflows/ci_linux_x64_clang_dynamic_plugins.yml
index 265759c..761b4f5 100644
--- a/.github/workflows/ci_linux_x64_clang_dynamic_plugins.yml
+++ b/.github/workflows/ci_linux_x64_clang_dynamic_plugins.yml
@@ -8,6 +8,9 @@
 
 on:
   workflow_call:
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING:
+        required: false
   workflow_dispatch:
 
 permissions:
@@ -34,6 +37,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       - name: Install Python requirements
         run: |
diff --git a/.github/workflows/ci_linux_x64_clang_tsan.yml b/.github/workflows/ci_linux_x64_clang_tsan.yml
index 79c4a89..cbfb3c3 100644
--- a/.github/workflows/ci_linux_x64_clang_tsan.yml
+++ b/.github/workflows/ci_linux_x64_clang_tsan.yml
@@ -12,6 +12,11 @@
     - cron: "15 9 * * 1-5"
   workflow_dispatch:
   workflow_call:
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING:
+        required: false
+      DISCORD_WEBHOOK:
+        required: false
 
 permissions:
   contents: read
@@ -35,6 +40,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       - name: Install Python requirements
         run: |
diff --git a/.github/workflows/ci_linux_x64_clang_ubsan.yml b/.github/workflows/ci_linux_x64_clang_ubsan.yml
index 99b4d8e..5a6c680 100644
--- a/.github/workflows/ci_linux_x64_clang_ubsan.yml
+++ b/.github/workflows/ci_linux_x64_clang_ubsan.yml
@@ -8,6 +8,9 @@
 
 on:
   workflow_call:
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING:
+        required: false
   workflow_dispatch:
 
 permissions:
@@ -24,6 +27,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       - name: Install Python requirements
         run: |
diff --git a/.github/workflows/ci_linux_x64_gcc.yml b/.github/workflows/ci_linux_x64_gcc.yml
index 69bb530..9af1ebe 100644
--- a/.github/workflows/ci_linux_x64_gcc.yml
+++ b/.github/workflows/ci_linux_x64_gcc.yml
@@ -12,6 +12,9 @@
     - cron: "15 9 * * 1-5"
   workflow_dispatch:
   workflow_call:
+    secrets:
+      DISCORD_WEBHOOK:
+        required: false
 
 permissions:
   contents: read
@@ -30,6 +33,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       - name: Install Python requirements
         run: python3 -m pip install -r ./build_tools/github_actions/ci_requirements.txt
diff --git a/.github/workflows/ci_macos_arm64_clang.yml b/.github/workflows/ci_macos_arm64_clang.yml
index 116d35c..c4904d0 100644
--- a/.github/workflows/ci_macos_arm64_clang.yml
+++ b/.github/workflows/ci_macos_arm64_clang.yml
@@ -11,6 +11,9 @@
     # Weekday mornings at 09:15 UTC = 01:15 PST (UTC - 8).
     - cron: "15 9 * * 1-5"
   workflow_call:
+    secrets:
+      DISCORD_WEBHOOK:
+        required: false
   workflow_dispatch:
 
 permissions:
@@ -29,6 +32,8 @@
     steps:
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
       - name: "Updating git submodules"
         run: git submodule update --init --jobs 8 --depth 1
       # There may be multiple versions of Xcode and SDKs installed.
diff --git a/.github/workflows/ci_windows_x64_msvc.yml b/.github/workflows/ci_windows_x64_msvc.yml
index a9acb7b..2e98ecb 100644
--- a/.github/workflows/ci_windows_x64_msvc.yml
+++ b/.github/workflows/ci_windows_x64_msvc.yml
@@ -8,6 +8,9 @@
 
 on:
   workflow_call:
+    secrets:
+      AZURE_CCACHE_CONNECTION_STRING:
+        required: false
   workflow_dispatch:
 
 permissions:
@@ -26,6 +29,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       # TODO(#18813): Remove this. Environment setup needs to happen on runners, not in workflows.
       - name: "Create build dir"
@@ -70,11 +74,11 @@
       - name: "Building IREE"
         shell: bash
         run: |
-          echo "Building in ${{ env.BUILD_DIR_BASH }}"
+          echo "Building in ${BUILD_DIR_BASH}"
           source ./build_tools/cmake/setup_sccache.sh
-          bash ./build_tools/cmake/build_all.sh ${{ env.BUILD_DIR_BASH }}
+          bash ./build_tools/cmake/build_all.sh "${BUILD_DIR_BASH}"
       - name: "Testing IREE"
-        run: bash ./build_tools/cmake/ctest_all.sh ${{ env.BUILD_DIR_BASH }}
+        run: bash ./build_tools/cmake/ctest_all.sh "$env:BUILD_DIR_BASH"
       - name: "Clean up build dir"
         if: always()
         run: if (Test-Path -Path "$Env:BUILD_DIR_POWERSHELL") {Remove-Item -Path "$Env:BUILD_DIR_POWERSHELL" -Recurse -Force}
diff --git a/.github/workflows/clang_tidy.yml b/.github/workflows/clang_tidy.yml
index 1dda3b8..5d90acb 100644
--- a/.github/workflows/clang_tidy.yml
+++ b/.github/workflows/clang_tidy.yml
@@ -48,6 +48,7 @@
       - name: Check out repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: false
           fetch-depth: 0
 
@@ -112,7 +113,7 @@
 
       - name: Run clang-tidy
         if: steps.tidy-diff-mode.outputs.use_cpp_linter == 'true'
-        uses: cpp-linter/cpp-linter-action@774040af57f011a5fc47911f08ff0c3059d1835a # v1.11.4
+        uses: cpp-linter/cpp-linter-action@774040af57f011a5fc47911f08ff0c3059d1835a # v2.24.0
         id: linter
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 9025fc5..d71edf2 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -17,6 +17,8 @@
     steps:
       - name: Checking out repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
       - name: Initializing llvm-project submodule
         run: git submodule update --init --depth=1 third_party/llvm-project
       - name: Setting up python
diff --git a/.github/workflows/oneshot_candidate_release.yml b/.github/workflows/oneshot_candidate_release.yml
index 175ec5a..fd90ff0 100644
--- a/.github/workflows/oneshot_candidate_release.yml
+++ b/.github/workflows/oneshot_candidate_release.yml
@@ -74,6 +74,7 @@
 
       - name: Create Release
         id: create_release
+        # zizmor: ignore[superfluous-actions] `gh release create` does not output the release id used below
         uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
         with:
           tag: ${{ env.tag_name }}
diff --git a/.github/workflows/pkgci.yml b/.github/workflows/pkgci.yml
index 84b94e0..e66a864 100644
--- a/.github/workflows/pkgci.yml
+++ b/.github/workflows/pkgci.yml
@@ -30,7 +30,7 @@
 
 jobs:
   setup:
-    uses: ./.github/workflows/setup.yml
+    uses: $/.github/workflows/setup.yml
     # A called workflow can't exceed the permissions granted here.
     permissions:
       contents: read
@@ -40,14 +40,14 @@
     name: Build Packages
     needs: setup
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'build_packages')
-    uses: ./.github/workflows/pkgci_build_packages.yml
+    uses: $/.github/workflows/pkgci_build_packages.yml
 
   # Package sanity checks.
   unit_test:
     name: Unit Test
     needs: [setup, build_packages]
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'unit_test')
-    uses: ./.github/workflows/pkgci_unit_test.yml
+    uses: $/.github/workflows/pkgci_unit_test.yml
     # The pkgci test workflows need actions: read when dispatched with
     # artifact_run_id, and a called workflow can't exceed its caller's
     # permissions.
@@ -63,7 +63,7 @@
     name: Test AMD W7900
     needs: [setup, build_packages]
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_amd_w7900')
-    uses: ./.github/workflows/pkgci_test_amd_w7900.yml
+    uses: $/.github/workflows/pkgci_test_amd_w7900.yml
     permissions:
       contents: read
       actions: read
@@ -72,7 +72,7 @@
     name: Test AMD R9700
     needs: [setup, build_packages]
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_amd_r9700')
-    uses: ./.github/workflows/pkgci_test_amd_r9700.yml
+    uses: $/.github/workflows/pkgci_test_amd_r9700.yml
     permissions:
       contents: read
       actions: read
@@ -82,7 +82,7 @@
   #   name: Test NVIDIA T4
   #   needs: [setup, build_packages]
   #   if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_nvidia_t4')
-  #   uses: ./.github/workflows/pkgci_test_nvidia_t4.yml
+  #   uses: $/.github/workflows/pkgci_test_nvidia_t4.yml
   #   permissions:
   #     contents: read
   #     actions: read
@@ -91,7 +91,7 @@
     name: Test Android
     needs: [setup, build_packages]
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_android')
-    uses: ./.github/workflows/pkgci_test_android.yml
+    uses: $/.github/workflows/pkgci_test_android.yml
     permissions:
       contents: read
       actions: read
@@ -102,7 +102,7 @@
     name: Test RISC-V 64
     needs: [setup, build_packages]
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_riscv64')
-    uses: ./.github/workflows/pkgci_test_riscv64.yml
+    uses: $/.github/workflows/pkgci_test_riscv64.yml
     permissions:
       contents: read
       actions: read
@@ -117,7 +117,7 @@
     name: Test ONNX
     needs: [setup, build_packages]
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_onnx')
-    uses: ./.github/workflows/pkgci_test_onnx.yml
+    uses: $/.github/workflows/pkgci_test_onnx.yml
     permissions:
       contents: read
       actions: read
@@ -126,7 +126,7 @@
     name: Test Sharktank
     needs: [setup, build_packages]
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_sharktank')
-    uses: ./.github/workflows/pkgci_test_sharktank.yml
+    uses: $/.github/workflows/pkgci_test_sharktank.yml
     permissions:
       contents: read
       actions: read
@@ -135,7 +135,7 @@
     name: Test Torch
     needs: [setup, build_packages]
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_torch')
-    uses: ./.github/workflows/pkgci_test_torch.yml
+    uses: $/.github/workflows/pkgci_test_torch.yml
     permissions:
       contents: read
       actions: read
@@ -144,7 +144,7 @@
     name: Test TensorFlow
     needs: [setup, build_packages]
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_tensorflow')
-    uses: ./.github/workflows/pkgci_test_tensorflow.yml
+    uses: $/.github/workflows/pkgci_test_tensorflow.yml
     permissions:
       contents: read
       actions: read
@@ -153,7 +153,7 @@
     name: Test PJRT plugin
     needs: [setup, build_packages]
     if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'test_pjrt')
-    uses: ./.github/workflows/pkgci_test_pjrt.yml
+    uses: $/.github/workflows/pkgci_test_pjrt.yml
     permissions:
       contents: read
       actions: read
@@ -178,7 +178,8 @@
       - test_sharktank
       - test_tensorflow
       - test_pjrt
-    uses: ./.github/workflows/workflow_summary.yml
-    secrets: inherit
+    uses: $/.github/workflows/workflow_summary.yml
+    secrets:
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
     with:
       jobs-json: ${{ toJson(needs) }}
diff --git a/.github/workflows/pkgci_build_packages.yml b/.github/workflows/pkgci_build_packages.yml
index bb6552b..e89b63c 100644
--- a/.github/workflows/pkgci_build_packages.yml
+++ b/.github/workflows/pkgci_build_packages.yml
@@ -28,9 +28,10 @@
       - name: Checking out repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       - name: Setup Python
-        uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v5.3.3
+        uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
         with:
           python-version: 3.12
           cache: "pip"
@@ -88,7 +89,7 @@
           wait
       - name: Build
         run: |
-          export cache_dir="${{ env.CACHE_DIR }}"
+          export cache_dir="${CACHE_DIR}"
           export output_dir="${{ github.workspace }}/wheelhouse"
           export toolchain_suffix=release
           export manylinux_docker_image="$MANYLINUX_DOCKER_IMAGE"
@@ -152,7 +153,7 @@
 #         wait
 #     - name: Build
 #       run: |
-#         export cache_dir="${{ env.CACHE_DIR }}"
+#         export cache_dir="${CACHE_DIR}"
 #         export output_dir="${{ github.workspace }}/wheelhouse"
 #         export toolchain_suffix=release_asserts
 #         export manylinux_docker_image="$MANYLINUX_DOCKER_IMAGE"
diff --git a/.github/workflows/pkgci_test_amd_r9700.yml b/.github/workflows/pkgci_test_amd_r9700.yml
index 1892427..898405b 100644
--- a/.github/workflows/pkgci_test_amd_r9700.yml
+++ b/.github/workflows/pkgci_test_amd_r9700.yml
@@ -40,6 +40,7 @@
       - name: Check out repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: false
       - name: Check out runtime submodules
         run: ./build_tools/scripts/git/update_runtime_submodules.sh
@@ -56,8 +57,9 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Build tests
diff --git a/.github/workflows/pkgci_test_amd_w7900.yml b/.github/workflows/pkgci_test_amd_w7900.yml
index 2cd5f86..e6f22fa 100644
--- a/.github/workflows/pkgci_test_amd_w7900.yml
+++ b/.github/workflows/pkgci_test_amd_w7900.yml
@@ -42,6 +42,7 @@
       - name: Check out repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: false
       - name: Check out runtime submodules
         run: ./build_tools/scripts/git/update_runtime_submodules.sh
@@ -58,8 +59,9 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Build tests
diff --git a/.github/workflows/pkgci_test_android.yml b/.github/workflows/pkgci_test_android.yml
index 9639a3c..2a36748 100644
--- a/.github/workflows/pkgci_test_android.yml
+++ b/.github/workflows/pkgci_test_android.yml
@@ -47,6 +47,8 @@
       # General setup.
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
       - name: "Checking out runtime submodules"
         run: ./build_tools/scripts/git/update_runtime_submodules.sh
       - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
@@ -67,8 +69,9 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       - name: Install build dependencies
         run: sudo apt update && sudo apt install -y ninja-build
diff --git a/.github/workflows/pkgci_test_nvidia_t4.yml b/.github/workflows/pkgci_test_nvidia_t4.yml
index e99b31a..650030a 100644
--- a/.github/workflows/pkgci_test_nvidia_t4.yml
+++ b/.github/workflows/pkgci_test_nvidia_t4.yml
@@ -46,6 +46,7 @@
       - name: Check out repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: false
       - name: Check out runtime submodules
         run: ./build_tools/scripts/git/update_runtime_submodules.sh
@@ -66,8 +67,9 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       - name: Install build dependencies
         run: |
diff --git a/.github/workflows/pkgci_test_onnx.yml b/.github/workflows/pkgci_test_onnx.yml
index 756ac49..7186506 100644
--- a/.github/workflows/pkgci_test_onnx.yml
+++ b/.github/workflows/pkgci_test_onnx.yml
@@ -84,6 +84,7 @@
       - name: Checking out IREE repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: false
       - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
         with:
@@ -98,13 +99,15 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Checkout test suites repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           repository: iree-org/iree-test-suites
           ref: 612f93663b32ea86ea442e87be549f1056a5de1c
           path: iree-test-suites
@@ -180,6 +183,7 @@
       - name: Checking out IREE repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: false
       - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
         with:
@@ -193,13 +197,15 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Checkout test suites repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           repository: iree-org/iree-test-suites
           ref: 612f93663b32ea86ea442e87be549f1056a5de1c
           path: iree-test-suites
diff --git a/.github/workflows/pkgci_test_pjrt.yml b/.github/workflows/pkgci_test_pjrt.yml
index 461b979..a52921c 100644
--- a/.github/workflows/pkgci_test_pjrt.yml
+++ b/.github/workflows/pkgci_test_pjrt.yml
@@ -48,6 +48,7 @@
       - name: Checking out repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: true
       - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
         with:
@@ -62,8 +63,9 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       - name: ccache
         uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
diff --git a/.github/workflows/pkgci_test_riscv64.yml b/.github/workflows/pkgci_test_riscv64.yml
index 2391ea2..7b6170f 100644
--- a/.github/workflows/pkgci_test_riscv64.yml
+++ b/.github/workflows/pkgci_test_riscv64.yml
@@ -49,6 +49,8 @@
       # General setup.
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
       - name: "Checking out runtime submodules"
         run: ./build_tools/scripts/git/update_runtime_submodules.sh
       - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
@@ -71,8 +73,9 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       - name: Bootstrap
         env:
@@ -83,15 +86,15 @@
           QEMU_FILE_NAME: "qemu-riscv_8.1.2_manylinux_2.28_20231026.tar.gz"
           QEMU_FILE_SHA: "dd77b39820d45b80bafab9155581578b4c625cb92fd6db9e9adbb9798fde3597"
         run: |
-          mkdir -p ${{ env.BOOTSTRAP_WORK_DIR }}
-          mkdir -p ${{ env.RISCV_TOOLCHAIN_ROOT }}
-          mkdir -p ${{ env.QEMU_PATH_PREFIX }}
+          mkdir -p "${BOOTSTRAP_WORK_DIR}"
+          mkdir -p "${RISCV_TOOLCHAIN_ROOT}"
+          mkdir -p "${QEMU_PATH_PREFIX}"
           wget --progress=bar:force:noscroll --directory-prefix="${BOOTSTRAP_WORK_DIR}" "${IREE_ARTIFACT_URL}/${RISCV_CLANG_TOOLCHAIN_FILE_NAME}"
           echo "${RISCV_CLANG_TOOLCHAIN_FILE_SHA}  ${BOOTSTRAP_WORK_DIR}/${RISCV_CLANG_TOOLCHAIN_FILE_NAME}" | sha256sum -c -
-          tar -C "${{ env.RISCV_TOOLCHAIN_ROOT }}" -xf "${BOOTSTRAP_WORK_DIR}/${RISCV_CLANG_TOOLCHAIN_FILE_NAME}" --no-same-owner --strip-components=1
+          tar -C "${RISCV_TOOLCHAIN_ROOT}" -xf "${BOOTSTRAP_WORK_DIR}/${RISCV_CLANG_TOOLCHAIN_FILE_NAME}" --no-same-owner --strip-components=1
           wget --progress=bar:force:noscroll --directory-prefix="${BOOTSTRAP_WORK_DIR}" "${IREE_ARTIFACT_URL}/${QEMU_FILE_NAME}"
           echo "${QEMU_FILE_SHA}  ${BOOTSTRAP_WORK_DIR}/${QEMU_FILE_NAME}" | sha256sum -c -
-          tar -C "${{ env.QEMU_PATH_PREFIX }}" -xf "${BOOTSTRAP_WORK_DIR}/${QEMU_FILE_NAME}" --no-same-owner --strip-components=1
+          tar -C "${QEMU_PATH_PREFIX}" -xf "${BOOTSTRAP_WORK_DIR}/${QEMU_FILE_NAME}" --no-same-owner --strip-components=1
       - name: Build riscv64
         env:
           IREE_HOST_BIN_DIR: ${{ env.VENV_DIR }}/bin
@@ -119,6 +122,8 @@
       # General setup.
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
       - name: "Checking out runtime submodules"
         run: ./build_tools/scripts/git/update_runtime_submodules.sh
       - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
@@ -141,8 +146,9 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       - name: Restore toolchain cache
         id: restore-toolchain
diff --git a/.github/workflows/pkgci_test_sharktank.yml b/.github/workflows/pkgci_test_sharktank.yml
index e250f65..29ceb13 100644
--- a/.github/workflows/pkgci_test_sharktank.yml
+++ b/.github/workflows/pkgci_test_sharktank.yml
@@ -54,9 +54,10 @@
       - name: Checking out IREE repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: false
 
-      - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v5.4.0
+      - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
         with:
           # Must match the subset of versions built in pkgci_build_packages.
           python-version: "3.11"
@@ -70,6 +71,7 @@
       - name: Checkout test suites repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           repository: iree-org/iree-test-suites
           ref: 612f93663b32ea86ea442e87be549f1056a5de1c
           path: iree-test-suites
@@ -79,10 +81,11 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
           source ${VENV_DIR}/bin/activate
           pip install -e ${{ github.workspace }}/iree-test-suites/sharktank_models
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Run sharktank model tests
diff --git a/.github/workflows/pkgci_test_tensorflow.yml b/.github/workflows/pkgci_test_tensorflow.yml
index 39693fe..5b5738c 100644
--- a/.github/workflows/pkgci_test_tensorflow.yml
+++ b/.github/workflows/pkgci_test_tensorflow.yml
@@ -36,6 +36,7 @@
       - name: Checking out repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: false
       - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
         with:
@@ -50,8 +51,9 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       - name: Run tests
         run: |
diff --git a/.github/workflows/pkgci_test_torch.yml b/.github/workflows/pkgci_test_torch.yml
index 3bce44c..d6e902e 100644
--- a/.github/workflows/pkgci_test_torch.yml
+++ b/.github/workflows/pkgci_test_torch.yml
@@ -64,6 +64,7 @@
       - name: Checking out IREE repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: false
       - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
         with:
@@ -75,14 +76,17 @@
           name: linux_x86_64_release_packages
           path: ${{ env.PACKAGE_DOWNLOAD_DIR }}
       - name: Setup venv
+        env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
 
       - name: Checkout test suites repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           repository: iree-org/iree-test-suites
           ref: 612f93663b32ea86ea442e87be549f1056a5de1c
           path: iree-test-suites
diff --git a/.github/workflows/pkgci_unit_test.yml b/.github/workflows/pkgci_unit_test.yml
index a287669..8110a21 100644
--- a/.github/workflows/pkgci_unit_test.yml
+++ b/.github/workflows/pkgci_unit_test.yml
@@ -35,6 +35,7 @@
       - name: Checking out repository
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           submodules: false
       - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
         with:
@@ -49,10 +50,11 @@
         run: |
           ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
             --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
-            --fetch-gh-workflow=${{ inputs.artifact_run_id }}
+            --fetch-gh-workflow="${ARTIFACT_RUN_ID}"
           source ${VENV_DIR}/bin/activate
           pip install -r runtime/bindings/python/iree/runtime/build_requirements.txt
         env:
+          ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       - name: Validate runtime wheel
         run: |
diff --git a/.github/workflows/publish_website.yml b/.github/workflows/publish_website.yml
index 277c17d..6238471 100644
--- a/.github/workflows/publish_website.yml
+++ b/.github/workflows/publish_website.yml
@@ -60,7 +60,6 @@
         uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
         with:
           python-version: 3.x
-          cache: "pip"
       - name: Installing dependencies
         run: |
           pip install -r docs/website/requirements.txt
diff --git a/.github/workflows/pull_request_greeter.yml b/.github/workflows/pull_request_greeter.yml
index 1e6f889..979ef6f 100644
--- a/.github/workflows/pull_request_greeter.yml
+++ b/.github/workflows/pull_request_greeter.yml
@@ -7,6 +7,7 @@
 name: Pull Request Greeter
 
 on:
+  # zizmor: ignore[dangerous-triggers] runs base-branch code only; PR fields reach it via env
   pull_request_target:
     types:
       - opened
diff --git a/.github/workflows/samples.yml b/.github/workflows/samples.yml
index 4cbb7d7..37cd21b 100644
--- a/.github/workflows/samples.yml
+++ b/.github/workflows/samples.yml
@@ -33,6 +33,8 @@
     steps:
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
       - name: "Setting up Python"
         uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
         with:
@@ -49,6 +51,8 @@
     steps:
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
       - name: "Checking out runtime submodules"
         run: ./build_tools/scripts/git/update_runtime_submodules.sh
       - name: "Installing build dependencies"
@@ -66,7 +70,8 @@
     needs:
       - colab
       - samples
-    uses: ./.github/workflows/workflow_summary.yml
-    secrets: inherit
+    uses: $/.github/workflows/workflow_summary.yml
+    secrets:
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
     with:
       jobs-json: ${{ toJson(needs) }}
diff --git a/.github/workflows/schedule_candidate_release.yml b/.github/workflows/schedule_candidate_release.yml
index 7ee7a2d..a023bfa 100644
--- a/.github/workflows/schedule_candidate_release.yml
+++ b/.github/workflows/schedule_candidate_release.yml
@@ -35,11 +35,12 @@
         id: last_green_commit
         env:
           GH_TOKEN: ${{ github.token }}
+          RELEASE_COMMIT: ${{ github.event.inputs.release-commit }}
         run: |
-          if [ -z "${{ github.event.inputs.release-commit }}" ]; then
+          if [ -z "${RELEASE_COMMIT}" ]; then
             release_commit="$(./build_tools/scripts/get_latest_green.sh)"
           else
-            release_commit="${{ github.event.inputs.release-commit }}"
+            release_commit="${RELEASE_COMMIT}"
           fi
           git checkout "${release_commit}"
           echo "release-commit=${release_commit}" >> "${GITHUB_OUTPUT}"
@@ -75,6 +76,7 @@
 
       - name: Create Release
         id: create_release
+        # zizmor: ignore[superfluous-actions] `gh release create` does not output the release id used below
         uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
         with:
           tag: ${{ env.tag_name }}
diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml
index 88f3bef..4e931bc 100644
--- a/.github/workflows/setup.yml
+++ b/.github/workflows/setup.yml
@@ -51,6 +51,7 @@
       - name: "Checking out repository"
         uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
         with:
+          persist-credentials: false
           # We need the parent commit to do a diff
           fetch-depth: 2
       - name: "Fetching PR description"
diff --git a/.github/workflows/validate_and_publish_release.yml b/.github/workflows/validate_and_publish_release.yml
index 666f942..9aa318e 100644
--- a/.github/workflows/validate_and_publish_release.yml
+++ b/.github/workflows/validate_and_publish_release.yml
@@ -41,8 +41,10 @@
           workflow: build_package.yml
           run_id: ${{ github.event.inputs.build_run_id }}
       - name: Extract and display downloaded files
+        env:
+          PACKAGE_VERSION: ${{ github.event.inputs.package_version }}
         run: |
-          tar -xf wheels-linux-x86_64-main-dist-linux/iree-dist-${{ github.event.inputs.package_version }}-linux-x86_64.tar.xz
+          tar -xf "wheels-linux-x86_64-main-dist-linux/iree-dist-${PACKAGE_VERSION}-linux-x86_64.tar.xz"
           pwd
           ls -R
       - name: Set up python
@@ -52,10 +54,14 @@
           python-version: "3.10"
       - name: Install python packages
         id: install_python_packages
+        env:
+          COMPILER_PACKAGE_VERSION: ${{ github.event.inputs.compiler_package_version }}
+          RUNTIME_PACKAGE_VERSION: ${{ github.event.inputs.runtime_package_version }}
+          LEGACY_PACKAGE_VERSION: ${{ github.event.inputs.legacy_package_version }}
         run: |
-          python -m pip install -f file://$PWD/wheels-linux-x86_64-py-compiler-pkg/ "iree-base-compiler[onnx]==${{ github.event.inputs.compiler_package_version }}"
-          python -m pip install -f file://$PWD/wheels-linux-x86_64-py-runtime-pkg/ "iree-base-runtime==${{ github.event.inputs.runtime_package_version }}"
-          python -m pip install -f file://$PWD/wheels-linux-x86_64-py-tf-compiler-tools-pkg/ "iree-tools-tflite==${{ github.event.inputs.legacy_package_version }}" "iree-tools-tf==${{ github.event.inputs.legacy_package_version }}"
+          python -m pip install -f file://$PWD/wheels-linux-x86_64-py-compiler-pkg/ "iree-base-compiler[onnx]==${COMPILER_PACKAGE_VERSION}"
+          python -m pip install -f file://$PWD/wheels-linux-x86_64-py-runtime-pkg/ "iree-base-runtime==${RUNTIME_PACKAGE_VERSION}"
+          python -m pip install -f file://$PWD/wheels-linux-x86_64-py-tf-compiler-tools-pkg/ "iree-tools-tflite==${LEGACY_PACKAGE_VERSION}" "iree-tools-tf==${LEGACY_PACKAGE_VERSION}"
       - name: Validate IREE Compiler Package
         id: validate_compiler_package
         run: |
@@ -163,9 +169,11 @@
           python-version: "3.10"
 
       - name: Check for patch release
+        env:
+          PACKAGE_VERSION: ${{ github.event.inputs.package_version }}
         run: |
           python -m pip install packaging
-          is_patch_release="$(python -c "from packaging.version import Version;print('true' if Version('${{ github.event.inputs.package_version }}').micro !=0 else 'false')")"
+          is_patch_release="$(python -c "import os;from packaging.version import Version;print('true' if Version(os.environ['PACKAGE_VERSION']).micro !=0 else 'false')")"
           echo "is_patch_release=${is_patch_release}" >> $GITHUB_ENV
 
       - name: Updating latest-snapshot branch
diff --git a/.github/workflows/workflow_summary.yml b/.github/workflows/workflow_summary.yml
index 238d77b..89379f0 100644
--- a/.github/workflows/workflow_summary.yml
+++ b/.github/workflows/workflow_summary.yml
@@ -19,8 +19,9 @@
 #        needs:
 #          - job_1
 #          - job_2
-#        uses: ./.github/workflows/workflow_summary.yml
-#        secrets: inherit
+#        uses: $/.github/workflows/workflow_summary.yml
+#        secrets:
+#          DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
 #        with:
 #          jobs-json: ${{ toJson(needs) }}
 #   ```
@@ -37,6 +38,9 @@
         jobs-json:
           type: string
           description: The output of `toJson(needs)`
+    secrets:
+      DISCORD_WEBHOOK:
+        required: false
 
 permissions:
   contents: read
@@ -47,9 +51,11 @@
     steps:
       - name: Getting failed jobs
         id: failed_jobs
+        env:
+          JOBS_JSON: ${{ inputs.jobs-json }}
         run: |
-          echo '${{ inputs.jobs-json }}'
-          FAILED_JOBS="$(echo '${{ inputs.jobs-json }}' \
+          echo "${JOBS_JSON}"
+          FAILED_JOBS="$(echo "${JOBS_JSON}" \
             | jq --raw-output \
             'map_values(select(.result!="success" and .result!="skipped")) | keys | join(",")' \
           )"
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9424c62..9ae7fb3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -67,6 +67,16 @@
     hooks:
       - id: do-not-submit
 
+  - repo: https://github.com/zizmorcore/zizmor-pre-commit
+    rev: 06a39750ec31860bb44f2acf67182c40016cd1e7 # frozen: v1.32.0
+    hooks:
+      - id: zizmor
+        name: Run zizmor on GitHub Actions workflows
+        # Offline audits only, so results depend only on the checked-out files
+        # and the hook needs no GitHub token or API quota. Informational
+        # findings are not reported.
+        args: ["--no-progress", "--offline", "--min-severity=low"]
+
   - repo: local
     hooks:
       - id: buildifier
diff --git a/docs/website/docs/developers/general/github-actions.md b/docs/website/docs/developers/general/github-actions.md
index 9bafe8d..6272b58 100644
--- a/docs/website/docs/developers/general/github-actions.md
+++ b/docs/website/docs/developers/general/github-actions.md
@@ -283,7 +283,7 @@
     ```yaml
     jobs:
       setup:
-        uses: ./.github/workflows/setup.yml
+        uses: $/.github/workflows/setup.yml
 
       test:
         needs: [setup]