Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

Deprecate repo, remove hardcoded webhook secret, treat org events as private - #34

Merged
jessikad-google merged 1 commit into
mainfrom
deprecate-and-scrub-secret
Nov 19, 2026
Merged

jessikad-google merged 1 commit into
mainfrom
deprecate-and-scrub-secret

Conversation

@jessikad-google

Copy link
Copy Markdown
Contributor

This repository is no longer maintained and will be archived after this PR
merges. This final change leaves the archived code in a safer state:

  • README.md: Adds a deprecation notice and directs users to the maintained
    replacement (abcxyz/github-metrics-aggregator).
  • event/event.go: Removes the hardcoded webhook secret; ParseFromRequest
    now reads GITHUB_WEBHOOK_SECRET from the environment and fails closed if
    unset.
  • event/event.go: Marks *github.OrganizationEvent as IsPrivate: true
    (matching *github.MembershipEvent) so org membership and invitation payloads
    are not routed to the public topic.

Note: Earlier versions hardcoded a webhook secret. Don't reuse it.
Configure your own secret with GITHUB_WEBHOOK_SECRET.

Testing

  • gofmt -l event/ and go vet ./event/ pass (the repo has no Go unit tests).
  • Verified request handling separately:
    • Rejects requests when GITHUB_WEBHOOK_SECRET is unset or signature mismatches.
    • Sets IsPrivate=true for organization events and IsPrivate=false for public push events.

…private

- README.md: add a deprecation notice. The repo is unmaintained and will be
  archived; Google uses the GitHub Events Platform (GEP) instead.
- event/event.go: read the webhook HMAC secret from GITHUB_WEBHOOK_SECRET
  and reject every request when it is unset, instead of using a hardcoded
  constant.
- event/event.go: classify *github.OrganizationEvent as private, like
  *github.MembershipEvent, so org membership and invitation payloads aren't
  published to the public-only topic.
@jessikad-google
jessikad-google merged commit 7290a78 into main Nov 19, 2026
8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants