Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/actions/setup-rust-and-protoc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
protoc-version:
description: Protoc version selector
required: false
default: "26.1"
default: "34.1"
protoc-repo-token:
description: Token used by setup-protoc to avoid API rate limit
required: false
Expand All @@ -46,8 +46,12 @@
if: ${{ inputs.setup-protoc == 'true' }}
env:
PROTOC_VERSION: ${{ inputs.protoc-version }}
PROTOC_REPO_TOKEN: ${{ inputs.protoc-repo-token }}
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
with:
version: ${{ env.PROTOC_VERSION }}
repo-token: ${{ env.PROTOC_REPO_TOKEN }} # Add github token to avoid rate limit see docs https://github.com/arduino/setup-protoc
PROTOC_SHA256: af27ea66cd26938fe48587804ca7d4817457a08350021a1c6e23a27ccc8c6904
shell: bash
run: |
set -euo pipefail
PROTOC_ARCHIVE="protoc-${{ env.PROTOC_VERSION }}-linux-x86_64.zip"

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
curl -LO "https://github.com/protocolbuffers/protobuf/releases/download/v${{ env.PROTOC_VERSION }}/${PROTOC_ARCHIVE}"

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
echo "${{ env.PROTOC_SHA256 }} ${PROTOC_ARCHIVE}" | sha256sum --check --strict

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
unzip "${PROTOC_ARCHIVE}" -d "$HOME/.local"
export PATH="$PATH:$HOME/.local/bin"
Comment thread
fegmorte marked this conversation as resolved.
Outdated
2 changes: 1 addition & 1 deletion .github/workflows/common-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
rust-toolchain: ${{ env.RUST_IMAGE_VERSION }}
rust-components: llvm-tools-preview, llvm-tools
rust-cache: "false"
protoc-version: '26.1'
protoc-version: '34.1'
protoc-repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Rust cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kind-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ jobs:
uses: ./.github/actions/setup-rust-and-protoc
with:
setup-rust: "false"
protoc-version: '26.1'
protoc-version: '34.1'
protoc-repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup cargo nextest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ jobs:
rust-toolchain: ${{ env.RUST_IMAGE_VERSION }}
rust-components: llvm-tools-preview, llvm-tools
rust-cache: "false"
protoc-version: '26.1'
protoc-version: '34.1'
protoc-repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Rust cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: ./.github/actions/setup-rust-and-protoc
with:
setup-rust: "false"
protoc-version: '26.1'
protoc-version: '34.1'
protoc-repo-token: ${{ secrets.GITHUB_TOKEN }}

# WASM handling
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
rust-toolchain: ${{ env.RUST_IMAGE_VERSION }}
rust-components: rustfmt, clippy, llvm-tools-preview, llvm-tools
rust-cache: "false"
protoc-version: '26.1'
protoc-version: '34.1'
protoc-repo-token: ${{ secrets.GITHUB_TOKEN }}

# ======================================================================
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
rust-toolchain: ${{ env.RUST_IMAGE_VERSION }}
rust-components: rustfmt, clippy
rust-cache: "false"
protoc-version: '26.1'
protoc-version: '34.1'
protoc-repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Rust cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wasm-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: ./.github/actions/setup-rust-and-protoc
with:
rust-toolchain: ${{ env.RUST_IMAGE_VERSION }}
protoc-version: '26.1'
protoc-version: '34.1'
protoc-repo-token: ${{ secrets.GITHUB_TOKEN }}

# WASM handling
Expand Down
Loading