setup-hcloud
ActionsTags
(2)KooCLI is the Huawei Cloud official command-line tool. Huawei Cloud previously provided a simple setup action, but that repository now returns 404. This action provides an alternative way to setup KooCLI on your runner. It supports Linux, macOS, and Windows runners, and can download KooCLI binaries from an internal mirror when needed.
- name: Setup Huawei Cloud KooCLI
uses: vbem/setup-hcloud@hash
- name: Test KooCLI by querying the current IAM caller
env:
HUAWEICLOUD_SDK_REGION: cn-north-4
HUAWEICLOUD_SDK_AK: ${{ secrets.HUAWEICLOUD_SDK_AK }}
HUAWEICLOUD_SDK_SK: ${{ secrets.HUAWEICLOUD_SDK_SK }}
run: |
hcloud sts GetCallerIdentity \
--cli-region="${HUAWEICLOUD_SDK_REGION}" \
--cli-access-key="${HUAWEICLOUD_SDK_AK}" \
--cli-secret-key="${HUAWEICLOUD_SDK_SK}" \
| jq -C| ID | Type | Default | Description |
|---|---|---|---|
agree-privacy |
Boolean | true |
Whether to accept the privacy statement during installation. |
disable-warning |
Boolean | true |
Whether to disable warning for future KooCLI execution. This requires agree-privacy to be true. |
check-version |
Boolean | true |
Whether to check the KooCLI version after installation. This requires agree-privacy to be true. |
mirror |
String | "" |
The mirror URL prefix used to download KooCLI. Default is empty, which will use the official mirrors: the Singapore mirror for GitHub-hosted runners, and the Beijing mirror otherwise. |
| ID | Type | Description | Example |
|---|---|---|---|
url |
String | The URL used to download the KooCLI package. | https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/huaweicloud-cli-linux-amd64.tar.gz |
path |
String | The path to the KooCLI binary on the runner. | /usr/local/bin/hcloud |
version |
String | The detected KooCLI version. | Current KooCLI version: 7.2.12 |
- Storing long-term AK/SK in GitHub secrets increases the risk of accidental exposure and maintenance burden. Consider using OIDC based temporary STS credentials instead. See
configure-huawei-cloud-credentialsfor more details.
setup-hcloud is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.