From 770ffb857edc9f89f905e2b29641dedb741d4b5f Mon Sep 17 00:00:00 2001 From: Michelangelo Morrillo Date: Thu, 21 May 2020 15:34:57 +0200 Subject: [PATCH] Include signature algorithm in header field Co-authored-by: Lauris BH --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 1e9fbbb..528775d 100644 --- a/plugin.go +++ b/plugin.go @@ -128,7 +128,7 @@ func (p Plugin) Exec() error { sha := hex.EncodeToString(h.Sum(nil)) // append signature to headers - req.Header.Set("X-Drone-Signature", sha) + req.Header.Set("X-Drone-Signature", fmt.Sprintf("sha256=%s", sha)) } for _, value := range p.Config.Headers {