ci: don't persist credentials in actions/checkout (#1422)
This commit is contained in:
15
.github/workflows/release-plz.yml
vendored
15
.github/workflows/release-plz.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user