mirror of
https://github.com/harness/drone.git
synced 2025-05-17 01:20:13 +08:00
support for whitelisting
This commit is contained in:
parent
bc395ac9b2
commit
d984848524
@ -8,6 +8,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/rs/zerolog/log"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
@ -105,6 +106,7 @@ func NewService(ctx context.Context, config Config,
|
||||
|
||||
config: config,
|
||||
}
|
||||
log.Ctx(ctx).Info().Msgf("Whitelisted internal URL patterns are %v", config.WhitelistedInternalUrlPattern)
|
||||
|
||||
_, err := gitReaderFactory.Launch(ctx, eventsReaderGroupName, config.EventReaderName,
|
||||
func(r *gitevents.Reader) error {
|
||||
|
Loading…
Reference in New Issue
Block a user