Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌼 GitHub Action to Setup Huawei Cloud KooCLI - hcloud CLI

🧪 Testing GitHub release (latest SemVer) Marketplace

About

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 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

Inputs

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.

Outputs

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

Miscellaneous

  • 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.

About

🌼 Setup Huawei Cloud KooCLI - `hcloud` CLI

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors