Skip to content

Commit d9c8cb3

Browse files
committed
feat: add github-token input to avoid rate limits
Likely fixes issues for #6
1 parent e4d248b commit d9c8cb3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ For more advanced usage, see the following examples:
3535
| `version` | WASI SDK version to install (e.g., `25`) | No | `latest` |
3636
| `install-path` | Directory to install WASI SDK to | No | `$RUNNER_TOOL_CACHE/wasi-sdk` |
3737
| `add-to-path` | Add WASI SDK `bin` directory to the `PATH` | No | `true` |
38+
| `github-token` | GitHub token for API requests | No | `${{ github.token }}` |
3839

3940
Note that passing `latest` as the `version` will attempt to retrieve the latest [release
4041
tag][releases]. See GitHub's [variables reference] for a description of `RUNNER_TOOL_CACHE`; other

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ inputs:
1414
description: 'Add WASI SDK bin directory to PATH'
1515
required: false
1616
default: 'true'
17+
github-token:
18+
description: 'GitHub token for API requests (avoids rate limiting)'
19+
required: false
20+
default: ${{ github.token }}
1721

1822
outputs:
1923
wasi-sdk-path:
@@ -35,6 +39,8 @@ runs:
3539
- name: Install WASI SDK
3640
id: install
3741
shell: bash
42+
env:
43+
GITHUB_TOKEN: ${{ inputs.github-token }}
3844
run: |
3945
$GITHUB_ACTION_PATH/install.py -v \
4046
--version '${{ inputs.version }}' \

0 commit comments

Comments
 (0)