From cab994a2548bfbb0de3ca20b8e591bd7aebf35de Mon Sep 17 00:00:00 2001 From: Fabian Murariu Date: Thu, 4 Jul 2024 17:12:53 +0100 Subject: [PATCH] attempt to fix the github token issues with protoc --- .github/workflows/_release_rust.yml | 6 +++--- .github/workflows/benchmark.yml | 4 ++-- .github/workflows/test_rust_workflow.yml | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/_release_rust.yml b/.github/workflows/_release_rust.yml index 2f77213fd..59745a5cd 100644 --- a/.github/workflows/_release_rust.yml +++ b/.github/workflows/_release_rust.yml @@ -39,9 +39,9 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo- - name: Install Protoc - uses: arduino/setup-protoc@v3 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 - run: | git config --global user.email "Haaroon@users.noreply.github.com" diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 3e673f159..5bb8f9c22 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -27,8 +27,8 @@ jobs: run: rustup update - name: Install Protoc uses: arduino/setup-protoc@v3 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Cargo cache uses: Swatinem/rust-cache@v2 with: diff --git a/.github/workflows/test_rust_workflow.yml b/.github/workflows/test_rust_workflow.yml index 512932a22..2fa92c12e 100644 --- a/.github/workflows/test_rust_workflow.yml +++ b/.github/workflows/test_rust_workflow.yml @@ -44,8 +44,8 @@ jobs: sudo rm -rf "$AGENT_TOOLSDIRECTORY" - name: Install Protoc uses: arduino/setup-protoc@v3 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: webfactory/ssh-agent@v0.7.0 name: Load pometry-storage key with: @@ -86,8 +86,8 @@ jobs: components: rustfmt, clippy - name: Install Protoc uses: arduino/setup-protoc@v3 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: Swatinem/rust-cache@v2 name: Cargo cache with: