ci: don't persist credentials in actions/checkout (#1422)

This commit is contained in:
Daniel Hast
2025-11-03 06:29:07 -05:00
committed by GitHub
parent bafa15c8f1
commit 9e9e6c9d55
8 changed files with 41 additions and 6 deletions

View File

@@ -16,14 +16,12 @@ jobs:
contents: write
id-token: write # For trusted publishing
steps:
- &checkout
name: Checkout repository
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false
- &install-rust
name: Install Rust toolchain
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
id: release-plz
@@ -53,8 +51,13 @@ jobs:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- *checkout
- *install-rust
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: release-plz/action@v0.5
with: