mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-06-10 13:30:49 +00:00
Fix regression in commit 0849735f9e.
The check would always fail. V12-Ref: F-77362
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user