Skip to content

Commit

Permalink
CCL-509 filtering for specific branch using subject claims for resouc…
Browse files Browse the repository at this point in the history
…e 'aws_iam_role' (#166)

* CCL-509 added git_branch

* CCL-509 filtering for specific branch using subject claims for resource 'aws_iam_role'
  • Loading branch information
mynampatinaveen authored Aug 30, 2024
1 parent 2802a28 commit e0b3259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/products/static-site/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resource "aws_iam_role" "static_site_actions_push" {
}
Condition = {
StringLike = {
"token.actions.githubusercontent.com:sub" : "repo:${var.tenant_vars.repository}:*"
"token.actions.githubusercontent.com:sub" : "repo:${var.tenant_vars.repository}:ref:refs/heads/${var.tenant_vars.gitbranch}"
"sts:RoleSessionName" : "GitHubActions"
}
StringEquals = {
Expand Down

0 comments on commit e0b3259

Please sign in to comment.