From 54792418d11edd68e808ab212e6d0c4ba20fd933 Mon Sep 17 00:00:00 2001 From: Bruno Arnaud Cazabat <35856330+brunocazabat@users.noreply.github.com> Date: Thu, 26 Feb 2026 15:56:24 +0100 Subject: [PATCH] feat(action.yml): add github-token and uv_version inputs; pass github-token to setup-uv Signed-off-by: Bruno Arnaud Cazabat <35856330+brunocazabat@users.noreply.github.com> --- action.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index 1b657d2..59e4376 100644 --- a/action.yml +++ b/action.yml @@ -5,22 +5,26 @@ branding: color: blue icon: anchor inputs: + github-token: + description: "Optional GitHub token to use on astral-sh/setup-uv and avoid rate limits" + required: false + default: ${{ github.server_url == 'https://github.com' && github.token || '' }} + uv_version: + description: "The uv version to install (default: latest)" + required: false + default: 'latest' version: description: "The chart-testing version to install" required: false default: '3.14.0' - yamllint_version: - description: "The yamllint version to install" - required: false - default: '1.33.0' yamale_version: description: "The yamale version to install" required: false default: '6.0.0' - uv_version: - description: "The uv version to install (default: latest)" + yamllint_version: + description: "The yamllint version to install" required: false - default: 'latest' + default: '1.33.0' runs: using: composite steps: @@ -28,6 +32,7 @@ runs: - uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0 with: version: ${{ inputs.uv_version }} + github-token: ${{ inputs.github-token }} - run: | cd $GITHUB_ACTION_PATH \ && ./ct.sh \ @@ -35,3 +40,4 @@ runs: --yamllint-version ${{ inputs.yamllint_version }} \ --yamale-version ${{ inputs.yamale_version }} shell: bash +