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