Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(api): add GitHub webhook signature + push parsing helper#1316

Merged
jonnii merged 1 commit into
main from
jonnii/20260623024903/add-GitHub-webhook-signature-push-parsing-helper
Jun 24, 2026
Merged

feat(api): add GitHub webhook signature + push parsing helper #1316
jonnii merged 1 commit into
main from
jonnii/20260623024903/add-GitHub-webhook-signature-push-parsing-helper

Conversation

@jonnii

@jonnii jonnii commented Jun 23, 2026
edited
Loading

Copy link
Copy Markdown
Collaborator

🔒 This PR has been locked (consolidating). To unlock it, run st unlock.

Pure, transport-free building blocks for the webhook receiver, kept out of the
HTTP handler so they unit-test without a server:

  • Verify(secret, body, sigHeader) checks the X-Hub-Signature-256 HMAC-SHA256
    with a constant-time compare, and fails closed on an empty secret/header so a
    misconfigured receiver never accepts unsigned payloads.
  • ParsePush(body) extracts owner/name from a push payload, preferring
    owner.login + repository.name and falling back to splitting full_name.

No routing yet; the receiver wires these in the next change.


Stack

💡 Notice: This PR is part of a stack merge into branch stack-merge-stack-1782266218.

Auto-generated by Stackit


Merged via consolidation into #1326 by jonnii

Pure, transport-free building blocks for the webhook receiver, kept out of the
HTTP handler so they unit-test without a server:
- Verify(secret, body, sigHeader) checks the X-Hub-Signature-256 HMAC-SHA256
 with a constant-time compare, and fails closed on an empty secret/header so a
 misconfigured receiver never accepts unsigned payloads.
- ParsePush(body) extracts owner/name from a push payload, preferring
 owner.login + repository.name and falling back to splitting full_name.
No routing yet; the receiver wires these in the next change.
This was referenced Jun 23, 2026
Base automatically changed from jonnii/20260623024716/extract-Syncer.SyncRepo-for-per-repo-sync-triggers to main June 24, 2026 02:00
@jonnii jonnii merged commit a6615d1 into main Jun 24, 2026
7 of 12 checks passed
@jonnii jonnii deleted the jonnii/20260623024903/add-GitHub-webhook-signature-push-parsing-helper branch June 24, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /