Skip to content

Commit 346ab05

Browse files
committed
feat: add github_token input for setup-uv action
Allow users to specify a custom GitHub token for the astral-sh/setup-uv action. Defaults to the standard github.token if not provided. This enables rate limit handling and access to private resources when needed. Signed-off-by: Marco Lecheler <marco.lecheler@mercedes-benz.com>
1 parent 2e29406 commit 346ab05

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@ inputs:
2121
description: "The uv version to install (default: latest)"
2222
required: false
2323
default: 'latest'
24+
github_token:
25+
description: "GitHub token for authenticating with the GitHub API (default: github.token)"
26+
required: false
27+
default: ${{ github.token }}
2428
runs:
2529
using: composite
2630
steps:
2731
- uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
2832
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
2933
with:
3034
version: ${{ inputs.uv_version }}
35+
github-token: ${{ inputs.github_token }}
3136
- run: |
3237
cd $GITHUB_ACTION_PATH \
3338
&& ./ct.sh \

0 commit comments

Comments
 (0)