add support for signature header

This commit is contained in:
Michelangelo
2020-05-21 14:44:30 +02:00
parent b06afe33fc
commit a76e37dacb
3 changed files with 22 additions and 0 deletions
+6
View File
@@ -70,6 +70,11 @@ func main() {
Usage: "skip ssl verification",
EnvVar: "PLUGIN_SKIP_VERIFY",
},
cli.StringFlag{
Name: "secret",
Usage: "secret to generate signature",
EnvVar: "PLUGIN_SECRET,WEBHOOK_SECRET",
},
cli.StringFlag{
Name: "repo.owner",
Usage: "repository owner",
@@ -196,6 +201,7 @@ func run(c *cli.Context) error {
ValidCodes: c.IntSlice("valid-response-codes"),
Debug: c.Bool("debug"),
SkipVerify: c.Bool("skip-verify"),
Secret: c.String("secret"),
},
}