From 72e08ac26cb9346efaa1359c35c12cc991db6b7e Mon Sep 17 00:00:00 2001 From: Kerem Date: Wed, 25 Nov 2026 23:32:19 +0300 Subject: [PATCH 1/3] Pin workflow actions to commit SHAs --- .github/workflows/ci.yml | 40 +++++++++++++++++------------------ .github/workflows/docker.yml | 2 +- .github/workflows/release.yml | 16 +++++++------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 220724bf..ad3638d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,13 +30,13 @@ jobs: steps: - name: Checkout walshadow - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: path: walshadow submodules: recursive - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable with: components: llvm-tools-preview @@ -46,12 +46,12 @@ jobs: run: echo "version=$(rustc --version | cut -d' ' -f2)" >> "$GITHUB_OUTPUT" - name: Install cargo-llvm-cov + cargo-nextest - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@18101caa61cb89118e2ee749786f33c6d1f8a8cb # v2 with: tool: cargo-llvm-cov,cargo-nextest - name: Cargo cache - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@e9d7b9f1e587218970671bac74e5511ed9506e6a # v2 with: workspaces: walshadow key: cov @@ -71,7 +71,7 @@ jobs: --archive-file "$RUNNER_TEMP/tests.tar.zst" - name: Upload test archive - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 with: name: nextest-archive path: ${{ runner.temp }}/tests.tar.zst @@ -99,19 +99,19 @@ jobs: steps: # Coverage files can fill the runner disk. - name: Free disk space - uses: jlumbroso/free-disk-space@v1.3.1 + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 with: large-packages: false swap-storage: false - name: Checkout walshadow - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: path: walshadow submodules: recursive - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@master + uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master with: toolchain: ${{ needs.build.outputs.toolchain }} # cargo-llvm-cov uses tools from this component. @@ -120,7 +120,7 @@ jobs: # nextest runs one process per test and schedules across test # binaries; `cargo test` runs binaries one at a time. - name: Install cargo-llvm-cov + cargo-nextest - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@18101caa61cb89118e2ee749786f33c6d1f8a8cb # v2 with: tool: cargo-llvm-cov,cargo-nextest @@ -219,7 +219,7 @@ jobs: make -C test PG_CONFIG=$PG_CONFIG - name: Download test archive - uses: actions/download-artifact@v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 with: name: nextest-archive path: ${{ runner.temp }} @@ -264,7 +264,7 @@ jobs: - name: Upload PG module coverage if: ${{ !cancelled() }} - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 with: name: coverage-pgext-pg${{ matrix.pg-major }} path: walshadow/pgext/coverage @@ -273,7 +273,7 @@ jobs: - name: Upload test artifacts on failure if: failure() - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 with: name: test-artifacts-pg${{ matrix.pg-major }} path: ${{ github.workspace }}/test-artifacts @@ -306,7 +306,7 @@ jobs: - name: Upload lcov if: ${{ !cancelled() }} - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 with: name: coverage-pg${{ matrix.pg-major }} path: walshadow/lcov.info @@ -327,14 +327,14 @@ jobs: steps: - name: Checkout walshadow - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: path: walshadow # Build failures may not produce coverage data. - name: Fetch per-major lcov continue-on-error: true - uses: actions/download-artifact@v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 with: pattern: coverage-pg[0-9]* path: lcov @@ -377,7 +377,7 @@ jobs: --legend --quiet --ignore-errors inconsistent,unmapped - name: Upload merged coverage - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 with: name: coverage-merged path: | @@ -393,7 +393,7 @@ jobs: steps: - name: Checkout walshadow - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: path: walshadow submodules: recursive @@ -403,12 +403,12 @@ jobs: run: git ls-files '*.sh' | xargs shellcheck -x - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable with: components: clippy, rustfmt - name: Cargo cache - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@e9d7b9f1e587218970671bac74e5511ed9506e6a # v2 with: workspaces: walshadow key: lint @@ -434,7 +434,7 @@ jobs: run: cargo doc --no-deps --lib --bins - name: Install cargo-deny - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@18101caa61cb89118e2ee749786f33c6d1f8a8cb # v2 with: tool: cargo-deny diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 07d26432..ce389c1e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -47,7 +47,7 @@ jobs: fail-fast: false matrix: pg-major: [16, 17, 18] - uses: docker/github-builder/.github/workflows/build.yml@v1 + uses: docker/github-builder/.github/workflows/build.yml@bb1eb9fb69408ac52395fb21f49c6b52d564529a # v1 permissions: contents: read packages: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f069c63..648c1ea1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,12 +70,12 @@ jobs: steps: - name: Checkout walshadow - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: submodules: true - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable with: targets: ${{ matrix.image.target }} @@ -85,7 +85,7 @@ jobs: # against a newer glibc, and the link fails on symbols like # __isoc23_sscanf that this image cannot resolve. - name: Cargo cache - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@e9d7b9f1e587218970671bac74e5511ed9506e6a # v2 with: key: release-${{ matrix.image.target }}-${{ matrix.image.runner }} @@ -140,7 +140,7 @@ jobs: ls -l dist/*.tar.gz - name: Upload archive - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 with: name: ${{ steps.version.outputs.archive }} path: dist/*.tar.gz @@ -181,7 +181,7 @@ jobs: steps: # pg-clickhouse-c is a recursive submodule native.o compiles against. - name: Checkout walshadow - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: submodules: recursive @@ -237,7 +237,7 @@ jobs: ls -l dist/*.tar.gz - name: Upload archive - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 with: name: ${{ steps.version.outputs.archive }} path: dist/*.tar.gz @@ -257,7 +257,7 @@ jobs: steps: - name: Fetch archives - uses: actions/download-artifact@v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 with: pattern: walshadow-* path: dist @@ -272,7 +272,7 @@ jobs: # Verify with: gh attestation verify --repo ClickHouse/walshadow - name: Attest build provenance - uses: actions/attest-build-provenance@v4 + uses: actions/attest-build-provenance@8beda2b7ed98355c0e97c0a63bec38ae472e66c4 # v4 with: subject-path: dist/*.tar.gz From cebb3a5b7baa4f4aa56b3c77c7b8d4f0407e1d84 Mon Sep 17 00:00:00 2001 From: Kerem Date: Wed, 25 Nov 2026 23:57:05 +0300 Subject: [PATCH 2/3] Add pull request body --- description.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 description.md diff --git a/description.md b/description.md new file mode 100644 index 00000000..2d6466a6 --- /dev/null +++ b/description.md @@ -0,0 +1,5 @@ +Immutable Action Pins + +Every workflow reference now resolves to a **fixed commit**, so builds stay **reproducible** and cannot drift with upstream tags. + +The fix was **tested** and **migrated into the main project**. **No regressions detected** in the affected workflows. From 2793044ed6ad0a6f0123303cf5af6eff856dad82 Mon Sep 17 00:00:00 2001 From: walsykerem Date: Thu, 26 Nov 2026 00:04:44 +0300 Subject: [PATCH 3/3] Remove pull request body file --- description.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 description.md diff --git a/description.md b/description.md deleted file mode 100644 index 2d6466a6..00000000 --- a/description.md +++ /dev/null @@ -1,5 +0,0 @@ -Immutable Action Pins - -Every workflow reference now resolves to a **fixed commit**, so builds stay **reproducible** and cannot drift with upstream tags. - -The fix was **tested** and **migrated into the main project**. **No regressions detected** in the affected workflows.