Skip to content

Commit

Permalink
test: Add sts:AssumeRole for Root in IAM (#4172)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Jun 29, 2023
1 parent d7d789f commit 9dedcf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/gha/cloudformation/iam_cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ Resources:
token.actions.githubusercontent.com:aud: sts.amazonaws.com
StringLike:
token.actions.githubusercontent.com:sub: !Sub "repo:${Repository}:ref:${Branches}"
- Effect: Allow
Principal:
AWS: !Sub "arn:aws:iam::${AWS::AccountId}:root"
Action: "sts:AssumeRole"
FISInterruptionRole:
Type: AWS::IAM::Role
Properties:
Expand Down

0 comments on commit 9dedcf9

Please sign in to comment.