Skip to content

Commit eec432e

Browse files
committed
[ELI-731] addressing comments
1 parent eb8a1ed commit eec432e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

infrastructure/stacks/iams-developer-roles/github_actions_policies.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,14 @@ data "aws_iam_policy_document" "regression_repo_assume_role" {
981981
values = ["repo:${var.github_org}/${var.regression_repo}:*"]
982982
}
983983

984+
condition {
985+
test = "StringLike"
986+
variable = "token.actions.githubusercontent.com:job_workflow_ref"
987+
values = [
988+
"${var.github_org}/${var.regression_repo}/.github/workflows/regression_tests.yml@*"
989+
]
990+
}
991+
984992
condition {
985993
test = "StringEquals"
986994
variable = "token.actions.githubusercontent.com:aud"

0 commit comments

Comments
 (0)