mirror of
https://github.com/azure/setup-kubectl.git
synced 2026-12-06 20:21:52 +00:00
feat: add downloadBaseURL, checksum, and downloadAuthToken inputs (closes Azure#206) (#268)
This commit is contained in:
+12
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user