feat: add downloadBaseURL, checksum, and downloadAuthToken inputs (closes Azure#206) (#268)

This commit is contained in:
benjamin
2026-07-29 16:03:04 -04:00
committed by GitHub
parent de2a114b01
commit 1dc2539e3a
7 changed files with 1272 additions and 151 deletions
+12
View File
@@ -5,6 +5,18 @@ inputs:
description: 'Version of kubectl'
required: true
default: 'latest'
downloadBaseURL:
description: 'Base URL to download kubectl from (https only). Use for private mirrors.'
required: false
default: 'https://dl.k8s.io'
checksum:
description: 'Expected SHA256 of the kubectl binary (lowercase 64-char hex). Required when overriding downloadBaseURL; the action fails closed without it to prevent unverified binaries from poisoning the tool cache.'
required: false
default: ''
downloadAuthToken:
description: 'Optional bearer token sent as the Authorization header when fetching from downloadBaseURL. Stripped on cross-origin redirects.'
required: false
default: ''
outputs:
kubectl-path:
description: 'Path to the cached kubectl binary'