GitHub Action for authenticating to Tencent Cloud with GitHub Actions OIDC tokens.
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 GetCallerIdentityrole-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 togithub-actions-<orgName>-<repoName>.role-duration-seconds: Optional. The duration, in seconds, of the role session, default to3600.audience: Optional. The intended audience (also known as client ID) of the OIDC token, default tosts.tencentcloudapi.com.region: Optional. The region of the role to assume, default toap-guangzhou.mask-account-id: Optional. Whether to mask the account ID in the output, default totrue.
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, forpulumi-tencentcloud.TENCENTCLOUD_TOKEN: The session token of the temporary credentials, fortencentcloud-cli.TENCENTCLOUD_REGION: The region to use when calling Tencent Cloud APIs.