Skip to content

Commit

Permalink
Merge pull request #1440 from alphagov/mobile-backend-policy-fix
Browse files Browse the repository at this point in the history
update GHA policy to include sub-resources
  • Loading branch information
gclssvglx authored Aug 30, 2024
2 parents 9504e9a + bff551f commit aa6f4ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion terraform/deployments/mobile-backend/gha-iam-role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ data "aws_iam_policy_document" "bucket_write_role_permissions" {
"s3:PutObject",
"s3:ListBucket"
]
resources = [aws_s3_bucket.mobile_backend_remote_config.arn]
resources = [
aws_s3_bucket.mobile_backend_remote_config.arn,
"${aws_s3_bucket.mobile_backend_remote_config.arn}/*"
]
}
}

Expand Down

0 comments on commit aa6f4ba

Please sign in to comment.