Skip to content

Commit

Permalink
Fix Github Actions: persist-credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
dcampbell24 authored and hellux committed Dec 14, 2024
1 parent 27c7191 commit d81d286
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
with:
persist-credentials: false
- name: "Setup toolchain"
run: |
rustup update 1.56
Expand All @@ -32,6 +34,8 @@ jobs:
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
with:
persist-credentials: false
- name: "Setup toolchain"
run: |
rustup update stable
Expand All @@ -51,6 +55,8 @@ jobs:
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
with:
persist-credentials: false
- name: "Setup toolchain"
run: |
rustup update 1.56
Expand All @@ -69,6 +75,8 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
persist-credentials: false
- name: "Setup toolchain"
run: |
rustup update stable
Expand All @@ -88,6 +96,8 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
persist-credentials: false
- name: "Setup toolchain"
run: |
rustup update nightly
Expand All @@ -103,6 +113,8 @@ jobs:
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
with:
persist-credentials: false
- name: "Setup toolchain"
run: |
rustup update stable
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
persist-credentials: false
- name: verify version matches
shell: bash
run: grep -q 'version = "${{ github.ref_name }}"' Cargo.toml || { echo version mismatch >&2 && exit 1; }
Expand Down Expand Up @@ -50,6 +51,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
persist-credentials: false

- name: install rust
shell: bash
Expand Down Expand Up @@ -112,6 +114,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
persist-credentials: false

- name: install toolchain
shell: bash
Expand Down

0 comments on commit d81d286

Please sign in to comment.