catnekaise/Cognito Identity Pool Auth

Use GitHub Actions OIDC access token and get temporary AWS Credentials from an Amazon Cognito Identity Pool.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Sep 3, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: catnekaise/cognito-idpool-auth@41fcec30f55c069bc59f5773077c37477c743bf6 # v1.0.2

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
cognito-identity-pool-idCognito Identity Pool IDyes
auth-flowEither basic or enhancedyes
cognito-identity-provider-nameName of the Congito Identity Provider Name. Can be used in case custom issuer is configured in GitHub Enterprise Cloud.notoken.actions.githubusercontent.com
audienceAudiencenocognito-identity.amazonaws.com
aws-account-idAWS Account IDno""
aws-regionAWS Regionno""
role-arnCustom Role Arnno""
role-duration-secondsRole duration in seconds. (Only available if using AuthFlow basic)no3600
role-session-nameRole Session Name (Only available if using AuthFlow basic)noGitHubActions
set-as-profileSet credentials as profile with provided nameno""
set-in-environmentSet credentials as environment variablesno""
chain-role-arnArn of Role when performing role chainingno""
chain-pass-claimsClaims from ID token to pass to the role when performing role chaining. Can also include `repository_name`, which will be calculated.no""
chain-set-as-profileSet credentials as profile with provided nameno""
chain-set-in-environmentSet role chained credentials as environment variablesno""
chain-role-duration-secondsRole duration in seconds for chained roleno3600
chain-role-session-nameRole Session Name for chained role sessionnoGitHubActions
namedescription
aws_access_key_idAWS Access Key Id
aws_secret_access_keyAWS Secret Access Key
aws_session_tokenAWS Session Name
aws_regionAWS Region
cognito_identity_oidc_access_tokenCognito Identity OIDC Access Token