fix(healthcheck/forbidden): skip .
Some checks failed
build / build (push) Failing after 1m15s
build / trigger-build-image (push) Has been skipped

This commit is contained in:
zzjc1234 2024-10-17 15:01:36 +08:00
parent 84e168dad6
commit 83b6cb6b2c

View File

@ -25,7 +25,10 @@ func getForbiddens(root string, fileList []string) ([]string, error) {
return err
}
if info.IsDir() && info.Name() == ".git" {
if info.IsDir() && (info.Name() == ".") {
return nil
}
if info.IsDir() && (info.Name() == ".git") {
return filepath.SkipDir
} else {
match := ignore.Relative(info.Name(), true)