You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Example usage
- name: Setup Huawei Cloud KooCLIuses: vbem/setup-hcloud@hash
- name: Test KooCLI by querying the current IAM callerenv:
HUAWEICLOUD_SDK_REGION: cn-north-4HUAWEICLOUD_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
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.
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-credentials for more details.