Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Use auth token in checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Apr 11, 2024
1 parent fd4ad00 commit 097a323
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ jobs:
check-msrv:
runs-on: ubuntu-latest
steps:
- name: Set up Git credentials
run:
git config --global --replace-all "url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" ssh://[email protected]
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.AUTH_TOKEN }}
- uses: arduino/setup-protoc@v2
- uses: actions-rs/toolchain@v1
with:
Expand All @@ -76,12 +74,10 @@ jobs:
doc-all-features:
runs-on: ubuntu-latest
steps:
- name: Set up Git credentials
run:
git config --global --replace-all "url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" ssh://[email protected]
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.AUTH_TOKEN }}
- uses: arduino/setup-protoc@v2
- uses: actions-rs/toolchain@v1
with:
Expand All @@ -96,12 +92,10 @@ jobs:
clippy-all-features:
runs-on: ubuntu-latest
steps:
- name: Set up Git credentials
run:
git config --global --replace-all "url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" ssh://[email protected]
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.AUTH_TOKEN }}
- uses: arduino/setup-protoc@v2
- uses: actions-rs/toolchain@v1
with:
Expand All @@ -111,18 +105,16 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.AUTH_TOKEN }}
args: --all-features --all-targets

clippy-no-default-features:
runs-on: ubuntu-latest
steps:
- name: Set up Git credentials
run:
git config --global --replace-all "url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" ssh://[email protected]
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.AUTH_TOKEN }}
- uses: arduino/setup-protoc@v2
- uses: actions-rs/toolchain@v1
with:
Expand All @@ -139,12 +131,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Set up Git credentials
run:
git config --global --replace-all "url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" ssh://[email protected]
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.AUTH_TOKEN }}
- uses: arduino/setup-protoc@v2
- uses: actions-rs/toolchain@v1
with:
Expand Down

0 comments on commit 097a323

Please sign in to comment.