File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -466,6 +466,8 @@ func parseFederatedTrustPolicy(statement policy.RoleTrustStatementEntry) (string
466466 subjects = append (subjects , statement .Condition .StringLike .TokenActionsGithubusercontentComSub ... )
467467 } else if len (statement .Condition .StringEquals .TokenActionsGithubusercontentComSub ) > 0 {
468468 subjects = append (subjects , statement .Condition .StringEquals .TokenActionsGithubusercontentComSub ... )
469+ } else if len (statement .Condition .ForAllValuesStringLike .TokenActionsGithubusercontentComSub ) > 0 {
470+ subjects = append (subjects , statement .Condition .ForAllValuesStringLike .TokenActionsGithubusercontentComSub ... )
469471 } else {
470472 subjects = append (subjects , "ALL REPOS!!!" )
471473 }
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ type RoleTrustStatementEntry struct {
6464 CircleCISub ListOfPrincipals `json:"CircleCISub"`
6565 // Add patterns for provider-specific claims that support wildcards or partial matches
6666 } `json:"StringLike"`
67+ ForAllValuesStringLike struct {
68+ TokenActionsGithubusercontentComSub ListOfPrincipals `json:"token.actions.githubusercontent.com:sub"`
69+ } `json:"ForAllValues:StringLike"`
6770 ForAnyValueStringLike struct {
6871 CognitoAMR string `json:"cognito-identity.amazonaws.com:amr"`
6972 //Auth0Amr ListOfPrincipals `json:"Auth0Amr"`
You can’t perform that action at this time.
0 commit comments