Skip to content

Commit

Permalink
Merge pull request #248 from tphoney/harness-webhook-fix
Browse files Browse the repository at this point in the history
(fix) harness, webhook fixes
  • Loading branch information
TP Honey authored Feb 10, 2023
2 parents eab2fbe + 643af2e commit 288a76a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scm/driver/harness/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func New(uri, account, organization, project string) (*scm.Client, error) {
client := &wrapper{new(scm.Client), account, organization, project}
client.BaseURL = base
// initialize services
client.Driver = scm.DriverGitea
client.Driver = scm.DriverHarness
client.Linker = &linker{base.String()}
client.Contents = &contentService{client}
client.Git = &gitService{client}
Expand Down
2 changes: 1 addition & 1 deletion scm/driver/harness/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s *webhookService) Parse(req *http.Request, fn scm.SecretFunc) (scm.Webhoo
}

secret := req.FormValue("secret")
signature := req.Header.Get("X-Gitea-Signature")
signature := req.Header.Get("X-Harness-Signature")

// fail if no signature passed
if signature == "" && secret == "" {
Expand Down

0 comments on commit 288a76a

Please sign in to comment.