Skip to content

ci: allow PostHog ingest token - #53

Merged
somanshreddy merged 1 commit into
mainfrom
04-06-ci_allow_posthog_ingest_token
Apr 6, 2026
Merged

somanshreddy merged 1 commit into
mainfrom
04-06-ci_allow_posthog_ingest_token

Conversation

@somanshreddy

@somanshreddy somanshreddy commented Apr 6, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds a .gitleaks.toml allowlist so the PostHog project API token in internal/analytics/analytics.go doesn't fail the secrets CI check.

PostHog project tokens are public client-side ingest tokens by design — they're embedded in every frontend and CLI that uses PostHog. This is not a secret leak. The allowlist is scoped narrowly: only matches the exact const posthogAPIKey = "phc_..." assignment in that one file.

Without this, the secrets CI job fails on PRs #23, #49, and #50 (the entire M6 stack).

Testing

CI secrets job should pass after this merges. Verified the allowlist regex matches the token assignment pattern.

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@somanshreddy
somanshreddy marked this pull request as ready for review April 6, 2026 23:41

somanshreddy commented Apr 6, 2026 •

Copy link
Copy Markdown
Collaborator Author

Merge activity

  • Apr 6, 11:41 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 6, 11:41 PM UTC: @somanshreddy merged this pull request with Graphite.

@somanshreddy
somanshreddy merged commit 116e38e into main Apr 6, 2026
8 checks passed
@somanshreddy
somanshreddy deleted the 04-06-ci_allow_posthog_ingest_token branch April 6, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant