Skip to content

Commit f1d9c57

Browse files
author
Gustav Paul
committed
scm/driver/github: allow SkipVerify
1 parent 731e51d commit f1d9c57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scm/driver/github/repo.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ type hook struct {
4646
URL string `json:"url"`
4747
Secret string `json:"secret"`
4848
ContentType string `json:"content_type"`
49+
InsecureSSL string `json:"insecure_ssl"`
4950
} `json:"config"`
5051
}
5152

@@ -112,6 +113,10 @@ func (s *RepositoryService) CreateHook(ctx context.Context, repo string, input *
112113
in.Config.Secret = input.Secret
113114
in.Config.ContentType = "json"
114115
in.Config.URL = input.Target
116+
in.Config.InsecureSSL = "0"
117+
if input.SkipVerify {
118+
in.Config.InsecureSSL = "1"
119+
}
115120
in.Events = append(
116121
input.NativeEvents,
117122
convertHookEvents(input.Events)...,

0 commit comments

Comments
 (0)