Compare commits

..

2 Commits

Author SHA1 Message Date
c2bb81ee3d
chore(healthcheck): log teapot check env
All checks were successful
submodules sync / sync (push) Successful in 37s
build / build (push) Successful in 1m11s
build / trigger-build-image (push) Successful in 7s
2024-12-05 16:41:51 -05:00
536dae6350
chore(healthcheck): remove gitignore log 2024-12-05 16:40:48 -05:00
2 changed files with 2 additions and 5 deletions

View File

@ -68,6 +68,7 @@ func init() {
func prepareTeapotCheck() (
confObj *conf.Conf, groups []string, actor, repoName string, err error,
) {
slog.Debug("teapot check prepare start", "env", os.Environ())
actor = os.Getenv("GITHUB_ACTOR")
repository := os.Getenv("GITHUB_REPOSITORY")
if actor == "" ||

View File

@ -17,11 +17,7 @@ func getForbiddens(root string) ([]string, error) {
// Create a gitignore instance from the .gitignore file
ignore := gitignore.NewRepositoryWithCache(
root, ".gitignore", gitignore.NewCache(),
func(e gitignore.Error) bool {
slog.Error("gitignore error", "error", e)
return true
},
root, ".gitignore", gitignore.NewCache(), nil,
)
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {