: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(ci): read public identifiers from vars instead of secrets (#94135)
Georges-Antoine Assi12dfa5d60c52
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.ymlindex 6886dbe82115..d80e4fd33524 100644--- a/.depot/workflows/ci-backend.yml+++ b/.depot/workflows/ci-backend.yml@@ -19,7 +19,9 @@# the shadow strips them entirely, so that gating has nothing to mirror), snapshot# auto-commit (handle-snapshots), posthog-github-action telemetry (including the# capture-test-selection job — turbo-discover still emits its telemetry outputs to-# stay apples-to-apples, they just have no consumer here),+# stay apples-to-apples, they just have no consumer here; canonical mints the+# telemetry token from the GH_APP_TELEMETRY_APP_ID org variable rather than the+# secret, which the shadow has no token step to mirror),# --store-durations write, test-selection verdict (so the guard skipping it when both# test matrices were skipped has nothing to mirror), Trunk flaky-test quarantine# gate (canonical runs per-shard analytics-uploader steps that post to thediff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.ymlindex b63b76c7480b..133d83a95d80 100644--- a/.github/workflows/ci-backend.yml+++ b/.github/workflows/ci-backend.yml@@ -4114,7 +4114,7 @@ jobs:if: github.run_attempt == '1'uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1with:- client-id: ${{ secrets.GH_APP_TELEMETRY_APP_ID }}+ client-id: ${{ vars.GH_APP_TELEMETRY_APP_ID }}private-key: ${{ secrets.GH_APP_TELEMETRY_PRIVATE_KEY }}- name: Capture running time to PostHogif: github.run_attempt == '1'diff --git a/.github/workflows/ci-e2e-playwright.yml b/.github/workflows/ci-e2e-playwright.ymlindex 7c34ff88193e..7a3e73c8396c 100644--- a/.github/workflows/ci-e2e-playwright.yml+++ b/.github/workflows/ci-e2e-playwright.yml@@ -1189,7 +1189,7 @@ jobs:if: github.run_attempt == '1'uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1with:- client-id: ${{ secrets.GH_APP_TELEMETRY_APP_ID }}+ client-id: ${{ vars.GH_APP_TELEMETRY_APP_ID }}private-key: ${{ secrets.GH_APP_TELEMETRY_PRIVATE_KEY }}- name: Capture running time to PostHogif: github.run_attempt == '1'diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.ymlindex 9078062f8a34..2d952aca2561 100644--- a/.github/workflows/ci-frontend.yml+++ b/.github/workflows/ci-frontend.yml@@ -1118,7 +1118,7 @@ jobs:if: github.run_attempt == '1'uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1with:- client-id: ${{ secrets.GH_APP_TELEMETRY_APP_ID }}+ client-id: ${{ vars.GH_APP_TELEMETRY_APP_ID }}private-key: ${{ secrets.GH_APP_TELEMETRY_PRIVATE_KEY }}- name: Capture running time to PostHogif: github.run_attempt == '1'diff --git a/.github/workflows/ci-master-run-traces.yml b/.github/workflows/ci-master-run-traces.ymlindex 5d98b198a844..8007d1c79e77 100644--- a/.github/workflows/ci-master-run-traces.yml+++ b/.github/workflows/ci-master-run-traces.yml@@ -68,7 +68,7 @@ jobs:continue-on-error: trueuses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1with:- client-id: ${{ secrets.GH_APP_TELEMETRY_APP_ID }}+ client-id: ${{ vars.GH_APP_TELEMETRY_APP_ID }}private-key: ${{ secrets.GH_APP_TELEMETRY_PRIVATE_KEY }}skip-token-revoke: truediff --git a/.github/workflows/ci-storybook.yml b/.github/workflows/ci-storybook.ymlindex ce7473fa6934..4007a720f1c4 100644--- a/.github/workflows/ci-storybook.yml+++ b/.github/workflows/ci-storybook.yml@@ -993,7 +993,7 @@ jobs:if: github.run_attempt == '1'uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1with:- client-id: ${{ secrets.GH_APP_TELEMETRY_APP_ID }}+ client-id: ${{ vars.GH_APP_TELEMETRY_APP_ID }}private-key: ${{ secrets.GH_APP_TELEMETRY_PRIVATE_KEY }}- name: Capture running time to PostHogif: github.run_attempt == '1'diff --git a/.github/workflows/clickhouse-udfs.yml b/.github/workflows/clickhouse-udfs.ymlindex dc5ab712b645..1f7761605cbd 100644--- a/.github/workflows/clickhouse-udfs.yml+++ b/.github/workflows/clickhouse-udfs.yml@@ -23,7 +23,7 @@ jobs:# https://posthog.slack.com/archives/C02E3BKC78F/p1769016151167609uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1with:- client-id: ${{ secrets.GH_APP_POSTHOG_CLOUD_INFRA_WORKFLOW_TRIGGER_APP_ID }}+ client-id: ${{ vars.GH_APP_POSTHOG_CLOUD_INFRA_WORKFLOW_TRIGGER_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_CLOUD_INFRA_WORKFLOW_TRIGGER_PRIVATE_KEY }}owner: PostHogrepositories: posthog-cloud-infradiff --git a/.github/workflows/desktop-agent-tag.yml b/.github/workflows/desktop-agent-tag.ymlindex aacfa67b816a..b73ab29ff470 100644--- a/.github/workflows/desktop-agent-tag.yml+++ b/.github/workflows/desktop-agent-tag.yml@@ -25,7 +25,7 @@ jobs:id: app-tokenuses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0with:- app_id: ${{ secrets.GH_APP_ARRAY_RELEASER_APP_ID }}+ app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}- name: Checkoutdiff --git a/.github/workflows/desktop-build-test.yml b/.github/workflows/desktop-build-test.ymlindex e4cd426f8a9d..a4b233e976e2 100644--- a/.github/workflows/desktop-build-test.yml+++ b/.github/workflows/desktop-build-test.yml@@ -60,14 +60,15 @@ jobs:NODE_ENV: productionnpm_config_arch: ${{ matrix.arch }}npm_config_platform: darwin- VITE_POSTHOG_API_KEY: ${{ secrets.VITE_POSTHOG_API_KEY }}- VITE_POSTHOG_API_HOST: ${{ secrets.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_API_KEY: ${{ vars.VITE_POSTHOG_API_KEY }}+ VITE_POSTHOG_API_HOST: ${{ vars.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_UI_HOST: ${{ vars.VITE_POSTHOG_UI_HOST }}# No sourcemap secrets: without them the posthog vite plugin skips# release creation and sourcemap upload, keeping test builds# hermetic instead of calling the prod API and flaking on it.CSC_LINK: ${{ secrets.APPLE_CODESIGN_CERT_BASE64 }}CSC_KEY_PASSWORD: ${{ secrets.APPLE_CODESIGN_CERT_PASSWORD }}- APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}+ APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }}# Sign but do not notarize. This build-test verifies the packaging pipeline,# not Gatekeeper distribution; the runner can launch a signed-but-unnotarized# app for the smoke test. Notarization runs only in the tag release@@ -121,13 +122,13 @@ jobs:- name: Configure AWS credentialsuses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1with:- role-to-assume: ${{ secrets.AWS_TWIG_APP_ASSETS_ROLE_ARN }}- aws-region: ${{ secrets.AWS_TWIG_APP_ASSETS_REGION }}+ role-to-assume: ${{ vars.AWS_TWIG_APP_ASSETS_ROLE_ARN }}+ aws-region: ${{ vars.AWS_TWIG_APP_ASSETS_REGION }}mask-aws-account-id: trueunset-current-credentials: true- name: Download BerkeleyMono fonts from S3- run: aws s3 cp s3://${{ secrets.AWS_TWIG_APP_ASSETS_BUCKET }}/fonts/BerkeleyMono/ apps/code/assets/fonts/BerkeleyMono/ --recursive+ run: aws s3 cp s3://${{ vars.AWS_TWIG_APP_ASSETS_BUCKET }}/fonts/BerkeleyMono/ apps/code/assets/fonts/BerkeleyMono/ --recursive- name: Build workspace packagesrun: |@@ -247,8 +248,9 @@ jobs:env:NODE_OPTIONS: '--max-old-space-size=8192'NODE_ENV: production- VITE_POSTHOG_API_KEY: ${{ secrets.VITE_POSTHOG_API_KEY }}- VITE_POSTHOG_API_HOST: ${{ secrets.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_API_KEY: ${{ vars.VITE_POSTHOG_API_KEY }}+ VITE_POSTHOG_API_HOST: ${{ vars.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_UI_HOST: ${{ vars.VITE_POSTHOG_UI_HOST }}steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2@@ -361,8 +363,9 @@ jobs:env:NODE_OPTIONS: '--max-old-space-size=8192'NODE_ENV: production- VITE_POSTHOG_API_KEY: ${{ secrets.VITE_POSTHOG_API_KEY }}- VITE_POSTHOG_API_HOST: ${{ secrets.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_API_KEY: ${{ vars.VITE_POSTHOG_API_KEY }}+ VITE_POSTHOG_API_HOST: ${{ vars.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_UI_HOST: ${{ vars.VITE_POSTHOG_UI_HOST }}steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2diff --git a/.github/workflows/desktop-cleanup-draft-releases.yml b/.github/workflows/desktop-cleanup-draft-releases.ymlindex 6eb83f42f137..11de063915fd 100644--- a/.github/workflows/desktop-cleanup-draft-releases.yml+++ b/.github/workflows/desktop-cleanup-draft-releases.yml@@ -20,7 +20,7 @@ jobs:id: app-tokenuses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0with:- app_id: ${{ secrets.GH_APP_ARRAY_RELEASER_APP_ID }}+ app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}- name: Delete draft releases older than 24 hoursdiff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.ymlindex 4ac8328242ba..c7e311cafa53 100644--- a/.github/workflows/desktop-release.yml+++ b/.github/workflows/desktop-release.yml@@ -25,7 +25,7 @@ jobs:id: app-tokenuses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0with:- app_id: ${{ secrets.GH_APP_ARRAY_RELEASER_APP_ID }}+ app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}- name: Extract version from tag@@ -70,22 +70,23 @@ jobs:NODE_ENV: productionnpm_config_arch: ${{ matrix.arch }}npm_config_platform: darwin- VITE_POSTHOG_API_KEY: ${{ secrets.VITE_POSTHOG_API_KEY }}- VITE_POSTHOG_API_HOST: ${{ secrets.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_API_KEY: ${{ vars.VITE_POSTHOG_API_KEY }}+ VITE_POSTHOG_API_HOST: ${{ vars.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_UI_HOST: ${{ vars.VITE_POSTHOG_UI_HOST }}POSTHOG_SOURCEMAP_API_KEY: ${{ secrets.DESKTOP_POSTHOG_SOURCEMAP_API_KEY }}- POSTHOG_ENV_ID: ${{ secrets.DESKTOP_POSTHOG_ENV_ID }}+ POSTHOG_ENV_ID: ${{ vars.DESKTOP_POSTHOG_ENV_ID }}POSTHOG_HOST: ${{ secrets.DESKTOP_POSTHOG_HOST }}CSC_LINK: ${{ secrets.APPLE_CODESIGN_CERT_BASE64 }}CSC_KEY_PASSWORD: ${{ secrets.APPLE_CODESIGN_CERT_PASSWORD }}- APPLE_ID: ${{ secrets.APPLE_ID }}+ APPLE_ID: ${{ vars.APPLE_ID }}APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}- APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}+ APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }}steps:- name: Get app tokenid: app-tokenuses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0with:- app_id: ${{ secrets.GH_APP_ARRAY_RELEASER_APP_ID }}+ app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}- name: Checkout@@ -145,13 +146,13 @@ jobs:- name: Configure AWS credentialsuses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1with:- role-to-assume: ${{ secrets.AWS_TWIG_APP_ASSETS_ROLE_ARN }}- aws-region: ${{ secrets.AWS_TWIG_APP_ASSETS_REGION }}+ role-to-assume: ${{ vars.AWS_TWIG_APP_ASSETS_ROLE_ARN }}+ aws-region: ${{ vars.AWS_TWIG_APP_ASSETS_REGION }}mask-aws-account-id: trueunset-current-credentials: true- name: Download BerkeleyMono fonts from S3- run: aws s3 cp s3://${{ secrets.AWS_TWIG_APP_ASSETS_BUCKET }}/fonts/BerkeleyMono/ apps/code/assets/fonts/BerkeleyMono/ --recursive+ run: aws s3 cp s3://${{ vars.AWS_TWIG_APP_ASSETS_BUCKET }}/fonts/BerkeleyMono/ apps/code/assets/fonts/BerkeleyMono/ --recursive- name: Build electron-trpc packagerun: pnpm --filter @posthog/electron-trpc run build@@ -270,7 +271,7 @@ jobs:- name: Configure AWS credentials for the update feeduses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1with:- role-to-assume: ${{ secrets.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}+ role-to-assume: ${{ vars.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}aws-region: us-east-1mask-aws-account-id: trueunset-current-credentials: true@@ -321,17 +322,18 @@ jobs:env:NODE_OPTIONS: '--max-old-space-size=8192'NODE_ENV: production- VITE_POSTHOG_API_KEY: ${{ secrets.VITE_POSTHOG_API_KEY }}- VITE_POSTHOG_API_HOST: ${{ secrets.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_API_KEY: ${{ vars.VITE_POSTHOG_API_KEY }}+ VITE_POSTHOG_API_HOST: ${{ vars.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_UI_HOST: ${{ vars.VITE_POSTHOG_UI_HOST }}POSTHOG_SOURCEMAP_API_KEY: ${{ secrets.DESKTOP_POSTHOG_SOURCEMAP_API_KEY }}- POSTHOG_ENV_ID: ${{ secrets.DESKTOP_POSTHOG_ENV_ID }}+ POSTHOG_ENV_ID: ${{ vars.DESKTOP_POSTHOG_ENV_ID }}POSTHOG_HOST: ${{ secrets.DESKTOP_POSTHOG_HOST }}steps:- name: Get app tokenid: app-tokenuses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0with:- app_id: ${{ secrets.GH_APP_ARRAY_RELEASER_APP_ID }}+ app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}- name: Checkout@@ -443,7 +445,7 @@ jobs:- name: Configure AWS credentials for the update feeduses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1with:- role-to-assume: ${{ secrets.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}+ role-to-assume: ${{ vars.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}aws-region: us-east-1mask-aws-account-id: trueunset-current-credentials: true@@ -504,17 +506,18 @@ jobs:env:NODE_OPTIONS: '--max-old-space-size=8192'NODE_ENV: production- VITE_POSTHOG_API_KEY: ${{ secrets.VITE_POSTHOG_API_KEY }}- VITE_POSTHOG_API_HOST: ${{ secrets.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_API_KEY: ${{ vars.VITE_POSTHOG_API_KEY }}+ VITE_POSTHOG_API_HOST: ${{ vars.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_UI_HOST: ${{ vars.VITE_POSTHOG_UI_HOST }}POSTHOG_SOURCEMAP_API_KEY: ${{ secrets.DESKTOP_POSTHOG_SOURCEMAP_API_KEY }}- POSTHOG_ENV_ID: ${{ secrets.DESKTOP_POSTHOG_ENV_ID }}+ POSTHOG_ENV_ID: ${{ vars.DESKTOP_POSTHOG_ENV_ID }}POSTHOG_HOST: ${{ secrets.DESKTOP_POSTHOG_HOST }}steps:- name: Get app tokenid: app-tokenuses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0with:- app_id: ${{ secrets.GH_APP_ARRAY_RELEASER_APP_ID }}+ app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}- name: Checkout@@ -625,7 +628,7 @@ jobs:- name: Configure AWS credentials for the update feeduses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1with:- role-to-assume: ${{ secrets.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}+ role-to-assume: ${{ vars.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}aws-region: us-east-1mask-aws-account-id: trueunset-current-credentials: true@@ -676,7 +679,7 @@ jobs:id: app-tokenuses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0with:- app_id: ${{ secrets.GH_APP_ARRAY_RELEASER_APP_ID }}+ app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}- name: Extract version from tag@@ -776,7 +779,7 @@ jobs:- name: Configure AWS credentials for the update feeduses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1with:- role-to-assume: ${{ secrets.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}+ role-to-assume: ${{ vars.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}aws-region: us-east-1mask-aws-account-id: trueunset-current-credentials: truediff --git a/.github/workflows/desktop-tag.yml b/.github/workflows/desktop-tag.ymlindex 69e0eadf1378..74eb78531eb4 100644--- a/.github/workflows/desktop-tag.yml+++ b/.github/workflows/desktop-tag.yml@@ -39,7 +39,7 @@ jobs:id: app-tokenuses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0with:- app_id: ${{ secrets.GH_APP_ARRAY_RELEASER_APP_ID }}+ app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}- name: Checkoutdiff --git a/.github/workflows/desktop-update-e2e.yml b/.github/workflows/desktop-update-e2e.ymlindex f01551d2024f..653b422ec176 100644--- a/.github/workflows/desktop-update-e2e.yml+++ b/.github/workflows/desktop-update-e2e.yml@@ -45,14 +45,15 @@ jobs:NODE_ENV: productionnpm_config_arch: arm64npm_config_platform: darwin- VITE_POSTHOG_API_KEY: ${{ secrets.VITE_POSTHOG_API_KEY }}- VITE_POSTHOG_API_HOST: ${{ secrets.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_API_KEY: ${{ vars.VITE_POSTHOG_API_KEY }}+ VITE_POSTHOG_API_HOST: ${{ vars.VITE_POSTHOG_API_HOST }}+ VITE_POSTHOG_UI_HOST: ${{ vars.VITE_POSTHOG_UI_HOST }}# Sign both builds with the same identity so Squirrel.Mac accepts the swap.# Notarization is skipped: it is a Gatekeeper concern, not what the in-place# update verifies, and locally built bundles carry no quarantine attribute.CSC_LINK: ${{ secrets.APPLE_CODESIGN_CERT_BASE64 }}CSC_KEY_PASSWORD: ${{ secrets.APPLE_CODESIGN_CERT_PASSWORD }}- APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}+ APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }}SKIP_NOTARIZE: '1'steps:- name: Checkout@@ -96,13 +97,13 @@ jobs:- name: Configure AWS credentialsuses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1with:- role-to-assume: ${{ secrets.AWS_TWIG_APP_ASSETS_ROLE_ARN }}- aws-region: ${{ secrets.AWS_TWIG_APP_ASSETS_REGION }}+ role-to-assume: ${{ vars.AWS_TWIG_APP_ASSETS_ROLE_ARN }}+ aws-region: ${{ vars.AWS_TWIG_APP_ASSETS_REGION }}mask-aws-account-id: trueunset-current-credentials: true- name: Download BerkeleyMono fonts from S3- run: aws s3 cp s3://${{ secrets.AWS_TWIG_APP_ASSETS_BUCKET }}/fonts/BerkeleyMono/ apps/code/assets/fonts/BerkeleyMono/ --recursive+ run: aws s3 cp s3://${{ vars.AWS_TWIG_APP_ASSETS_BUCKET }}/fonts/BerkeleyMono/ apps/code/assets/fonts/BerkeleyMono/ --recursive- name: Build workspace packagesrun: |diff --git a/.github/workflows/monitor-github-rate-limit.yml b/.github/workflows/monitor-github-rate-limit.ymlindex 4facebf1aa6e..b6f72da159fe 100644--- a/.github/workflows/monitor-github-rate-limit.yml+++ b/.github/workflows/monitor-github-rate-limit.yml@@ -39,8 +39,6 @@ on:required: falseGH_APP_POSTHOG_PATHS_FILTER_PRIVATE_KEY:required: false- GH_APP_TELEMETRY_APP_ID:- required: falseGH_APP_TELEMETRY_PRIVATE_KEY:required: falseGH_APP_POSTHOG_SETUP_ACTIONS_PRIVATE_KEY:@@ -152,7 +150,7 @@ jobs:continue-on-error: trueuses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1with:- client-id: ${{ secrets.GH_APP_TELEMETRY_APP_ID }}+ client-id: ${{ vars.GH_APP_TELEMETRY_APP_ID }}private-key: ${{ secrets.GH_APP_TELEMETRY_PRIVATE_KEY }}- name: Poll posthog-telemetry bucket and emit to PostHog@@ -223,7 +221,7 @@ jobs:[{"source":"posthog-devex-general","configured":${{ vars.GH_APP_POSTHOG_DEVEX_GENERAL_APP_ID != '' && secrets.GH_APP_POSTHOG_DEVEX_GENERAL_PRIVATE_KEY != '' }},"minted":${{ steps.devex-token.outputs.token != '' }}},{"source":"posthog-tests","configured":${{ secrets.GH_APP_POSTHOG_TESTS_APP_ID != '' && secrets.GH_APP_POSTHOG_TESTS_PRIVATE_KEY != '' }},"minted":${{ steps.tests-token.outputs.token != '' }}},{"source":"posthog-paths-filter","configured":${{ vars.GH_APP_POSTHOG_PATHS_FILTER_APP_ID != '' && secrets.GH_APP_POSTHOG_PATHS_FILTER_PRIVATE_KEY != '' }},"minted":${{ steps.paths-filter-token.outputs.token != '' }}},- {"source":"posthog-telemetry","configured":${{ secrets.GH_APP_TELEMETRY_APP_ID != '' && secrets.GH_APP_TELEMETRY_PRIVATE_KEY != '' }},"minted":${{ steps.telemetry-token.outputs.token != '' }}},+ {"source":"posthog-telemetry","configured":${{ vars.GH_APP_TELEMETRY_APP_ID != '' && secrets.GH_APP_TELEMETRY_PRIVATE_KEY != '' }},"minted":${{ steps.telemetry-token.outputs.token != '' }}},{"source":"posthog-setup-actions","configured":${{ vars.GH_APP_POSTHOG_SETUP_ACTIONS_APP_ID != '' && secrets.GH_APP_POSTHOG_SETUP_ACTIONS_PRIVATE_KEY != '' }},"minted":${{ steps.setup-actions-token.outputs.token != '' }}},{"source":"posthog-product-tests","configured":${{ vars.GH_APP_POSTHOG_PRODUCT_TESTS_APP_ID != '' && secrets.GH_APP_POSTHOG_PRODUCT_TESTS_PRIVATE_KEY != '' }},"minted":${{ steps.product-tests-token.outputs.token != '' }}}]with:diff --git a/.github/workflows/pr-housekeeping.yml b/.github/workflows/pr-housekeeping.ymlindex 4ebc3e80dd9d..7be0aa0dd30c 100644--- a/.github/workflows/pr-housekeeping.yml+++ b/.github/workflows/pr-housekeeping.yml@@ -63,7 +63,6 @@ jobs:GH_APP_POSTHOG_TESTS_APP_ID: ${{ secrets.GH_APP_POSTHOG_TESTS_APP_ID }}GH_APP_POSTHOG_TESTS_PRIVATE_KEY: ${{ secrets.GH_APP_POSTHOG_TESTS_PRIVATE_KEY }}GH_APP_POSTHOG_PATHS_FILTER_PRIVATE_KEY: ${{ secrets.GH_APP_POSTHOG_PATHS_FILTER_PRIVATE_KEY }}- GH_APP_TELEMETRY_APP_ID: ${{ secrets.GH_APP_TELEMETRY_APP_ID }}GH_APP_TELEMETRY_PRIVATE_KEY: ${{ secrets.GH_APP_TELEMETRY_PRIVATE_KEY }}GH_APP_POSTHOG_SETUP_ACTIONS_PRIVATE_KEY: ${{ secrets.GH_APP_POSTHOG_SETUP_ACTIONS_PRIVATE_KEY }}GH_APP_POSTHOG_PRODUCT_TESTS_PRIVATE_KEY: ${{ secrets.GH_APP_POSTHOG_PRODUCT_TESTS_PRIVATE_KEY }}diff --git a/products/desktop/.env.example b/products/desktop/.env.exampleindex b2fa2b571e08..e8a2d355372c 100644--- a/products/desktop/.env.example+++ b/products/desktop/.env.example@@ -5,7 +5,6 @@ APPLE_TEAM_ID="xxx"APPLE_CODESIGN_CERT_BASE64="xxx"APPLE_CODESIGN_CERT_PASSWORD="xxx"-APPLE_CODESIGN_KEYCHAIN_PASSWORD="xxx"VITE_POSTHOG_API_KEY=xxxVITE_POSTHOG_API_HOST=xxxdiff --git a/products/desktop/apps/code/README.md b/products/desktop/apps/code/README.mdindex 4eaf0d3609d5..c9cd091975d7 100644--- a/products/desktop/apps/code/README.md+++ b/products/desktop/apps/code/README.md@@ -123,13 +123,13 @@ export APPLE_TEAM_ID="TEAMID"For CI releases, configure matching GitHub Actions secrets:-- `APPLE_CODESIGN_IDENTITY`- `APPLE_ID`- `APPLE_APP_SPECIFIC_PASSWORD`- `APPLE_TEAM_ID`- `APPLE_CODESIGN_CERT_BASE64` – Base64-encoded `.p12` export of the Developer ID Application certificate (include the private key)- `APPLE_CODESIGN_CERT_PASSWORD` – Password used when exporting the `.p12`-- `APPLE_CODESIGN_KEYCHAIN_PASSWORD` – Password for the temporary keychain the workflow creates on the runner++CI derives the signing identity from the certificate, so it needs no `APPLE_CODESIGN_IDENTITY` secret. Set that variable only for local signing.The `Publish Release` workflow imports the certificate into a temporary keychain, signs each artifact with hardened runtime enabled (using Electron's default entitlements), and notarizes it before upload whenever these secrets are available.diff --git a/products/desktop/apps/code/codesign.env.example b/products/desktop/apps/code/codesign.env.exampleindex 7e89ced532c2..aad546bc7db7 100644--- a/products/desktop/apps/code/codesign.env.example+++ b/products/desktop/apps/code/codesign.env.example@@ -7,5 +7,4 @@ APPLE_APP_SPECIFIC_PASSWORD="xxxx-xxxx-xxxx-xxxx"APPLE_TEAM_ID="TEAMID"APPLE_CODESIGN_CERT_BASE64="xxx"-APPLE_CODESIGN_CERT_PASSWORD="xxx"-APPLE_CODESIGN_KEYCHAIN_PASSWORD="xxx"\ No newline at end of file+APPLE_CODESIGN_CERT_PASSWORD="xxx"\ No newline at end of file