From 0cc72285591e59f3cd92af86ca9b16bdb36c04b3 Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Tue, 14 May 2024 17:39:53 -0700 Subject: [PATCH] Try to use authenticated request to install protoc in GH (#1767) --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad0d9afaed..5659b8b13e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,8 @@ jobs: - name: "Set rustup profile" run: rustup set profile minimal - uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Test run: bash ./scripts/test.sh lint: @@ -52,6 +54,8 @@ jobs: with: components: rustfmt - uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions-rs/cargo@v1 with: command: fmt @@ -88,6 +92,8 @@ jobs: with: components: rustfmt - uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Build run: | cd ${{ matrix.example }} @@ -126,6 +132,8 @@ jobs: with: components: rustfmt - uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: doc run: cargo doc --no-deps --all-features env: @@ -144,6 +152,8 @@ jobs: toolchain: stable components: rustfmt,llvm-tools-preview - uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: cargo install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: cargo generate-lockfile