Skip to content

Commit

Permalink
add token.actions.githubusercontent.com:aud condition
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvdp committed Feb 7, 2023
1 parent 3be2b1c commit a244a9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ data "aws_iam_policy_document" "assume_role" {
variable = "token.actions.githubusercontent.com:sub"
}

condition {
test = "StringLike"
values = ["sts.amazonaws.com"]
variable = "token.actions.githubusercontent.com:aud"
}

principals {
identifiers = [local.oidc_provider_arn]
type = "Federated"
Expand Down

0 comments on commit a244a9e

Please sign in to comment.