From eff68adbac784263c3cb31a7631ca6b3645e4a14 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Tue, 14 Jul 2026 15:46:57 +0200 Subject: [PATCH] chore(ci): set `persist-credentials: false` for `checkout` steps --- .github/workflows/changelog.yml | 1 + .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .github/workflows/cts.yml | 2 ++ .github/workflows/generate.yml | 4 ++++ .github/workflows/lazy.yml | 6 ++++++ .github/workflows/shaders.yml | 6 ++++++ 6 files changed, 43 insertions(+) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index cd1ff1463..6b89c325d 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -43,6 +43,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 + persist-credentials: false # NOTE: Keep label name(s) in sync. with `xtask`'s implementation. - name: Run `cargo xtask changelog …` diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3aab70fde..86cb83462 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -218,6 +218,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install toolchain (repo MSRV - tier 1 or 2) if: matrix.tier == 1 || matrix.tier == 2 @@ -419,6 +421,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install core MSRV toolchain run: | @@ -493,6 +497,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install core MSRV toolchain run: | @@ -551,6 +557,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install toolchain run: | @@ -592,6 +600,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install repo MSRV toolchain run: | @@ -645,6 +655,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install repo MSRV toolchain run: | @@ -774,6 +786,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install repo MSRV toolchain run: | @@ -805,6 +819,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false # Miri is *only* available on nightly. - name: Install nightly toolchain @@ -840,6 +856,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install repo MSRV toolchain run: | @@ -876,6 +894,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install MSRV toolchain run: | @@ -916,6 +936,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Run `cargo deny check` uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1 @@ -934,6 +956,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Run `cargo deny check` uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1 diff --git a/.github/workflows/cts.yml b/.github/workflows/cts.yml index fbbb4038a..17bb0fe61 100644 --- a/.github/workflows/cts.yml +++ b/.github/workflows/cts.yml @@ -90,6 +90,8 @@ jobs: steps: - name: checkout repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install Repo MSRV toolchain run: | diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 8292eb701..5d94d6971 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -39,6 +39,8 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Find standalone examples id: discover @@ -67,6 +69,8 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false # We can't rely on an override here, as that would only set # the toolchain for the current directory, not the newly generated project. diff --git a/.github/workflows/lazy.yml b/.github/workflows/lazy.yml index a41132b36..1df05cd88 100644 --- a/.github/workflows/lazy.yml +++ b/.github/workflows/lazy.yml @@ -29,6 +29,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - run: mkdir naga/data @@ -55,6 +57,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Download shaders run: cd naga && git clone https://github.com/SaschaWillems/Vulkan.git @@ -90,6 +94,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Download shaders run: | diff --git a/.github/workflows/shaders.yml b/.github/workflows/shaders.yml index 6105537b5..0257aaed7 100644 --- a/.github/workflows/shaders.yml +++ b/.github/workflows/shaders.yml @@ -23,6 +23,8 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Debug symbols to `line-tables-only` shell: bash @@ -70,6 +72,8 @@ jobs: runs-on: macos-26 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Debug symbols to line-tables-only shell: bash @@ -100,6 +104,8 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install Vulkan SDK uses: ./.github/actions/install-vulkan-sdk