File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ data "aws_iam_policy_document" "github_action_assume_role" {
2525 condition {
2626 test = " StringLike"
2727 variable = " token.actions.githubusercontent.com:sub"
28- values = [" repo:${ var . github_org } /${ var . github_repo } :*" ]
28+ values = [" repo:${ var . github_org } /${ var . github_repo } :*" , " repo: ${ var . github_org } /certified-builder-app-py:* " ]
2929 }
3030 }
3131}
@@ -42,57 +42,57 @@ data "aws_iam_policy_document" "github_action_permissions" {
4242 # --- BROAD PERMISSIONS FOR TERRAFORM PLAN/APPLY ---
4343 # Lambda
4444 statement {
45- effect = " Allow"
46- actions = [" lambda:*" ]
45+ effect = " Allow"
46+ actions = [" lambda:*" ]
4747 resources = [" *" ]
4848 }
4949
5050 # IAM
5151 statement {
52- effect = " Allow"
53- actions = [" iam:*" ]
52+ effect = " Allow"
53+ actions = [" iam:*" ]
5454 resources = [" *" ]
5555 }
5656
5757 # S3
5858 statement {
59- effect = " Allow"
60- actions = [" s3:*" ]
59+ effect = " Allow"
60+ actions = [" s3:*" ]
6161 resources = [" *" ]
6262 }
6363
6464 # ECR
6565 statement {
66- effect = " Allow"
67- actions = [" ecr:*" ]
66+ effect = " Allow"
67+ actions = [" ecr:*" ]
6868 resources = [" *" ]
6969 }
7070
7171 # SQS
7272 statement {
73- effect = " Allow"
74- actions = [" sqs:*" ]
73+ effect = " Allow"
74+ actions = [" sqs:*" ]
7575 resources = [" *" ]
7676 }
7777
7878 # DynamoDB
7979 statement {
80- effect = " Allow"
81- actions = [" dynamodb:*" ]
80+ effect = " Allow"
81+ actions = [" dynamodb:*" ]
8282 resources = [" *" ]
8383 }
8484
8585 # API Gateway
8686 statement {
87- effect = " Allow"
88- actions = [" apigateway:*" ]
87+ effect = " Allow"
88+ actions = [" apigateway:*" ]
8989 resources = [" *" ]
9090 }
9191
9292 # CloudWatch Logs
9393 statement {
94- effect = " Allow"
95- actions = [" logs:*" ]
94+ effect = " Allow"
95+ actions = [" logs:*" ]
9696 resources = [" *" ]
9797 }
9898
You can’t perform that action at this time.
0 commit comments