Skip to content

Authenticate to Tencent Cloud

Actions
Authenticate to Tencent Cloud with GitHub Actions OIDC tokens
v1
Latest
Star (4)

tencentcloud-oidc-auth

GitHub Action for authenticating to Tencent Cloud with GitHub Actions OIDC tokens.

Usage

jobs:
  job-id:
    # ...
    permissions:
      id-token: write
    steps:
      - uses: everpcpc/tencentcloud-oidc-auth@v1
        with:
          role-arn: qcs::cam::uin/1234567890:roleName/role-name
          role-session-name: github-actions-test
          oidc-provider-id: github
          role-duration-seconds: 3600
          audience: sts.tencentcloudapi.com
          region: ap-guangzhou
      - run: pip install tccli
      - run: tccli sts GetCallerIdentity

Inputs

  • role-arn: Required. The ARN of the role to assume.
  • oidc-provider-id: Required. The name of the OIDC provider to use for authentication.
  • role-session-name: Optional. The session name to use when assuming the role, default to github-actions-<orgName>-<repoName>.
  • role-duration-seconds: Optional. The duration, in seconds, of the role session, default to 3600.
  • audience: Optional. The intended audience (also known as client ID) of the OIDC token, default to sts.tencentcloudapi.com.
  • region: Optional. The region of the role to assume, default to ap-guangzhou.
  • mask-account-id: Optional. Whether to mask the account ID in the output, default to true.

Output Environment Variables

  • TENCENTCLOUD_SECRET_ID: The access key ID of the temporary credentials.
  • TENCENTCLOUD_SECRET_KEY: The secret access key of the temporary credentials.
  • TENCENTCLOUD_SECURITY_TOKEN: The session token of the temporary credentials, for pulumi-tencentcloud.
  • TENCENTCLOUD_TOKEN: The session token of the temporary credentials, for tencentcloud-cli.
  • TENCENTCLOUD_REGION: The region to use when calling Tencent Cloud APIs.

Authenticate to Tencent Cloud 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.

About

Authenticate to Tencent Cloud with GitHub Actions OIDC tokens
v1
Latest

Authenticate to Tencent Cloud 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.