mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-04 06:15:07 +09:00
Merge pull request #563 from russau/docs/readme-role-update
Minor: include a role condition test for AUD in sample CFN template
This commit is contained in:
@@ -161,6 +161,10 @@ Parameters:
|
|||||||
Description: Arn for the GitHub OIDC Provider.
|
Description: Arn for the GitHub OIDC Provider.
|
||||||
Default: ""
|
Default: ""
|
||||||
Type: String
|
Type: String
|
||||||
|
OIDCAudience:
|
||||||
|
Description: Audience supplied to configure-aws-credentials.
|
||||||
|
Default: "sts.amazonaws.com"
|
||||||
|
Type: String
|
||||||
|
|
||||||
Conditions:
|
Conditions:
|
||||||
CreateOIDCProvider: !Equals
|
CreateOIDCProvider: !Equals
|
||||||
@@ -181,6 +185,8 @@ Resources:
|
|||||||
- !Ref GithubOidc
|
- !Ref GithubOidc
|
||||||
- !Ref OIDCProviderArn
|
- !Ref OIDCProviderArn
|
||||||
Condition:
|
Condition:
|
||||||
|
StringEquals:
|
||||||
|
token.actions.githubusercontent.com:aud: !Ref OIDCAudience
|
||||||
StringLike:
|
StringLike:
|
||||||
token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/${RepositoryName}:*
|
token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/${RepositoryName}:*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user