Skip to content

Commit

Permalink
fix: Add token.actions.githubusercontent.com:aud condition (#22)
Browse files Browse the repository at this point in the history
Adds the token.actions.githubusercontent.com:aud condition.
Fixes #21.
  • Loading branch information
martijnvdp authored Feb 16, 2023
1 parent 3be2b1c commit 2dc99c4
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 2dc99c4

Please sign in to comment.