Compare commits
2 Commits
7e5dbd733e
...
c2bb81ee3d
| Author | SHA1 | Date | |
|---|---|---|---|
| c2bb81ee3d | |||
| 536dae6350 |
|
|
@ -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 == "" ||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user