From 050a8c514718d13a8cfd4f06e7ade7a0481ae59d Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 16 Dec 2024 14:56:40 -0500 Subject: [PATCH] Allow test-infra repo to use packer role Allow the pytorch/test-infra repo to be able to use the packer role. Issue: pytorch/test-infra#5992 Signed-off-by: Thanh Ha --- ali/aws/391835788720/us-east-1/gha_roles.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ali/aws/391835788720/us-east-1/gha_roles.tf b/ali/aws/391835788720/us-east-1/gha_roles.tf index a97289f..6de86c8 100644 --- a/ali/aws/391835788720/us-east-1/gha_roles.tf +++ b/ali/aws/391835788720/us-east-1/gha_roles.tf @@ -77,7 +77,8 @@ resource "aws_iam_role" "gha-packer-role" { StringLike = { "token.actions.githubusercontent.com:sub" = [ "repo:pytorch/pytorch:environment:packer-build-env", - "repo:pytorch/pytorch-canary:environment:packer-build-env" + "repo:pytorch/pytorch-canary:environment:packer-build-env", + "repo:pytorch/test-infra:environment:packer-build-env" ] } }