Skip to content

Commit 399726c

Browse files
committed
Add permissions for pull request to AWS ECR
1 parent c8c5948 commit 399726c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ops/repository/iam.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ resource "aws_iam_role" "github_action_role" {
4545
"token.actions.githubusercontent.com:aud" = "sts.amazonaws.com",
4646
"token.actions.githubusercontent.com:sub" = [
4747
"repo:${var.github_owner}/${var.github_repo}:ref:refs/heads/main",
48+
"repo:${var.github_owner}/${var.github_repo}:pull_request"
4849
]
4950
}
5051
}

0 commit comments

Comments
 (0)