From e505683f9187ce2ea9ebb195ee15a5b100513d03 Mon Sep 17 00:00:00 2001 From: Austin Abro <37223396+AustinAbro321@users.noreply.github.com> Date: Tue, 3 Sep 2024 09:40:20 -0400 Subject: [PATCH] fix(ci): test-imports workflow breaks when called from a fork (#2946) Signed-off-by: Austin Abro --- .github/workflows/test-import.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-import.yaml b/.github/workflows/test-import.yaml index 1cc6784f04..c5571593fe 100644 --- a/.github/workflows/test-import.yaml +++ b/.github/workflows/test-import.yaml @@ -28,7 +28,7 @@ jobs: cd $(mktemp -d) echo "$GO_MAIN" > main.go go mod init github.com/zarf-dev/test-import - go mod edit -replace github.com/zarf-dev/zarf=github.com/${{ github.repository }}@${COMMIT_SHA:0:12} + go mod edit -replace github.com/zarf-dev/zarf=github.com/${{ github.event.pull_request.head.repo.full_name }}@${COMMIT_SHA:0:12} go mod tidy cat go.mod | grep -q ${COMMIT_SHA:0:12} go run main.go