修复仓库匹配逻辑,添加大小写不敏感的比较
Some checks failed
checks / check and test (push) Successful in 10m38s
release-nightly / release-image (push) Failing after 20m24s

This commit is contained in:
2025-04-13 22:50:38 +08:00
parent eceef92735
commit f3622b3d44
2 changed files with 68 additions and 68 deletions

View File

@ -267,8 +267,8 @@ func matchAllowedRepo(targetRepo string, allowedRepos []string) bool {
continue
}
allowedOwner, allowedRepoName := parts[0], parts[1]
if (allowedOwner == "*" || allowedOwner == targetOwner) &&
(allowedRepoName == "*" || allowedRepoName == targetRepoName) {
if (allowedOwner == "*" || strings.ToLower(allowedOwner) == strings.ToLower(targetOwner)) &&
(allowedRepoName == "*" || strings.ToLower(allowedRepoName) == strings.ToLower(targetRepoName)) {
return true
}
}