This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-12199-275adb2c0cf3cd2cccf386c0591126a56ada7f1f in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
commit 50d59b26bb12b1b9676536ec1cadae73335124fa Author: Jeffrey Vo <[email protected]> AuthorDate: Fri Nov 13 00:44:58 2026 +0000 Use zizmor to harden workflow actions (#12199) # Which issue does this PR close? <!-- It is not necessary to raise an issue, but it is encouraged if it is a non-trivial enhancement/bug. If this PR relates to an existing issue, but does not fully resolve it, please change the wording below from "Closes #NNN" to "Relates to #NNN" or "Part of #NNN" to avoid false closing an issue. --> - Closes #11616 # Rationale for this change <!-- Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. Please try to explain the problem you are trying to solve in terms of the user-visible behavior, rather than the implementation. --> [Zizmor](https://github.com/zizmorcore/zizmor) is static analysis for github actions, and has lints for potential security issues. Always a good idea to harden our CI/CD. # What changes are included in this PR? <!-- There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR. --> - New zizmor job; this uploads any findings to code scanning tab, i.e. it wont fail on violations during run, similar to codeql we check the tab and resolve violations later - Fix some violations (not all fixed); see comments for details - Add docker ecosystem to dependabot (due to above fixes) # Are these changes tested? <!-- We typically require tests for all PRs in order to: 1. Prevent the code from being accidentally broken by subsequent changes 2. Serve as another way to document the expected behavior of the code If tests are not included in your PR, please explain why (for example, are they covered by existing tests, if so identify these tests)? If this PR claims a performance improvement, please include evidence such as benchmark results. DO NOT simply paste a list of commands ran to verify the code; this is what our CI is for and it pollutes the PR. ONLY explain if testing was included with this PR, or why it wasn't. --> Tested on my fork # Are there any significant user-facing changes? <!-- Significant user-facing changes include: - Breaking public API change - Significant change to existing functionality (e.g. function returns something different) These need to be explicitly called out to ensure we have proper documentation if required and to ensure we follow proper semantic versioning. DO NOT restate the changes of this PR; if a bug was fixed and already explained above, we don't need this to be restated as a user-facing change. --> No --- .github/ci/scripts/check-ci-config.py | 4 +++- .github/dependabot.yml | 16 ++++++++++++++++ .github/workflows/api_change.yml | 4 ++-- .github/workflows/arrow.yml | 26 ++++++++++++++++---------- .github/workflows/arrow_flight.yml | 17 +++++++++++------ .github/workflows/audit.yml | 2 ++ .github/workflows/ci.yml | 19 +++++++++++-------- .github/workflows/dev.yml | 25 ++++++++++++++++++++++--- .github/workflows/docs.yml | 7 +++++-- .github/workflows/integration.yml | 12 +++++++++++- .github/workflows/miri.yaml | 1 + .github/workflows/parquet.yml | 23 +++++++++++++++-------- .github/workflows/release.yml | 2 ++ .github/workflows/rust.yml | 16 ++++++++++++---- 14 files changed, 129 insertions(+), 45 deletions(-) diff --git a/.github/ci/scripts/check-ci-config.py b/.github/ci/scripts/check-ci-config.py index b4fe6bbdac..4f39ea4548 100644 --- a/.github/ci/scripts/check-ci-config.py +++ b/.github/ci/scripts/check-ci-config.py @@ -149,7 +149,9 @@ def validate_config(root=ROOT): assert job["needs"] == "changes", f"{suite}: missing suite selection dependency" condition = f"contains(fromJSON(needs.changes.outputs.suites), '{suite}')" assert job["if"] == condition, f"{suite}: unexpected routing condition" - path = root / job["uses"] + # strip self-repository syntax ($/) + # https://github.blog/changelog/2026-07-30-reference-same-repository-actions-with-self-repository-syntax/ + path = root / job["uses"].removeprefix("$/") workflow = load_yaml(path) call = None if suite in CACHE_REFRESH_STEPS: diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a19ce14170..b2397ffe0a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -33,6 +33,8 @@ updates: update-types: - "minor" - "patch" + cooldown: + default-days: 7 - package-ecosystem: "github-actions" directory: "/" schedule: @@ -43,9 +45,23 @@ updates: codeql-actions: patterns: - "github/codeql-action/*" + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 10 + labels: [auto-dependencies, development-process] + groups: + all: + patterns: + - "*" + cooldown: + default-days: 7 - package-ecosystem: "rust-toolchain" directory: "/" schedule: interval: "weekly" day: "friday" labels: [auto-dependencies, development-process] + cooldown: + default-days: 7 diff --git a/.github/workflows/api_change.yml b/.github/workflows/api_change.yml index 0501460316..5f3d0ef50c 100644 --- a/.github/workflows/api_change.yml +++ b/.github/workflows/api_change.yml @@ -28,7 +28,7 @@ jobs: name: Detect API changes runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 timeout-minutes: 60 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -36,7 +36,7 @@ jobs: fetch-depth: 0 persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Install cargo-semver-checks uses: taiki-e/install-action@3a3daafd3b7f23b8f65d9f5ba2db203fb59b79e2 # v2.90.2 with: diff --git a/.github/workflows/arrow.yml b/.github/workflows/arrow.yml index cdcd540a7f..f239689f1e 100644 --- a/.github/workflows/arrow.yml +++ b/.github/workflows/arrow.yml @@ -18,13 +18,14 @@ jobs: name: Test runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Test arrow-buffer run: cargo test -p arrow-buffer --all-features - name: Test arrow-data @@ -80,13 +81,14 @@ jobs: name: Test Release Mode runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Enable all instruction set extensions of the runner CPU # Compile for the CPU of the runner so that code gated on # `cfg(target_feature = ...)` is built and tested rather than the @@ -126,13 +128,14 @@ jobs: name: Check Compilation runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Check compilation run: cargo check -p arrow - name: Check compilation --no-default-features @@ -154,13 +157,14 @@ jobs: name: Build wasm32 runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Install wasm32 targets run: | rustup target add wasm32-unknown-unknown @@ -174,11 +178,13 @@ jobs: name: Clippy runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Setup Clippy run: rustup component add clippy - name: Clippy arrow-buffer diff --git a/.github/workflows/arrow_flight.yml b/.github/workflows/arrow_flight.yml index bdc83c8ec0..7fe09fd385 100644 --- a/.github/workflows/arrow_flight.yml +++ b/.github/workflows/arrow_flight.yml @@ -18,13 +18,14 @@ jobs: name: Test runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Test run: | cargo test -p arrow-flight @@ -39,11 +40,13 @@ jobs: name: Verify Vendored Code runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Run gen run: ./arrow-flight/regen.sh - name: Verify workspace clean (if this fails, run ./arrow-flight/regen.sh and check in results) @@ -53,11 +56,13 @@ jobs: name: Clippy runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Setup Clippy run: rustup component add clippy - name: Run clippy diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index b3d278b67f..f77e03ce97 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -17,6 +17,8 @@ jobs: runs-on: ubuntu-slim steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install cargo-audit uses: taiki-e/install-action@3a3daafd3b7f23b8f65d9f5ba2db203fb59b79e2 # v2.90.2 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a86f136f0..11909a1acf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,41 +73,44 @@ jobs: arrow: needs: changes if: contains(fromJSON(needs.changes.outputs.suites), 'arrow') - uses: ./.github/workflows/arrow.yml + uses: $/.github/workflows/arrow.yml arrow-flight: needs: changes if: contains(fromJSON(needs.changes.outputs.suites), 'arrow-flight') - uses: ./.github/workflows/arrow_flight.yml + uses: $/.github/workflows/arrow_flight.yml parquet: needs: changes if: contains(fromJSON(needs.changes.outputs.suites), 'parquet') - uses: ./.github/workflows/parquet.yml + uses: $/.github/workflows/parquet.yml with: cache-refresh-only: ${{ needs.changes.outputs.cache-refresh-only == 'true' }} integration: needs: changes if: contains(fromJSON(needs.changes.outputs.suites), 'integration') - uses: ./.github/workflows/integration.yml + uses: $/.github/workflows/integration.yml with: cache-refresh-only: ${{ needs.changes.outputs.cache-refresh-only == 'true' }} audit: needs: changes if: contains(fromJSON(needs.changes.outputs.suites), 'audit') - uses: ./.github/workflows/audit.yml + uses: $/.github/workflows/audit.yml dev: needs: changes if: contains(fromJSON(needs.changes.outputs.suites), 'dev') - uses: ./.github/workflows/dev.yml + permissions: + security-events: write # for zizmor + contents: read + uses: $/.github/workflows/dev.yml rust: needs: changes if: contains(fromJSON(needs.changes.outputs.suites), 'rust') - uses: ./.github/workflows/rust.yml + uses: $/.github/workflows/rust.yml with: lint-only: ${{ needs.changes.outputs.fork-pr == 'true' }} @@ -117,7 +120,7 @@ jobs: # Only the deploy job in docs.yml requests write access, on push to main. permissions: contents: write - uses: ./.github/workflows/docs.yml + uses: $/.github/workflows/docs.yml required-checks: # Like datafusion-comet: one stable check name even when a reusable diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 2b2e976996..d8091c6825 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -8,15 +8,28 @@ name: dev on: workflow_call: -permissions: - contents: read - jobs: + zizmor: + name: Run zizmor + runs-on: ubuntu-slim + permissions: + security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files. + steps: + - name: Checkout repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Run zizmor + uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1 license-headers: name: License headers runs-on: ubuntu-slim + permissions: + contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install HawkEye uses: taiki-e/install-action@3a3daafd3b7f23b8f65d9f5ba2db203fb59b79e2 # v2.90.2 with: @@ -27,8 +40,12 @@ jobs: prettier: name: Markdown format runs-on: ubuntu-slim + permissions: + contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: "14" @@ -40,6 +57,8 @@ jobs: typos: name: Spell Check with Typos runs-on: ubuntu-slim + permissions: + contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Version fixed on purpose. It uses heuristics to detect typos, so upgrading diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2110ea408b..be1350fc90 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,15 +16,16 @@ jobs: permissions: contents: read container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 env: RUSTDOCFLAGS: "-Dwarnings --enable-index-page -Zunstable-options" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Install Nightly Rust run: rustup install nightly - name: Run cargo doc @@ -57,6 +58,8 @@ jobs: queue: max steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Download crate docs uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 0ff2d7da87..04ecb54df6 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -90,42 +90,49 @@ jobs: repository: apache/arrow submodules: true fetch-depth: 1 + persist-credentials: false - name: Checkout Arrow Rust uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: path: rust submodules: true fetch-depth: 1 + persist-credentials: false - name: Checkout Arrow .NET uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: apache/arrow-dotnet path: dotnet fetch-depth: 1 + persist-credentials: false - name: Checkout Arrow Go uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: apache/arrow-go path: go fetch-depth: 1 + persist-credentials: false - name: Checkout Arrow Java uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: apache/arrow-java path: java fetch-depth: 1 + persist-credentials: false - name: Checkout Arrow JavaScript uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: apache/arrow-js path: js fetch-depth: 1 + persist-credentials: false - name: Checkout Arrow nanoarrow uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: apache/arrow-nanoarrow path: nanoarrow fetch-depth: 1 + persist-credentials: false - name: Monitor disk usage - After checkouts run: | @@ -167,6 +174,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Setup Rust toolchain run: | rustup toolchain install ${{ matrix.rust }} @@ -194,7 +202,9 @@ jobs: run: | virtualenv venv source venv/bin/activate - pip install maturin toml pytest pytz pyarrow==${{ matrix.pyarrow }} + pip install maturin toml pytest pytz pyarrow==${MATRIX_PYARROW} + env: + MATRIX_PYARROW: ${{ matrix.pyarrow }} - name: Run Rust tests if: ${{ !inputs.cache-refresh-only }} run: | diff --git a/.github/workflows/miri.yaml b/.github/workflows/miri.yaml index 54ce385c4d..755b8eec28 100644 --- a/.github/workflows/miri.yaml +++ b/.github/workflows/miri.yaml @@ -27,6 +27,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Setup Rust toolchain run: | rustup toolchain install nightly --component miri diff --git a/.github/workflows/parquet.yml b/.github/workflows/parquet.yml index ba6efe2621..3c4f844abc 100644 --- a/.github/workflows/parquet.yml +++ b/.github/workflows/parquet.yml @@ -25,13 +25,14 @@ jobs: name: Test runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Test run: cargo test -p parquet - name: Test --all-features @@ -60,13 +61,14 @@ jobs: name: Check Compilation runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder # Run different tests for the library on its own as well as # all targets to ensure that it still works in the absence of @@ -126,13 +128,14 @@ jobs: name: Build wasm32 runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Install wasm32 targets run: | rustup target add wasm32-unknown-unknown @@ -152,6 +155,8 @@ jobs: rust: [ stable ] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Setup Python uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: @@ -195,11 +200,13 @@ jobs: name: Clippy runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Setup Clippy run: rustup component add clippy - name: Run clippy diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26d2b9e748..c7d2f41288 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,8 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Create GitHub Releases run: | version=${GITHUB_REF_NAME} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ebb0a6e202..f38275bd6a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -28,6 +28,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Install protoc with brew run: brew install protobuf - name: Setup Rust toolchain @@ -52,6 +53,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true + persist-credentials: false - name: Install protobuf compiler in /d/protoc shell: bash run: | @@ -80,8 +82,10 @@ jobs: runs-on: ubuntu-slim steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-rustup + uses: $/.github/actions/setup-rustup - name: Setup rustfmt run: rustup component add rustfmt - name: Format workspace @@ -92,8 +96,10 @@ jobs: runs-on: ubuntu-slim steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-rustup + uses: $/.github/actions/setup-rustup - name: Install cargo-shear id: install-shear uses: taiki-e/install-action@3a3daafd3b7f23b8f65d9f5ba2db203fb59b79e2 # v2.90.2 @@ -114,11 +120,13 @@ jobs: name: Verify MSRV (Minimum Supported Rust Version) runs-on: ubuntu-latest container: - image: amd64/rust + image: amd64/rust@sha256:5b5938cbb2951fc2869eaf891a6616f722ef5bf28c90dc6a074c35c141e31537 # v1.99.1 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Setup Rust toolchain - uses: ./.github/actions/setup-builder + uses: $/.github/actions/setup-builder - name: Install cargo-msrv uses: taiki-e/install-action@3a3daafd3b7f23b8f65d9f5ba2db203fb59b79e2 # v2.90.2 with:
