everpcpc / tencentcloud-oidc-auth

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:TypeScript 100.0%