Skip to content

git/github: default repository webhook insecure_ssl to TLS verification ("0") #3713

@Vi-shub

Description

@Vi-shub

Summary

When creating a GitHub repository webhook (Client.CreateWebHook in pkg/git/github/github.go), we currently set HookConfig.InsecureSSL to "1", which tells GitHub not to verify TLS when delivering webhooks to an HTTPS payload URL. There is an inline TODO noting this should default to secure behavior.

Problem

  • GitHub’s insecure_ssl field: "0" = verify TLS to the webhook URL, "1" = skip verification (Create a repository webhook).
  • Defaulting to "1" is unsafe for normal HTTPS endpoints with valid certificates.

Proposed change

  • Set InsecureSSL to "0" so GitHub verifies TLS by default for HTTPS webhook targets.
  • Keep behavior documented in code (and optionally add a small unit test on the hook config helper).

Area

pkg/git/github

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions