fix: webhook auth should support go template (#623)

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
This commit is contained in:
Rick 2025-02-20 09:26:55 +08:00 committed by GitHub
parent 4b4ee3a60c
commit 4a38bd2188
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -472,6 +472,10 @@ func getBearerToken(ctx context.Context, request RequestWithAuth) (token string,
return
}
if request.BearerAPI, err = render.Render("bearer token request", request.BearerAPI, &request); err != nil {
return
}
var data []byte
if data, err = json.Marshal(&request); err == nil {
client := http.DefaultClient