1
0
Fork 0
mirror of synced 2026-06-05 09:35:13 +00: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:
Peter Woodworth 2023-02-21 18:49:30 -08:00 committed by GitHub
commit 567d4149d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,6 +161,10 @@ Parameters:
Description: Arn for the GitHub OIDC Provider.
Default: ""
Type: String
OIDCAudience:
Description: Audience supplied to configure-aws-credentials.
Default: "sts.amazonaws.com"
Type: String
Conditions:
CreateOIDCProvider: !Equals
@ -181,6 +185,8 @@ Resources:
- !Ref GithubOidc
- !Ref OIDCProviderArn
Condition:
StringEquals:
token.actions.githubusercontent.com:aud: !Ref OIDCAudience
StringLike:
token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/${RepositoryName}:*