mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-02 05:54:21 +01:00
1 parent
8eb28cbb4c
commit
fad98cbde2
216 files changed
+27523
-3828
No files matched your search
+5
@@ -382,6 +382,7 @@ var (
|
||||
gitProtocolNotFoundErr = "ERR \n Repository not found."
|
||||
gitProtocolNoSuchErr = "ERR no such repository"
|
||||
gitProtocolAccessDeniedErr = "ERR access denied"
|
||||
gogsAccessDeniedErr = "Gogs: Repository does not exist or you do not have access"
|
||||
)
|
||||
|
||||
func isRepoNotFoundError(s string) bool {
|
||||
@@ -409,6 +410,10 @@ func isRepoNotFoundError(s string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
if strings.HasPrefix(s, gogsAccessDeniedErr) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user