Skip to content

fix(selfhost): read POSTHOG_CLI_PROJECT_ID/HOST from secrets, not vars#8621

Merged
JSONbored merged 1 commit into
mainfrom
claude/fix-posthog-secrets-namespace
Jul 25, 2026
Merged

fix(selfhost): read POSTHOG_CLI_PROJECT_ID/HOST from secrets, not vars#8621
JSONbored merged 1 commit into
mainfrom
claude/fix-posthog-secrets-namespace

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

Re-applies a fix that got dropped: #8619 auto-merged with only its first commit before I pushed this fix to the same branch, so it never reached main. Confirmed live: the actual beta build (orb-v3.4.0-beta.7) failed twice against main with POSTHOG_CLI_PROJECT_ID resolving empty, even after the value was correctly set as a secret in both environments — because the workflow was still reading vars.POSTHOG_CLI_PROJECT_ID, a different namespace from secrets.*.

Both POSTHOG_CLI_PROJECT_ID and POSTHOG_CLI_HOST were configured as environment secrets (not variables) in the release/release-beta GitHub environments — this switches the workflow to read them from secrets.* to match.

Test plan

  • python3 -c "import yaml; yaml.safe_load(...)" — valid YAML
  • Will re-trigger the beta build once this merges and verify POSTHOG_CLI_PROJECT_ID resolves non-empty in the run logs before declaring success

Both were configured as environment SECRETS in the release/release-beta
GitHub environments, not variables -- vars.* and secrets.* are separate
namespaces in Actions, so the workflow would have seen them as unset.
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@JSONbored JSONbored self-assigned this Jul 25, 2026
@JSONbored
JSONbored merged commit a3465a1 into main Jul 25, 2026
4 checks passed
@JSONbored
JSONbored deleted the claude/fix-posthog-secrets-namespace branch July 25, 2026 13:27
@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 25, 2026
@codecov

codecov Bot commented Jul 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.76%. Comparing base (a266d7a) to head (677859f).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8621   +/-   ##
=======================================
  Coverage   92.76%   92.76%           
=======================================
  Files         797      797           
  Lines       79355    79355           
  Branches    24034    24034           
=======================================
  Hits        73616    73616           
  Misses       4592     4592           
  Partials     1147     1147           
Flag Coverage Δ
backend 93.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant