Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(ci): restrict agent releases to the canonical repository (#121135)

Alessandro Pogliaghid756a2e9cf76
diff --git a/.github/workflows/desktop-agent-release.yml b/.github/workflows/desktop-agent-release.yml
index 28ce711ace8a..5ddd2e7e508e 100644
--- a/.github/workflows/desktop-agent-release.yml
+++ b/.github/workflows/desktop-agent-release.yml
@@ -18,6 +18,7 @@ env:
jobs:
release:
name: Publish agent to npm
+ if: github.repository == 'PostHog/posthog'
# npm provenance requires a github-hosted runner; Depot registers as self-hosted
runs-on: ubuntu-24.04
timeout-minutes: 30
@@ -97,7 +98,7 @@ jobs:
notify-release:
name: Post the release to Slack
needs: release
- if: ${{ !cancelled() }}
+ if: ${{ !cancelled() && github.repository == 'PostHog/posthog' }}
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions: