Skip to content

Commit 9b7ae46

Browse files
dakomclaude
andcommitted
fix: pass github token to setup-protoc to avoid rate limits
arduino/setup-protoc downloads from GitHub releases which gets rate-limited without authentication. Add a github-token input to the setup action and pass GITHUB_TOKEN from the tauri workflow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 54b4b71 commit 9b7ae46

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: "Repo setup"
22
description: "Common CI setup steps (tools, deps, caches, etc.)"
33

4+
inputs:
5+
github-token:
6+
description: "GitHub token for authenticated API requests (avoids rate limits)"
7+
required: false
8+
default: ""
9+
410
runs:
511
using: "composite"
612
steps:
@@ -17,6 +23,8 @@ runs:
1723
1824
- name: Install protoc
1925
uses: arduino/setup-protoc@v3
26+
with:
27+
repo-token: ${{ inputs.github-token }}
2028

2129
- name: Install Rust
2230
uses: dtolnay/rust-toolchain@master

.github/workflows/tauri.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v4
2828
- uses: ./.github/actions/setup
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
2931

3032
- name: Install Node.js
3133
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)