From 3d52632648eed9faeff4efbe3184c5c72e0a259f Mon Sep 17 00:00:00 2001 From: Catherine Date: Mon, 1 Jun 2026 08:08:33 +0000 Subject: [PATCH] Fix regression in commit 0849735f9eb230ad1bc9866380650b49adf7af92. The check would always fail. V12-Ref: F-77362 --- src/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.go b/src/auth.go index 25d1da0..0afcb18 100644 --- a/src/auth.go +++ b/src/auth.go @@ -620,7 +620,7 @@ func authorizeForgejoActionRun(repoURL string, forgeToken string, prNumber strin return nil, AuthError{http.StatusUnauthorized, "workflow run not triggered by pull request"} } prOwner, prRepository := actionRun.PullRequest.OwnerName, actionRun.PullRequest.RepositoryName - if fmt.Sprintf("%s/%s.git", prOwner, prRepository) != parsedRepoURL.Path { + if fmt.Sprintf("/%s/%s.git", prOwner, prRepository) != parsedRepoURL.Path { return nil, AuthError{http.StatusUnauthorized, "pull request repository does not match"} } if fmt.Sprintf("%d", actionRun.PullRequest.Number) != prNumber {