: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): lock 64 workflows with the actions lockfile (#125784)
Raúl Negrón-Oterof99e3fde81a7
diff --git a/.agents/skills/authoring-ci-workflows/SKILL.md b/.agents/skills/authoring-ci-workflows/SKILL.mdindex 937469525911..7cbfd8cd7f5a 100644--- a/.agents/skills/authoring-ci-workflows/SKILL.md+++ b/.agents/skills/authoring-ci-workflows/SKILL.md@@ -30,7 +30,7 @@ The linters own the mechanical rules (below); this skill is the **judgment callsRun `bin/hogli lint:workflows` and `actionlint` before pushing — they gate CI, and they (not this list) are the source of truth for what's enforced.Today that's: `timeout-minutes` on every job, the canonical PR concurrency block, a repo-wide budget for unscoped PR event dispatches, `dorny/paths-filter` negation safety, justification for full-depth checkouts, cache-write gating, semgrep service coverage, MCP path-filter coverage of the trees the MCP build compiles, Storybook path-filter coverage of every `staticDirs` source, required-check gate hygiene, secrets a reusable workflow reads being declared and passed by its callers, runner labels that name an OS version rather than a floating `-latest` alias, `#`-free values for the action inputs an inner shell re-parses, and generic GHA correctness (bad `secrets.*` / `needs:` refs, deprecated `::set-output`, unknown runner labels).-Renovate bumps third-party action digests, except in workflows listed in `actions.lock`.+Renovate does not bump actions. Action bumps are manual.## Check what a condition does before you push itdiff --git a/.agents/skills/authoring-ci-workflows/references/workflow-lockfiles.md b/.agents/skills/authoring-ci-workflows/references/workflow-lockfiles.mdindex 82b4141f2479..56d77878f6b5 100644--- a/.agents/skills/authoring-ci-workflows/references/workflow-lockfiles.md+++ b/.agents/skills/authoring-ci-workflows/references/workflow-lockfiles.md@@ -3,7 +3,8 @@Read this before changing a workflow listed in `.github/workflows/actions.lock`, its action dependencies, or the lockfile itself.The lockfile's `workflows` section lists the onboarded workflows.-Onboard another workflow in its own change, and add it to the Renovate exclusion in `.github/renovate.json5` in that change.+Onboard another workflow in its own change.+Action bumps are manual, and Renovate does not bump actions.## Update and verify@@ -34,6 +35,11 @@ Do not use `--relock` or `--accept-moved` to silence a provenance error before y## Coverage boundaries- The lockfile does not cover remote reusable-workflow calls at `jobs.<job_id>.uses`. Keep their inline SHA pins.-- `gh-actions-lock` does not follow local `./` actions. A migration to `$/` changes which commit supplies the action, so keep it out of routine lockfile maintenance.+- The runner checks the remote actions inside a local `./` composite against the calling workflow's own lockfile entry, and fails the job when a pin is missing.+ `gh-actions-lock` does not follow `./` actions, so it cannot add those pins.+ A workflow that uses a `./` composite with a remote action stays off the lockfile, and `--verify` fails when an onboarded workflow's composite gains one.+- Do not migrate local actions to `$/`.+ The runner fetches a `$/` action from the repository archive, and `.gitattributes` excludes `.github/` from that archive, so the action is not found.+ Without that exclusion, every job that uses a `$/` action downloads the whole repository archive, about 213 MB.See GitHub's [lockfile maintenance guide](https://docs.github.com/en/actions/how-tos/secure-your-work/lock-workflow-dependencies) and the [gh-actions-lock limitations](https://github.com/github/gh-actions-lock#limitations).diff --git a/.github/renovate.json5 b/.github/renovate.json5index 35eba720665d..460327fd257a 100644--- a/.github/renovate.json5+++ b/.github/renovate.json5@@ -176,11 +176,11 @@matchManagers: ['github-actions'],groupName: 'github-actions',},- // Renovate cannot regenerate `.github/workflows/actions.lock`, so a bump in a locked workflow fails Lint workflows.- // List each workflow from that file's `workflows` section here+ // Renovate cannot regenerate `.github/workflows/actions.lock`, so an action bump in a locked workflow fails Lint workflows.+ // Action bumps are manual. Image digests in `container:` and `services:` still update{matchManagers: ['github-actions'],- matchFileNames: ['.github/workflows/ci-paths-filter.yml'],+ matchDepTypes: ['action'],enabled: false,},// The sandbox images and the Modal slim image rebuild only when this pin changes,diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lockindex e68ac1ee27bb..20dc3e678d2b 100644--- a/.github/workflows/actions.lock+++ b/.github/workflows/actions.lock@@ -3,17 +3,494 @@# Docs: https://gh.io/actions-lockfileversion: 'v0.0.3'workflows:+ '.github/workflows/auto-assign-labels.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/auto-assign-reviewers.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/build-hobby-installer.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/build-livestream-tui.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/build-phrocs.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'planetscale/[email protected]'+ '.github/workflows/canary-flags-enable.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'aws-actions/[email protected]'+ - 'aws-actions/[email protected]'+ - 'depot/[email protected]'+ - 'depot/[email protected]'+ - 'docker/[email protected]'+ - 'docker/[email protected]'+ '.github/workflows/cd-llm-analytics-image.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'aws-actions/[email protected]'+ - 'aws-actions/[email protected]'+ - 'depot/[email protected]'+ - 'depot/[email protected]'+ - 'docker/[email protected]'+ - 'peter-evans/[email protected]'+ '.github/workflows/ci-actionlint.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/ci-alerts-devex.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'depot/[email protected]'+ '.github/workflows/ci-backend-schema-mirror.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'depot/[email protected]'+ '.github/workflows/ci-clickhouse-hcl-schema.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'docker/[email protected]'+ '.github/workflows/ci-clickhouse-util-udfs.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/ci-depot-action-mirrors.yml':+ - 'actions/[email protected]'+ '.github/workflows/ci-dev-setup.yml':+ - 'actions/[email protected]'+ - 'flox/[email protected]'+ '.github/workflows/ci-duplication.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/ci-e2e-playwright-audit.yml': []+ '.github/workflows/ci-hobby-installer.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'golangci/[email protected]'+ '.github/workflows/ci-livestream-tui.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'golangci/[email protected]'+ '.github/workflows/ci-livestream.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'golangci/[email protected]'+ '.github/workflows/ci-mcp-agent-api-diff.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]''.github/workflows/ci-paths-filter.yml':- 'actions/[email protected]'- 'actions/[email protected]'+ '.github/workflows/ci-phrocs.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'golangci/[email protected]'+ '.github/workflows/ci-playwright-container.yml':+ - 'docker/[email protected]'+ '.github/workflows/ci-security.yaml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'docker/[email protected]'+ '.github/workflows/ci-storybook-update-test-timing.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'planetscale/[email protected]'+ '.github/workflows/depot-retry-on-comment.yml':+ - 'actions/[email protected]'+ - 'depot/[email protected]'+ '.github/workflows/desktop-agent-release-verify.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'pnpm/[email protected]'+ '.github/workflows/desktop-agent-release.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'pnpm/[email protected]'+ - 'slackapi/[email protected]'+ '.github/workflows/desktop-agent-tag.yml':+ - 'actions/[email protected]'+ - 'getsentry/[email protected]'+ '.github/workflows/desktop-backend-coupling-rerun.yml': []+ '.github/workflows/desktop-build-test.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'aws-actions/[email protected]'+ - 'pnpm/[email protected]'+ '.github/workflows/desktop-build.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'pnpm/[email protected]'+ '.github/workflows/desktop-ci.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/desktop-cleanup-draft-releases.yml':+ - 'getsentry/[email protected]'+ '.github/workflows/desktop-quality.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'biomejs/[email protected]'+ '.github/workflows/desktop-react-doctor.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/desktop-release.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'aws-actions/[email protected]'+ - 'getsentry/[email protected]'+ - 'pnpm/[email protected]'+ '.github/workflows/desktop-sync-benjamin.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'planetscale/[email protected]'+ '.github/workflows/desktop-tag.yml':+ - 'actions/[email protected]'+ - 'getsentry/[email protected]'+ '.github/workflows/desktop-test.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'pnpm/[email protected]'+ '.github/workflows/desktop-typecheck.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'pnpm/[email protected]'+ '.github/workflows/desktop-update-e2e.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'aws-actions/[email protected]'+ - 'pnpm/[email protected]'+ - 'slackapi/[email protected]'+ '.github/workflows/desktop-warm-caches.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'pnpm/[email protected]'+ '.github/workflows/dev-sandbox-selftest.yml':+ - 'actions/[email protected]'+ '.github/workflows/docs-preview-trigger.yml':+ - 'actions/[email protected]'+ '.github/workflows/eng-analytics-weekly-digest.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/foss-sync.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'planetscale/[email protected]'+ '.github/workflows/mobile-build.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'expo/[email protected]'+ - 'pnpm/[email protected]'+ '.github/workflows/pnpm-store-cache.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'pnpm/[email protected]'+ '.github/workflows/pr-posthog-js-reviewer.yml':+ - 'actions/[email protected]'+ '.github/workflows/pr-priority-review.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'slackapi/[email protected]'+ '.github/workflows/private-sync.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/publish-quill-npm.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'pnpm/[email protected]'+ - 'slackapi/[email protected]'+ '.github/workflows/publish-replay-anonymizer-crate.yml':+ - 'actions/[email protected]'+ - 'dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9'+ - 'rust-lang/[email protected]'+ - 'step-security/[email protected]'+ - 'swatinem/[email protected]'+ '.github/workflows/renovate-dashboard-digest.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/shellcheck.yml':+ - 'actions/[email protected]'+ '.github/workflows/stale.yaml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'fpicalausa/[email protected]'+ '.github/workflows/terragrunt-posthog.yaml':+ - 'actions/[email protected]'+ - 'aws-actions/[email protected]'+ - 'datadrivers/[email protected]'+ - 'maheshrayas/[email protected]'+ '.github/workflows/update-ai-costs-stale-alert.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'slackapi/[email protected]'+ '.github/workflows/update-bot-ips.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'planetscale/[email protected]'+ '.github/workflows/update-sandbox-agent-version.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ - 'docker/[email protected]'+ - 'planetscale/[email protected]'+ - 'slackapi/[email protected]'+ '.github/workflows/weekly-flaky-report.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/weekly-mcp-tool-health-report.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'+ '.github/workflows/weekly-slow-tests-report.yml':+ - 'actions/[email protected]'+ - 'actions/[email protected]'dependencies:+ 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9':+ ref: 'v6.1.0'+ commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9'+ owner_id: 44036562+ repo_id: 215566462+ 'actions/[email protected]':+ ref: 'v5.0.3'+ commit: 'sha1-cdf6c1fa76f9f475f3d7449005a359c84ca0f306'+ owner_id: 44036562+ repo_id: 215566462+ 'actions/[email protected]':+ ref: 'v6.1.0'+ commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9'+ owner_id: 44036562+ repo_id: 215566462'actions/[email protected]':ref: 'v6.0.2'commit: 'sha1-de0fac2e4500dabe0009e67214ff5f5447ce83dd'owner_id: 44036562repo_id: 197814629+ 'actions/[email protected]':+ ref: 'v3.1.1'+ commit: 'sha1-1b10c78c7865c340bc4f6099eb2f838309f1e8c3'+ owner_id: 44036562+ repo_id: 642580244+ 'actions/[email protected]':+ ref: 'v7.0.0'+ commit: 'sha1-37930b1c2abaa49bbe596cd826c3c89aef350131'+ owner_id: 44036562+ repo_id: 192626254+ 'actions/[email protected]':+ ref: 'v8.0.0'+ commit: 'sha1-ed597411d8f924073f98dfc5c65a23a2325f34cd'+ owner_id: 44036562+ repo_id: 205262760+ 'actions/[email protected]':+ ref: 'v6.2.0'+ commit: 'sha1-7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5'+ owner_id: 44036562+ repo_id: 192624594+ 'actions/[email protected]':+ ref: 'v6.4.0'+ commit: 'sha1-4a3601121dd01d1626a1e23e37211e3254c1c06c'+ owner_id: 44036562+ repo_id: 192624594'actions/[email protected]':ref: 'v6.2.0'commit: 'sha1-6044e13b5dc448c55e2357c09f80417699197238'owner_id: 44036562repo_id: 189476904+ 'actions/[email protected]':+ ref: 'v6.4.0'+ commit: 'sha1-48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e'+ owner_id: 44036562+ repo_id: 189476904+ 'actions/[email protected]':+ ref: 'v6.2.0'+ commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405'+ owner_id: 44036562+ repo_id: 192625525+ 'actions/[email protected]':+ ref: 'v10.2.0'+ commit: 'sha1-b5d41d4e1d5dceea10e7104786b73624c18a190f'+ owner_id: 44036562+ repo_id: 200437066+ 'actions/[email protected]':+ ref: 'v6.0.0'+ commit: 'sha1-b7c566a772e6b6bfb58ed0dc250532a479d7789f'+ owner_id: 44036562+ repo_id: 192625955+ 'actions/[email protected]':+ ref: 'v7.0.1'+ commit: 'sha1-043fb46d1a93c77aae656e7c1c64a875d1fc6a0a'+ owner_id: 44036562+ repo_id: 192625955+ 'aws-actions/[email protected]':+ ref: 'v2.1.2'+ commit: 'sha1-f2e9fc6c2b355c1890b65e6f6f0e2ac3e6e22f78'+ owner_id: 57468012+ repo_id: 220389860+ 'aws-actions/configure-aws-credentials@517a711dbcd0e402f90c77e7e2f81e849156e31d':+ ref: 'v6.2.2'+ commit: 'sha1-517a711dbcd0e402f90c77e7e2f81e849156e31d'+ owner_id: 57468012+ repo_id: 220391287+ 'aws-actions/[email protected]':+ ref: 'v6.1.0'+ commit: 'sha1-ec61189d14ec14c8efccab744f656cffd0e33f37'+ owner_id: 57468012+ repo_id: 220391287+ 'aws-actions/[email protected]':+ ref: 'v6.2.1'+ commit: 'sha1-254c19bd240aabef8777f48595e9d2d7b972184b'+ owner_id: 57468012+ repo_id: 220391287+ 'biomejs/[email protected]':+ ref: 'v2.7.1'+ commit: 'sha1-4c91541eaada48f67d7dbd7833600ce162b68f51'+ owner_id: 140182603+ repo_id: 693772387+ 'datadrivers/[email protected]':+ ref: 'v4.4.2'+ commit: 'sha1-aa701e2420811b84e587c5c11472ffc41907f81e'+ owner_id: 16915813+ repo_id: 455551114+ uses:+ - 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'+ - 'aws-actions/configure-aws-credentials@517a711dbcd0e402f90c77e7e2f81e849156e31d'+ - 'google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093'+ 'depot/[email protected]':+ ref: 'v1.17.0'+ commit: 'sha1-5f3b3c2e5a00f0093de47f657aeaefcedff27d18'+ owner_id: 68166601+ repo_id: 496245433+ 'depot/[email protected]':+ ref: 'v1.7.1'+ commit: 'sha1-15c09a5f77a0840ad4bce955686522a257853461'+ owner_id: 68166601+ repo_id: 471762060+ 'docker/[email protected]':+ ref: 'v4.1.0'+ commit: 'sha1-4907a6ddec9925e35a0a9e82d7399ccc52663121'+ owner_id: 5429470+ repo_id: 287743349+ 'docker/[email protected]':+ ref: 'v6.0.0'+ commit: 'sha1-030e881283bb7a6894de51c315a6bfe6a94e05cf'+ owner_id: 5429470+ repo_id: 306769011+ 'docker/[email protected]':+ ref: 'v4.0.0'+ commit: 'sha1-4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd'+ owner_id: 5429470+ repo_id: 288485773+ 'dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9':+ ref: 'master'+ commit: 'sha1-3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9'+ owner_id: 1940490+ repo_id: 260749683+ 'expo/[email protected]':+ ref: '9.0.0'+ commit: 'sha1-eab7a230208c952974db8c3245cfd78402c7b385'+ owner_id: 12504344+ repo_id: 161909611+ 'flox/[email protected]':+ ref: 'v2.4.0'+ commit: 'sha1-c94e7e1ab56ae14fe98bae4fd84384fd135f0c2a'+ owner_id: 72631827+ repo_id: 533711082+ 'fpicalausa/[email protected]':+ ref: 'v2.6.1'+ commit: 'sha1-9b829bc2975ade0c61e64e9613def53ec0732440'+ owner_id: 2117814+ repo_id: 462150593+ 'getsentry/[email protected]':+ ref: 'v4.0.0'+ commit: 'sha1-5c1e90706fe007857338ac1bfbd7a4177db2f789'+ owner_id: 1396951+ repo_id: 286789610+ 'golangci/[email protected]':+ ref: 'v9.2.0'+ commit: 'sha1-1e7e51e771db61008b38414a730f564565cf7c20'+ owner_id: 35628013+ repo_id: 232539879+ 'google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093':+ ref: 'v3.0.0'+ commit: 'sha1-7c6bc770dae815cd3e89ee6cdf493a5fab2cc093'+ owner_id: 71461757+ repo_id: 407242578+ 'maheshrayas/[email protected]':+ ref: 'v3.0'+ commit: 'sha1-06d7254b4aeba4491a66a7e0f755b107f7373ccd'+ owner_id: 2450292+ repo_id: 401700365+ 'peter-evans/[email protected]':+ ref: 'v4.0.1'+ commit: 'sha1-28959ce8df70de7be546dd1250a005dd32156697'+ owner_id: 18365890+ repo_id: 220359305+ 'planetscale/[email protected]':+ ref: 'v0.2.20'+ commit: 'sha1-25309d8005ac7c3bcd61d3fe19b69e0fe47dbdde'+ owner_id: 35612527+ repo_id: 624461067+ 'pnpm/[email protected]':+ ref: 'v6.0.8'+ commit: 'sha1-0e279bb959325dab635dd2c09392533439d90093'+ owner_id: 21320719+ repo_id: 262289747+ 'pnpm/[email protected]':+ ref: 'v6.0.9'+ commit: 'sha1-0ebf47130e4866e96fce0953f49152a61190b271'+ owner_id: 21320719+ repo_id: 262289747+ 'rust-lang/[email protected]':+ ref: 'v1.0.4'+ commit: 'sha1-bbd81622f20ce9e2dd9622e3218b975523e45bbe'+ owner_id: 5430905+ repo_id: 1008931044+ 'slackapi/[email protected]':+ ref: 'v3.0.1'+ commit: 'sha1-af78098f536edbc4de71162a307590698245be95'+ owner_id: 6962987+ repo_id: 306439799+ 'step-security/[email protected]':+ ref: 'v47.0.5'+ commit: 'sha1-2e07db73e5ccdb319b9a6c7766bd46d39d304bad'+ owner_id: 88700172+ repo_id: 948854636+ 'swatinem/[email protected]':+ ref: 'v2.9.1'+ commit: 'sha1-c19371144df3bb44fab255c43d04cbc2ab54d1c4'+ owner_id: 580492+ repo_id: 298565987diff --git a/.github/workflows/auto-assign-labels.yml b/.github/workflows/auto-assign-labels.ymlindex ca9e98c7f3e5..1f04f704e171 100644--- a/.github/workflows/auto-assign-labels.yml+++ b/.github/workflows/auto-assign-labels.yml@@ -41,7 +41,8 @@ jobs:steps:- name: Checkout master branch- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:# MUST be `master` so we never execute untrusted PR code.ref: master@@ -56,14 +57,16 @@ jobs:- name: Mint setup-action GitHub tokenid: setup-gh-tokencontinue-on-error: true- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ vars.GH_APP_POSTHOG_SETUP_ACTIONS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_SETUP_ACTIONS_PRIVATE_KEY }}skip-token-revoke: true- name: Setup Node.js- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: .nvmrc# Resolve the node-versions manifest on the app token, not the shared per-repo GITHUB_TOKEN bucketdiff --git a/.github/workflows/auto-assign-reviewers.yml b/.github/workflows/auto-assign-reviewers.ymlindex 300bdfd896f4..201d03e07cfe 100644--- a/.github/workflows/auto-assign-reviewers.yml+++ b/.github/workflows/auto-assign-reviewers.yml@@ -28,13 +28,15 @@ jobs:# GitHub app token is required because GITHUB_TOKEN can't assign team members as reviewers (requires org-level permission)- name: Get app tokenid: app-token- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ secrets.GH_APP_POSTHOG_ASSIGN_REVIEWERS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_ASSIGN_REVIEWERS_PRIVATE_KEY }}- name: Checkout master branch- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:token: ${{ steps.app-token.outputs.token }}# this value MUST be set to `master` to avoid executing untrusted code.@@ -42,7 +44,8 @@ jobs:ref: master- name: Setup Node.js- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: .nvmrc# Resolve the node-versions manifest on the app token, not the shared per-repo GITHUB_TOKEN bucket@@ -53,7 +56,8 @@ jobs:# only needs pyyaml, so set up python and install just that — no full# project sync in this node-first workflow.- name: Setup Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:python-version: '3.14'# Same reasoning as the node manifest lookup abovediff --git a/.github/workflows/build-hobby-installer.yml b/.github/workflows/build-hobby-installer.ymlindex 751d7d98ba1c..834719b941a9 100644--- a/.github/workflows/build-hobby-installer.yml+++ b/.github/workflows/build-hobby-installer.yml@@ -28,10 +28,12 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]- name: Set up Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:go-version: '1.26.10'diff --git a/.github/workflows/build-livestream-tui.yml b/.github/workflows/build-livestream-tui.ymlindex 50e6931f5035..ed1822964d98 100644--- a/.github/workflows/build-livestream-tui.yml+++ b/.github/workflows/build-livestream-tui.yml@@ -27,10 +27,12 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]- name: Set up Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:go-version: '1.26.10'cache-dependency-path: livestream/go.sumdiff --git a/.github/workflows/build-phrocs.yml b/.github/workflows/build-phrocs.ymlindex 00ead264c048..479d6ee244d5 100644--- a/.github/workflows/build-phrocs.yml+++ b/.github/workflows/build-phrocs.yml@@ -42,10 +42,12 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]- name: Set up Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:go-version: '1.26.10'cache: true@@ -97,7 +99,8 @@ jobs:- name: Upload checksums for the Homebrew jobif: github.event_name == 'workflow_dispatch'- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: phrocs-checksumspath: tools/phrocs/dist/checksums.txt@@ -114,20 +117,23 @@ jobs:steps:- name: Checkout formula template- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:sparse-checkout: tools/phrocs/Formula/phrocs.rbsparse-checkout-cone-mode: false- name: Download checksums- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: phrocs-checksumspath: tools/phrocs/dist- name: Generate Homebrew tap tokenid: app-token- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ secrets.GH_APP_HOMEBREW_TAP_RELEASER_APP_ID }}private-key: ${{ secrets.GH_APP_HOMEBREW_TAP_RELEASER_PRIVATE_KEY }}@@ -152,7 +158,8 @@ jobs:tools/phrocs/Formula/phrocs.rb > /tmp/phrocs.rb- name: Checkout Homebrew tap- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:repository: PostHog/homebrew-taptoken: ${{ steps.app-token.outputs.token }}@@ -161,7 +168,8 @@ jobs:run: cp /tmp/phrocs.rb Formula/phrocs.rb- name: Commit Homebrew formula update- uses: planetscale/ghcommit-action@25309d8005ac7c3bcd61d3fe19b69e0fe47dbdde # v0.2.20+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: planetscale/[email protected]with:commit_message: 'chore: update phrocs formula to ${{ inputs.version }}'repo: PostHog/homebrew-tapdiff --git a/.github/workflows/canary-flags-enable.yml b/.github/workflows/canary-flags-enable.ymlindex 6ae33192bee3..da183916b646 100644--- a/.github/workflows/canary-flags-enable.yml+++ b/.github/workflows/canary-flags-enable.yml@@ -66,7 +66,8 @@ jobs:target_environment: ${{ steps.command.outputs.target_environment }}steps:- name: React to comment- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:script: |await github.rest.reactions.createForIssueComment({@@ -80,14 +81,16 @@ jobs:# org-private team memberships (returns 404, looks like "not a member").- name: Get app token for team membership checkid: app-token- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ secrets.GH_APP_POSTHOG_ASSIGN_REVIEWERS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_ASSIGN_REVIEWERS_PRIVATE_KEY }}- name: Parse command and validateid: command- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]env:ACTOR: ${{ github.actor }}with:@@ -242,7 +245,8 @@ jobs:- name: Add canary-flags labelif: steps.command.outputs.should_build == 'true'- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]env:PR_NUMBER: ${{ steps.command.outputs.pr_number }}with:@@ -258,7 +262,8 @@ jobs:- name: Report failure on PRif: failure()- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:script: |const prNumber = context.payload.issue.number;@@ -310,7 +315,8 @@ jobs:- name: Get charts deployer token (for state file read)id: charts_tokenif: github.event_name == 'pull_request' && github.event.action == 'synchronize'- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ secrets.GH_APP_CHARTS_DEPLOYER_APP_ID }}private-key: ${{ secrets.GH_APP_CHARTS_DEPLOYER_PRIVATE_KEY }}@@ -346,7 +352,8 @@ jobs:- name: Resolve PR info and validate approvalid: pr_info- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]env:COMMENT_PR_NUMBER: ${{ needs.handle_comment.outputs.pr_number }}COMMENT_PR_HEAD_SHA: ${{ needs.handle_comment.outputs.pr_head_sha }}@@ -488,14 +495,16 @@ jobs:- name: Get app token for team membership checkid: app-tokenif: (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') && steps.pr_info.outputs.should_proceed == 'true'- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ secrets.GH_APP_POSTHOG_ASSIGN_REVIEWERS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_ASSIGN_REVIEWERS_PRIVATE_KEY }}- name: Verify canary label was authorizedif: github.event_name == 'pull_request' && steps.pr_info.outputs.should_proceed == 'true'- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]env:PR_NUMBER: ${{ steps.pr_info.outputs.pr_number }}with:@@ -557,7 +566,8 @@ jobs:- name: Verify PR author is org memberif: github.event_name != 'issue_comment' && steps.pr_info.outputs.should_proceed == 'true'- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]env:PR_AUTHOR: ${{ steps.pr_info.outputs.pr_author }}with:@@ -590,7 +600,8 @@ jobs:- name: Verify team membershipif: github.event_name == 'workflow_dispatch'- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]env:ACTOR: ${{ github.actor }}with:@@ -660,7 +671,8 @@ jobs:# signal.- name: Report failure on PRif: failure() && (github.event_name == 'issue_comment' || github.event_name == 'pull_request')- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:script: |const prNumber = context.payload.issue?.number ?? context.payload.pull_request?.number;@@ -700,7 +712,8 @@ jobs:steps:- name: Check Out Repo- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:ref: ${{ needs.preflight.outputs.pr_head_sha }}sparse-checkout: |@@ -712,10 +725,12 @@ jobs:run: cp -r proto rust/proto- name: Set up Depot CLI- uses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1.7.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: depot/[email protected]- name: Login to ghcr.io- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:registry: ghcr.iousername: ${{ github.actor }}@@ -725,17 +740,20 @@ jobs:# The canary image also goes to feature-flags-prs in the shared-services ECR.# The charts canary pulls it from there. ECR replication copies it to eu-central-1.- name: Configure AWS credentials for the shared-services ECR- uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]with:role-to-assume: ${{ secrets.AWS_ECR_SHARED_SERVICES_POSTHOG_PRS_PUBLISH_IAM_ROLE }}aws-region: us-east-1- name: Login to the shared-services ECRid: ecr- uses: aws-actions/amazon-ecr-login@f2e9fc6c2b355c1890b65e6f6f0e2ac3e6e22f78 # v2.1.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]- name: Set up Docker Buildx- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]- name: Retrieve sccache configurationid: sccache@@ -746,7 +764,8 @@ jobs:- name: Build and push feature-flags imageid: docker_build- uses: depot/build-push-action@5f3b3c2e5a00f0093de47f657aeaefcedff27d18 # v1.17.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: depot/[email protected]with:project: vglf58qgzwcontext: ./rust/@@ -767,7 +786,8 @@ jobs:- name: Get deployer tokenid: deployer- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ secrets.GH_APP_CHARTS_DEPLOYER_APP_ID }}private-key: ${{ secrets.GH_APP_CHARTS_DEPLOYER_PRIVATE_KEY }}@@ -775,7 +795,8 @@ jobs:repositories: charts- name: Dispatch canary deployment to charts repo- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]env:PR_NUMBER: ${{ needs.preflight.outputs.pr_number }}IMAGE_TAG: ${{ needs.preflight.outputs.image_tag }}@@ -821,7 +842,8 @@ jobs:- name: Report success on PRif: success() && github.event_name == 'issue_comment'- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]env:PR_NUMBER: ${{ needs.preflight.outputs.pr_number }}IMAGE_TAG: ${{ needs.preflight.outputs.image_tag }}@@ -857,7 +879,8 @@ jobs:- name: Report failure on PRif: failure() && (github.event_name == 'issue_comment' || github.event_name == 'pull_request')- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:script: |const prNumber = context.payload.issue?.number ?? context.payload.pull_request?.number;diff --git a/.github/workflows/cd-llm-analytics-image.yml b/.github/workflows/cd-llm-analytics-image.ymlindex 1b936e2e633b..13fd9fb5d3fe 100644--- a/.github/workflows/cd-llm-analytics-image.yml+++ b/.github/workflows/cd-llm-analytics-image.yml@@ -74,27 +74,32 @@ jobs:fi- name: Check out- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 2- name: Set up Depot CLI- uses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1.7.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: depot/[email protected]- name: Configure AWS credentials- uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]with:role-to-assume: ${{ env.ECR_ROLE }}aws-region: us-east-1- name: Login to Amazon ECRid: aws-ecr- uses: aws-actions/amazon-ecr-login@f2e9fc6c2b355c1890b65e6f6f0e2ac3e6e22f78 # v2.1.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]- name: Docker metaid: docker-metacontinue-on-error: true- uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]env:DOCKER_METADATA_ANNOTATIONS_LEVELS: indexwith:@@ -134,7 +139,8 @@ jobs:- name: Build and push container imageid: build- uses: depot/build-push-action@5f3b3c2e5a00f0093de47f657aeaefcedff27d18 # v1.17.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: depot/[email protected]with:project: c1f2m5s6zdfile: ./Dockerfile.llm-analytics@@ -148,7 +154,8 @@ jobs:- name: Get deployer tokenif: github.repository_owner == 'PostHog' && vars.CD_DEPLOY_ENABLED == 'true' && github.ref == 'refs/heads/master'id: deployer- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ secrets.GH_APP_CHARTS_DEPLOYER_APP_ID }}private-key: ${{ secrets.GH_APP_CHARTS_DEPLOYER_PRIVATE_KEY }}@@ -164,7 +171,8 @@ jobs:- name: Trigger LLM Analytics Temporal Worker deploymentif: github.repository_owner == 'PostHog' && vars.CD_DEPLOY_ENABLED == 'true' && github.ref == 'refs/heads/master'- uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: peter-evans/[email protected]with:token: ${{ steps.deployer.outputs.token }}repository: PostHog/chartsdiff --git a/.github/workflows/ci-actionlint.yml b/.github/workflows/ci-actionlint.ymlindex bdf7e976a346..008b4d2eb59f 100644--- a/.github/workflows/ci-actionlint.yml+++ b/.github/workflows/ci-actionlint.yml@@ -23,7 +23,8 @@ jobs:runs-on: ubuntu-24.04timeout-minutes: 5steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:sparse-checkout: .githubsparse-checkout-cone-mode: false@@ -74,7 +75,8 @@ jobs:- name: Upload findings JSONif: always()- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: actionlint-findingspath: actionlint.jsondiff --git a/.github/workflows/ci-alerts-devex.yml b/.github/workflows/ci-alerts-devex.ymlindex 3c649a9c5487..bb22ce93fcf4 100644--- a/.github/workflows/ci-alerts-devex.yml+++ b/.github/workflows/ci-alerts-devex.yml@@ -85,7 +85,8 @@ jobs:runs-on: ubuntu-24.04timeout-minutes: 5steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:persist-credentials: falsesparse-checkout: |@@ -95,7 +96,8 @@ jobs:# Both Depot steps are capped, so a slow Depot API cannot use up the job's# timeout and cancel the reconcile of every other lane.- - uses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1.7.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: depot/[email protected]continue-on-error: truetimeout-minutes: 1@@ -126,14 +128,16 @@ jobs:- name: Mint posthog-tests GitHub tokenid: app-tokencontinue-on-error: true- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ secrets.GH_APP_POSTHOG_TESTS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_TESTS_PRIVATE_KEY }}skip-token-revoke: true- name: Reconcile master CI incident with Slack- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]env:SLACK_BOT_TOKEN: ${{ secrets.SLACK_DEVEX_BOT_TOKEN }}# Incoming-webhook trigger of the master-red diagnosis workflow. Unset skips thediff --git a/.github/workflows/ci-backend-schema-mirror.yml b/.github/workflows/ci-backend-schema-mirror.ymlindex 8acba0016bfd..a17238878f89 100644--- a/.github/workflows/ci-backend-schema-mirror.yml+++ b/.github/workflows/ci-backend-schema-mirror.yml@@ -29,13 +29,15 @@ jobs:runs-on: ubuntu-24.04timeout-minutes: 10steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:persist-credentials: falsesparse-checkout: .github/scripts/depot_backend_runs.pysparse-checkout-cone-mode: false- - uses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1.7.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: depot/[email protected]- name: Find the newest Depot master run with a dumpid: source@@ -88,7 +90,8 @@ jobs:- name: Upload migrated schema artifactif: steps.source.outputs.run_id != ''- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: migrated-schemapath: schema.sql.gz@@ -98,14 +101,16 @@ jobs:- name: Save schema to GitHub cache (master key)if: steps.source.outputs.run_id != ''- uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: schema.sql.gzkey: posthog-schema-master-${{ steps.source.outputs.sha }}- name: Save schema to GitHub cache (migration-set key)if: steps.source.outputs.run_id != '' && steps.dump.outputs.migration_key != ''- uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: schema.sql.gzkey: ${{ steps.dump.outputs.migration_key }}@@ -131,7 +136,8 @@ jobs:echo "$SHA" > mirroredecho "recorded=true" >> "$GITHUB_OUTPUT"- - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]if: steps.record.outputs.recorded == 'true'with:name: migrated-schema-mirrored-${{ steps.source.outputs.sha }}diff --git a/.github/workflows/ci-clickhouse-hcl-schema.yml b/.github/workflows/ci-clickhouse-hcl-schema.ymlindex c9b3b9ff06e5..35c608106e70 100644--- a/.github/workflows/ci-clickhouse-hcl-schema.yml+++ b/.github/workflows/ci-clickhouse-hcl-schema.yml@@ -41,13 +41,15 @@ jobs:# managed set is trusted and we want it enforced.continue-on-error: truesteps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:sparse-checkout: posthog/clickhouse/hclsparse-checkout-cone-mode: false- name: Log in to ghcr.io- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:registry: ghcr.iousername: ${{ github.actor }}@@ -90,7 +92,8 @@ jobs:# Secrets are empty on fork PRs and until the App is provisioned —# in both cases the gate reports skipped (with a summary), not red.if: env.HAS_GATE_CREDS == 'true'- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ secrets.GH_APP_HCL_COMPOSE_GATE_APP_ID }}private-key: ${{ secrets.GH_APP_HCL_COMPOSE_GATE_PRIVATE_KEY }}diff --git a/.github/workflows/ci-clickhouse-util-udfs.yml b/.github/workflows/ci-clickhouse-util-udfs.ymlindex a34723457928..b5747604d32c 100644--- a/.github/workflows/ci-clickhouse-util-udfs.yml+++ b/.github/workflows/ci-clickhouse-util-udfs.yml@@ -28,14 +28,16 @@ jobs:run:working-directory: clickhouse-udfs/utilsteps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:sparse-checkout: |clickhouse-udfs/utildocker/clickhouse/user_defined_function.xmlposthog/user_scriptssparse-checkout-cone-mode: false- - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:go-version-file: clickhouse-udfs/util/go.modcache: falsediff --git a/.github/workflows/ci-depot-action-mirrors.yml b/.github/workflows/ci-depot-action-mirrors.ymlindex ce88af65f24c..18bc1c358042 100644--- a/.github/workflows/ci-depot-action-mirrors.yml+++ b/.github/workflows/ci-depot-action-mirrors.yml@@ -27,7 +27,8 @@ jobs:# — we only need to diff two SHAs.timeout-minutes: 5steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:sparse-checkout: |/.depot/diff --git a/.github/workflows/ci-dev-setup.yml b/.github/workflows/ci-dev-setup.ymlindex fc51fecff608..d739b29884db 100644--- a/.github/workflows/ci-dev-setup.yml+++ b/.github/workflows/ci-dev-setup.yml@@ -28,10 +28,12 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]- name: Install Flox- uses: flox/install-flox-action@c94e7e1ab56ae14fe98bae4fd84384fd135f0c2a # v2.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: flox/[email protected]with:version: '1.19.1'# This workflow only runs on pull_request, so the cache is never seeded ondiff --git a/.github/workflows/ci-duplication.yml b/.github/workflows/ci-duplication.ymlindex 81e4413fcde6..fb6b10ea031d 100644--- a/.github/workflows/ci-duplication.yml+++ b/.github/workflows/ci-duplication.yml@@ -27,7 +27,8 @@ jobs:runs-on: depot-ubuntu-24.04timeout-minutes: 10steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]- name: Fetch PR base for the clone baselineenv:BASE_REF: ${{ github.event.pull_request.base.ref || 'master' }}@@ -45,7 +46,8 @@ jobs:fidonegit merge-base "origin/$BASE_REF" HEAD || echo "merge-base unresolved at depth $depth; the lint falls back to the base tip"- - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:node-version-file: .nvmrc- name: Lint for new duplicationdiff --git a/.github/workflows/ci-hobby-installer.yml b/.github/workflows/ci-hobby-installer.ymlindex 1a020b0f31c1..e293e1ee578a 100644--- a/.github/workflows/ci-hobby-installer.yml+++ b/.github/workflows/ci-hobby-installer.yml@@ -20,18 +20,21 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:sparse-checkout: bin/hobby-installer- name: Set up Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:go-version: '1.26.10'cache-dependency-path: bin/hobby-installer/go.sum- name: Run golangci-lint- uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: golangci/[email protected]with:version: v2.13.1working-directory: bin/hobby-installer@@ -53,12 +56,14 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:sparse-checkout: bin/hobby-installer- name: Set up Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:go-version: '1.26.10'cache-dependency-path: bin/hobby-installer/go.sumdiff --git a/.github/workflows/ci-livestream-tui.yml b/.github/workflows/ci-livestream-tui.ymlindex 1669f235b952..4dc56737ef8d 100644--- a/.github/workflows/ci-livestream-tui.yml+++ b/.github/workflows/ci-livestream-tui.yml@@ -27,19 +27,22 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:sparse-checkout: livestreamsparse-checkout-cone-mode: false- name: Set up Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:go-version: '1.26.10'cache-dependency-path: livestream/go.sum- name: Run golangci-lint- uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: golangci/[email protected]with:version: latestworking-directory: livestream@@ -61,13 +64,15 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:sparse-checkout: livestreamsparse-checkout-cone-mode: false- name: Set up Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:go-version: '1.26.10'cache-dependency-path: livestream/go.sumdiff --git a/.github/workflows/ci-livestream.yml b/.github/workflows/ci-livestream.ymlindex 6207a1a15cae..1b3476a77878 100644--- a/.github/workflows/ci-livestream.yml+++ b/.github/workflows/ci-livestream.yml@@ -26,19 +26,22 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:sparse-checkout: livestreamsparse-checkout-cone-mode: false- name: Set up Go- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:go-version: '1.26.10'cache-dependency-path: livestream/go.sum- name: Run golangci-lint- uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: golangci/[email protected]with:version: latestworking-directory: livestreamdiff --git a/.github/workflows/ci-mcp-agent-api-diff.yml b/.github/workflows/ci-mcp-agent-api-diff.ymlindex 81efc20c8c70..f68934ceada4 100644--- a/.github/workflows/ci-mcp-agent-api-diff.yml+++ b/.github/workflows/ci-mcp-agent-api-diff.yml@@ -43,13 +43,15 @@ jobs:# The checked-out ref is the PR merged into its base, so HEAD^1 is the base tip and# the diff against it is exactly what the PR changes, even when the branch is behind.- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 2persist-credentials: false- name: Set up Node.js- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: .nvmrc@@ -73,7 +75,8 @@ jobs:- name: Upload agent API diffif: steps.diff.outcome == 'success'- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: agent-api-diffpath: agent-api-diff/agent-api-diff.md@@ -93,7 +96,8 @@ jobs:pull-requests: writesteps:- name: Checkout trusted scripts from base- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:ref: ${{ github.event.pull_request.base.sha }}sparse-checkout: |@@ -103,7 +107,8 @@ jobs:persist-credentials: false- name: Download agent API diff- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: agent-api-diffpath: agent-api-diffdiff --git a/.github/workflows/ci-phrocs.yml b/.github/workflows/ci-phrocs.ymlindex 33655405beef..5fe863f513bc 100644--- a/.github/workflows/ci-phrocs.yml+++ b/.github/workflows/ci-phrocs.yml@@ -26,19 +26,22 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:sparse-checkout: tools/phrocssparse-checkout-cone-mode: false- name: Set up Go- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:go-version: '1.26.10'cache-dependency-path: tools/phrocs/go.sum- name: Run golangci-lint- uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: golangci/[email protected]with:version: latestworking-directory: tools/phrocsdiff --git a/.github/workflows/ci-playwright-container.yml b/.github/workflows/ci-playwright-container.ymlindex 91a97be3fa40..8abed1407f17 100644--- a/.github/workflows/ci-playwright-container.yml+++ b/.github/workflows/ci-playwright-container.yml@@ -23,7 +23,8 @@ jobs:packages: writesteps:- name: Login to ghcr.io- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:registry: ghcr.iousername: ${{ github.actor }}diff --git a/.github/workflows/ci-security.yaml b/.github/workflows/ci-security.yamlindex eda5d1ae68cc..2b00dbd7a0b4 100644--- a/.github/workflows/ci-security.yaml+++ b/.github/workflows/ci-security.yaml@@ -40,7 +40,8 @@ jobs:scan-setup: ${{ steps.oversized.outputs.force_all || steps.filter.outputs.scan-setup || 'false' }}idor-rule: ${{ steps.filter.outputs.idor-rule || 'false' }}steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:clean: falsepersist-credentials: false@@ -50,7 +51,8 @@ jobs:id: oversizedif: github.event_name == 'pull_request' && github.event.pull_request.changed_files > 3000run: echo "force_all=true" >> "$GITHUB_OUTPUT"- - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]id: app-token# forks can't read org secrets — fall back to github.tokenif: github.repository == 'PostHog/posthog' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository@@ -170,13 +172,15 @@ jobs:- name: Log in to Docker Hubcontinue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:username: ${{ vars.DOCKERHUB_USER }}password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 2@@ -241,13 +245,15 @@ jobs:- name: Log in to Docker Hubcontinue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:username: ${{ vars.DOCKERHUB_USER }}password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 2@@ -278,13 +284,15 @@ jobs:- name: Log in to Docker Hubcontinue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:username: ${{ vars.DOCKERHUB_USER }}password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 2@@ -318,13 +326,15 @@ jobs:- name: Log in to Docker Hubcontinue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:username: ${{ vars.DOCKERHUB_USER }}password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 2@@ -362,13 +372,15 @@ jobs:- name: Log in to Docker Hubcontinue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:username: ${{ vars.DOCKERHUB_USER }}password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 2@@ -402,13 +414,15 @@ jobs:- name: Log in to Docker Hubcontinue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:username: ${{ vars.DOCKERHUB_USER }}password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 2@@ -466,13 +480,15 @@ jobs:- name: Log in to Docker Hubcontinue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:username: ${{ vars.DOCKERHUB_USER }}password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:# PR merge commit plus both parents, so the new-warnings# pass can baseline against the PR base (HEAD^1)@@ -570,13 +586,15 @@ jobs:- name: Log in to Docker Hubcontinue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:username: ${{ vars.DOCKERHUB_USER }}password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: falsesparse-checkout: |@@ -623,13 +641,15 @@ jobs:- name: Log in to Docker Hubcontinue-on-error: trueif: ${{ env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != '' }}- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:username: ${{ vars.DOCKERHUB_USER }}password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: falsediff --git a/.github/workflows/ci-storybook-update-test-timing.yml b/.github/workflows/ci-storybook-update-test-timing.ymlindex affae908e938..a4bc79f7c807 100644--- a/.github/workflows/ci-storybook-update-test-timing.yml+++ b/.github/workflows/ci-storybook-update-test-timing.yml@@ -44,12 +44,14 @@ jobs:- name: Get app tokenid: app-token- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ secrets.GH_APP_POSTHOG_TESTS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_TESTS_PRIVATE_KEY }}- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:ref: ${{ github.ref_name }}token: ${{ steps.app-token.outputs.token }}@@ -176,7 +178,8 @@ jobs:- name: Commit via GitHub API (signed)if: steps.check-changes.outputs.changed == 'true'- uses: planetscale/ghcommit-action@25309d8005ac7c3bcd61d3fe19b69e0fe47dbdde # v0.2.20+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: planetscale/[email protected]with:commit_message: 'chore(ci): update storybook shard timing manifest'repo: ${{ github.repository }}diff --git a/.github/workflows/depot-retry-on-comment.yml b/.github/workflows/depot-retry-on-comment.ymlindex 734feb4ccaa5..60fe372a4d1b 100644--- a/.github/workflows/depot-retry-on-comment.yml+++ b/.github/workflows/depot-retry-on-comment.yml@@ -27,11 +27,13 @@ jobs:runs-on: ubuntu-24.04timeout-minutes: 5steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:sparse-checkout: .github/scriptssparse-checkout-cone-mode: false- - uses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1.7.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: depot/[email protected]- name: Retry this PR's failed Depot jobsenv:DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}diff --git a/.github/workflows/desktop-agent-release-verify.yml b/.github/workflows/desktop-agent-release-verify.ymlindex 39abadcafd40..cc37075a4438 100644--- a/.github/workflows/desktop-agent-release-verify.yml+++ b/.github/workflows/desktop-agent-release-verify.yml@@ -31,17 +31,20 @@ jobs:working-directory: packages/agentsteps:- name: Checkout repository- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: packages/agent/package.json- name: Set up Node 24- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: .nvmrc@@ -51,7 +54,8 @@ jobs:# Restore-only: desktop-warm-caches.yml seeds this on master pushes.- name: Restore pnpm store- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}diff --git a/.github/workflows/desktop-agent-release.yml b/.github/workflows/desktop-agent-release.ymlindex 946d76676c53..2f7bc9d505a9 100644--- a/.github/workflows/desktop-agent-release.yml+++ b/.github/workflows/desktop-agent-release.yml@@ -34,17 +34,20 @@ jobs:working-directory: packages/agentsteps:- name: Checkout repository- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: packages/agent/package.json- name: Set up Node 24- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: .nvmrcpackage-manager-cache: false@@ -81,7 +84,8 @@ jobs:echo "tarball_sha256=$(cut -d' ' -f1 "posthog-agent-${AGENT_VERSION}.tgz.sha256")" >> "$GITHUB_OUTPUT"- name: Upload the tarball for the release job- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: agent-tarballpath: ${{ runner.temp }}/posthog-agent-*.tgz*@@ -142,7 +146,8 @@ jobs:id: slack# Slack is a courtesy: a failed post must not stop the pin bump below.continue-on-error: true- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.postMessagetoken: ${{ secrets.SLACK_DEVEX_BOT_TOKEN }}@@ -178,7 +183,8 @@ jobs:tarball_sha256: ${{ steps.attach.outputs.tarball_sha256 }}steps:- name: Download the tarball- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: agent-tarballpath: ${{ runner.temp }}diff --git a/.github/workflows/desktop-agent-tag.yml b/.github/workflows/desktop-agent-tag.ymlindex ee4f8ecaccf3..972cbb628521 100644--- a/.github/workflows/desktop-agent-tag.yml+++ b/.github/workflows/desktop-agent-tag.yml@@ -28,7 +28,8 @@ jobs:steps:- name: Get app tokenid: app-token- uses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: getsentry/[email protected]with:app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}@@ -53,7 +54,8 @@ jobs:fi- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:nonediff --git a/.github/workflows/desktop-build-test.yml b/.github/workflows/desktop-build-test.ymlindex b81c5408808f..1fe6fa3618f7 100644--- a/.github/workflows/desktop-build-test.yml+++ b/.github/workflows/desktop-build-test.yml@@ -81,19 +81,22 @@ jobs:CSC_FOR_PULL_REQUEST: 'true'steps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:nonepersist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-version@@ -112,7 +115,8 @@ jobs:# Restore only: PR runs must not save caches, and the store is seeded# by the desktop-test and desktop-warm-caches runs on master.- name: Restore pnpm store- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -122,7 +126,8 @@ jobs:run: pnpm install --frozen-lockfile- name: Configure AWS credentials- uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]with:role-to-assume: ${{ vars.AWS_TWIG_APP_ASSETS_ROLE_ARN }}aws-region: ${{ vars.AWS_TWIG_APP_ASSETS_REGION }}@@ -205,14 +210,16 @@ jobs:- name: Upload Playwright reportif: failure()- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: build-test-playwright-macos-${{ matrix.arch }}path: products/desktop/apps/code/playwright-report/retention-days: 7- name: Upload artifacts- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: code-macos-${{ matrix.arch }}path: |@@ -234,7 +241,8 @@ jobs:working-directory: products/desktopsteps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:sparse-checkout: products/desktopsparse-checkout-cone-mode: false@@ -249,12 +257,14 @@ jobs:sysctl -n machdep.cpu.brand_string- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-version@@ -262,7 +272,8 @@ jobs:run: pnpm install --frozen-lockfile --ignore-scripts --filter code- name: Download the x64 app- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: code-macos-x64path: /tmp/e2e-app@@ -281,7 +292,8 @@ jobs:- name: Upload Playwright reportif: failure()- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: build-test-playwright-macos-x64path: products/desktop/apps/code/playwright-report/@@ -321,19 +333,22 @@ jobs:AZURE_CLIENT_SECRET: ${{ github.event_name == 'workflow_dispatch' && secrets.DESKTOP_AZURE_CODESIGN_CLIENT_SECRET || '' }}steps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:nonepersist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-version@@ -345,7 +360,8 @@ jobs:# Restore only: PR runs must not save caches, and the store is seeded# by the desktop-test and desktop-warm-caches runs on master.- name: Restore pnpm store- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -392,7 +408,8 @@ jobs:& "$env:GITHUB_WORKSPACE/.github/scripts/desktop/verify-windows-signatures.ps1" -OutDir apps/code/out- name: Upload artifacts- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: code-windowspath: |@@ -440,7 +457,8 @@ jobs:VITE_POSTHOG_BUILD_CHANNEL: teststeps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:none@@ -454,12 +472,14 @@ jobs:squashfs-tools zsync libfuse2t64 fakeroot rpm- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-version@@ -471,7 +491,8 @@ jobs:# Restore only: PR runs must not save caches, and the store is seeded# by the desktop-test and desktop-warm-caches runs on master.- name: Restore pnpm store- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -500,7 +521,8 @@ jobs:fi- name: Upload artifacts- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: code-linux-${{ matrix.arch }}path: |diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.ymlindex 1f989865e95e..298cc317f629 100644--- a/.github/workflows/desktop-build.yml+++ b/.github/workflows/desktop-build.yml@@ -43,7 +43,8 @@ jobs:code: ${{ steps.filter.outputs.agent == 'true' && 'true' || steps.filter.outputs.code || 'true' }}workflow: ${{ steps.filter.outputs.workflow || 'true' }}steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]if: github.event_name == 'pull_request'with:persist-credentials: false@@ -51,7 +52,8 @@ jobs:sparse-checkout-cone-mode: false# Own rate-limit bucket; the shared GITHUB_TOKEN goes hot at merge peaks.- - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]id: app-token# forks can't read org secrets, so fall back to github.tokenif: github.repository == 'PostHog/posthog' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository@@ -114,17 +116,20 @@ jobs:working-directory: products/desktopsteps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-version@@ -136,7 +141,8 @@ jobs:# auto-saves on every run (PRs included, ungatable), which the workflow# lint forbids. Saves are gated to master pushes below.- name: Restore pnpm store- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}diff --git a/.github/workflows/desktop-ci.yml b/.github/workflows/desktop-ci.ymlindex 304999733719..624e0b7f7224 100644--- a/.github/workflows/desktop-ci.yml+++ b/.github/workflows/desktop-ci.yml@@ -44,7 +44,8 @@ jobs:test: ${{ steps.filter.outputs.agent == 'true' || steps.filter.outputs.code == 'true' || steps.filter.outputs.test == 'true' }}test_e2e: ${{ steps.filter.outputs.agent == 'true' || steps.filter.outputs.packages == 'true' || steps.filter.outputs.test == 'true' }}steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]if: github.event_name == 'pull_request'with:persist-credentials: false@@ -52,7 +53,8 @@ jobs:sparse-checkout-cone-mode: false# Own rate-limit bucket; the shared GITHUB_TOKEN goes hot at merge peaks.- - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]id: app-token# forks can't read org secrets, so fall back to github.tokenif: github.repository == 'PostHog/posthog' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository@@ -167,11 +169,13 @@ jobs:timeout-minutes: 5steps:- name: Checkout gate scripts- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:sparse-checkout: .github/scripts/desktoppersist-credentials: false- - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]id: app-token# forks can't read org secrets; fall back to github.tokenif: github.repository == 'PostHog/posthog' && github.event.pull_request.head.repo.full_name == github.repositorydiff --git a/.github/workflows/desktop-cleanup-draft-releases.yml b/.github/workflows/desktop-cleanup-draft-releases.ymlindex f9144c33f2ce..e8f15e8930a3 100644--- a/.github/workflows/desktop-cleanup-draft-releases.yml+++ b/.github/workflows/desktop-cleanup-draft-releases.yml@@ -21,7 +21,8 @@ jobs:steps:- name: Get app tokenid: app-token- uses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: getsentry/[email protected]with:app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}diff --git a/.github/workflows/desktop-quality.yml b/.github/workflows/desktop-quality.ymlindex c7fabace87cc..beb065b11119 100644--- a/.github/workflows/desktop-quality.yml+++ b/.github/workflows/desktop-quality.yml@@ -38,7 +38,8 @@ jobs:code: ${{ steps.filter.outputs.agent == 'true' && 'true' || steps.filter.outputs.code || 'true' }}workflow: ${{ steps.filter.outputs.workflow || 'true' }}steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]if: github.event_name == 'pull_request'with:persist-credentials: false@@ -46,7 +47,8 @@ jobs:sparse-checkout-cone-mode: false# Own rate-limit bucket; the shared GITHUB_TOKEN goes hot at merge peaks.- - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]id: app-token# forks can't read org secrets, so fall back to github.tokenif: github.repository == 'PostHog/posthog' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository@@ -92,12 +94,14 @@ jobs:working-directory: products/desktopsteps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: false- name: Setup Biome- uses: biomejs/setup-biome@4c91541eaada48f67d7dbd7833600ce162b68f51 # v2.7.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: biomejs/[email protected]with:# Keep in sync with @biomejs/biome in products/desktop/package.json; without a# pin the action resolves a version at the repo root, which rejects@@ -112,7 +116,8 @@ jobs:run: biome ci .- name: Setup Node- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-versionpackage-manager-cache: falsediff --git a/.github/workflows/desktop-react-doctor.yml b/.github/workflows/desktop-react-doctor.ymlindex f54b0e9a7373..ef23ed0784bc 100644--- a/.github/workflows/desktop-react-doctor.yml+++ b/.github/workflows/desktop-react-doctor.yml@@ -33,12 +33,14 @@ jobs:# constituent PR already ran this in full.if: ${{ !startsWith(github.head_ref, 'trunk-merge/') }}steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:fetch-depth: 2persist-credentials: false- - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]id: app-tokenif: github.repository == 'PostHog/posthog' && github.event.pull_request.head.repo.full_name == github.repositorywith:@@ -46,7 +48,8 @@ jobs:private-key: ${{ secrets.GH_APP_POSTHOG_PATHS_FILTER_PRIVATE_KEY }}permission-pull-requests: read- - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:node-version-file: products/desktop/.node-versionpackage-manager-cache: falsediff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.ymlindex 594f6fddacd3..b963b0a32f68 100644--- a/.github/workflows/desktop-release.yml+++ b/.github/workflows/desktop-release.yml@@ -25,7 +25,8 @@ jobs:steps:- name: Get app tokenid: app-token- uses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: getsentry/[email protected]with:app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}@@ -87,13 +88,15 @@ jobs:steps:- name: Get app tokenid: app-token- uses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: getsentry/[email protected]with:app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:none@@ -101,12 +104,14 @@ jobs:persist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-versionpackage-manager-cache: false@@ -116,7 +121,8 @@ jobs:run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"- name: Restore pnpm store- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -147,7 +153,8 @@ jobs:run: pnpm install --frozen-lockfile- name: Configure AWS credentials- uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]with:role-to-assume: ${{ vars.AWS_TWIG_APP_ASSETS_ROLE_ARN }}aws-region: ${{ vars.AWS_TWIG_APP_ASSETS_REGION }}@@ -245,7 +252,8 @@ jobs:run: pnpm --filter code exec playwright test --config=tests/e2e/playwright.config.ts- name: Upload Playwright report- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]if: failure() && matrix.arch == 'arm64'with:name: release-playwright-report-macos-${{ matrix.arch }}@@ -254,7 +262,8 @@ jobs:- name: Upload the x64 app for the native Intel e2e runif: matrix.arch == 'x64'- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: e2e-app-macos-x64path: products/desktop/apps/code/out/*-mac.zip@@ -272,7 +281,8 @@ jobs:apps/code/out/*.blockmap- name: Configure AWS credentials for the update feed- uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]with:role-to-assume: ${{ vars.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}aws-region: us-east-1@@ -299,14 +309,16 @@ jobs:run: shasum -a 256 *.dmg *-mac.zip *.blockmap > "checksums-macos-$MATRIX_ARCH.txt"- name: Upload checksums artifact- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: checksums-macos-${{ matrix.arch }}path: products/desktop/apps/code/out/checksums-macos-${{ matrix.arch }}.txtretention-days: 1- name: Upload mac manifest artifact- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: mac-manifest-${{ matrix.arch }}path: products/desktop/apps/code/out/latest-mac.yml@@ -323,7 +335,8 @@ jobs:working-directory: products/desktopsteps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:sparse-checkout: |products/desktop@@ -340,12 +353,14 @@ jobs:sysctl -n machdep.cpu.brand_string- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-versionpackage-manager-cache: false@@ -357,7 +372,8 @@ jobs:run: node scripts/build-agent-workspace.mjs- name: Download the x64 app- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: e2e-app-macos-x64path: /tmp/e2e-app@@ -375,7 +391,8 @@ jobs:run: pnpm --filter code exec playwright test --config=tests/e2e/playwright.config.ts- name: Upload Playwright report- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]if: failure()with:name: release-playwright-report-macos-x64@@ -408,13 +425,15 @@ jobs:steps:- name: Get app tokenid: app-token- uses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: getsentry/[email protected]with:app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:none@@ -422,12 +441,14 @@ jobs:persist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-versionpackage-manager-cache: false@@ -518,7 +539,8 @@ jobs:gh release upload "desktop-v$env:APP_VERSION" --repo $env:GITHUB_REPOSITORY --clobber @files- name: Configure AWS credentials for the update feed- uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]with:role-to-assume: ${{ vars.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}aws-region: us-east-1@@ -540,7 +562,8 @@ jobs:}- name: Upload windows manifest artifact- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: win-manifestpath: products/desktop/apps/code/out/latest.yml@@ -554,7 +577,8 @@ jobs:run: sha256sum *.exe *.blockmap > checksums-windows-x64.txt- name: Upload checksums artifact- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: checksums-windows-x64path: products/desktop/apps/code/out/checksums-windows-x64.txt@@ -591,13 +615,15 @@ jobs:steps:- name: Get app tokenid: app-token- uses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: getsentry/[email protected]with:app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:none@@ -613,12 +639,14 @@ jobs:squashfs-tools zsync libfuse2t64 fakeroot rpm- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-versionpackage-manager-cache: false@@ -693,7 +721,8 @@ jobs:apps/code/out/*.rpm- name: Configure AWS credentials for the update feed- uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]with:role-to-assume: ${{ vars.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}aws-region: us-east-1@@ -725,7 +754,8 @@ jobs:run: sha256sum *.AppImage *.deb *.rpm > "checksums-linux-$MATRIX_ARCH.txt"- name: Upload checksums artifact- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: checksums-linux-${{ matrix.arch }}path: products/desktop/apps/code/out/checksums-linux-${{ matrix.arch }}.txt@@ -745,7 +775,8 @@ jobs:steps:- name: Get app tokenid: app-token- uses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: getsentry/[email protected]with:app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}@@ -757,7 +788,8 @@ jobs:echo "version=$TAG_VERSION" >> "$GITHUB_OUTPUT"- name: Checkout release scripts- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:none@@ -773,7 +805,8 @@ jobs:persist-credentials: false- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-versionpackage-manager-cache: false@@ -782,13 +815,15 @@ jobs:run: npm install --prefix products/desktop/apps/code yaml@^2- name: Download arm64 mac manifest- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: mac-manifest-arm64path: /tmp/mac-manifests/arm64- name: Download x64 mac manifest- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: mac-manifest-x64path: /tmp/mac-manifests/x64@@ -808,7 +843,8 @@ jobs:gh release upload "desktop-v$APP_VERSION" --repo "$GITHUB_REPOSITORY" --clobber /tmp/latest-mac.yml- name: Download checksum artifacts- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:pattern: checksums-*merge-multiple: true@@ -826,7 +862,8 @@ jobs:--title "desktop-v$APP_VERSION" --notes-file /tmp/release-notes.md- name: Download windows manifest- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: win-manifestpath: /tmp/win-manifest@@ -846,7 +883,8 @@ jobs:/tmp/latest-mac.yml /tmp/win-manifest/latest.yml- name: Configure AWS credentials for the update feed- uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]with:role-to-assume: ${{ vars.AWS_DESKTOP_APP_RELEASES_ROLE_ARN }}aws-region: us-east-1diff --git a/.github/workflows/desktop-sync-benjamin.yml b/.github/workflows/desktop-sync-benjamin.ymlindex a6e8bb0b603a..25848a45ee02 100644--- a/.github/workflows/desktop-sync-benjamin.yml+++ b/.github/workflows/desktop-sync-benjamin.yml@@ -31,13 +31,15 @@ jobs:- name: Get app tokenid: app-token- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ vars.GH_APP_POSTHOG_SCHEDULED_ACTIONS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_SCHEDULED_ACTIONS_PRIVATE_KEY }}- name: Checkout repository- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:token: ${{ steps.app-token.outputs.token }}sparse-checkout: |@@ -47,7 +49,8 @@ jobs:sparse-checkout-cone-mode: false- name: Set up Node- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: .nvmrc@@ -123,7 +126,8 @@ jobs:- name: Commit via GitHub API (signed)if: steps.check-changes.outputs.changes == 'true'- uses: planetscale/ghcommit-action@25309d8005ac7c3bcd61d3fe19b69e0fe47dbdde # v0.2.20+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: planetscale/[email protected]with:commit_message: 'chore(tasks): bump vendored benjamin-plus instruction'repo: ${{ github.repository }}diff --git a/.github/workflows/desktop-tag.yml b/.github/workflows/desktop-tag.ymlindex c4dc829b9a53..a5dfa458143f 100644--- a/.github/workflows/desktop-tag.yml+++ b/.github/workflows/desktop-tag.yml@@ -37,7 +37,8 @@ jobs:steps:- name: Get app tokenid: app-token- uses: getsentry/action-github-app-token@5c1e90706fe007857338ac1bfbd7a4177db2f789 # v4.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: getsentry/[email protected]with:app_id: ${{ vars.GH_APP_ARRAY_RELEASER_APP_ID }}private_key: ${{ secrets.GH_APP_ARRAY_RELEASER_PRIVATE_KEY }}@@ -70,7 +71,8 @@ jobs:fi- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:nonediff --git a/.github/workflows/desktop-test.yml b/.github/workflows/desktop-test.ymlindex a774abc90611..dae97c21837a 100644--- a/.github/workflows/desktop-test.yml+++ b/.github/workflows/desktop-test.yml@@ -52,7 +52,8 @@ jobs:workflow: ${{ steps.filter.outputs.workflow || 'true' }}packages: ${{ steps.filter.outputs.agent == 'true' && 'true' || steps.filter.outputs.packages }}steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]if: github.event_name == 'pull_request'with:persist-credentials: false@@ -60,7 +61,8 @@ jobs:sparse-checkout-cone-mode: false# Own rate-limit bucket; the shared GITHUB_TOKEN goes hot at merge peaks.- - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]id: app-token# forks can't read org secrets, so fall back to github.tokenif: github.repository == 'PostHog/posthog' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository@@ -111,17 +113,20 @@ jobs:working-directory: products/desktopsteps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-version@@ -133,7 +138,8 @@ jobs:# auto-saves on every run (PRs included, ungatable), which the workflow# lint forbids. Saves are gated to master pushes below.- name: Restore pnpm store- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -165,17 +171,20 @@ jobs:working-directory: products/desktopsteps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-version@@ -187,14 +196,16 @@ jobs:# auto-saves on every run (PRs included, ungatable), which the workflow# lint forbids. Saves are gated to master pushes below.- name: Restore pnpm store- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}restore-keys: desktop-pnpm-${{ runner.os }}-- name: Restore Playwright browsers cache- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]id: playwright-cachewith:path: ~/.cache/ms-playwright@@ -203,7 +214,8 @@ jobs:playwright-${{ runner.os }}-- name: Restore Electron binary cache- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ~/.cache/electronkey: electron-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -246,7 +258,8 @@ jobs:CI: true- name: Upload Playwright report- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]# Keys off the step outcome, not failure(): the test step is continue-on-error, so a# failing suite no longer reds the job on its own and failure() would never fire here.if: ${{ !cancelled() && steps.run-e2e.outcome == 'failure' }}@@ -267,7 +280,8 @@ jobs:CI: true- name: Upload web Playwright report- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]if: ${{ !cancelled() && steps.run-web-e2e.outcome == 'failure' }}with:name: web-playwright-report@@ -313,17 +327,20 @@ jobs:working-directory: products/desktopsteps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-version@@ -335,7 +352,8 @@ jobs:# auto-saves on every run (PRs included, ungatable), which the workflow# lint forbids. Saves are gated to master pushes below.- name: Restore pnpm store- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -346,7 +364,8 @@ jobs:- name: Save pnpm storeif: github.ref == 'refs/heads/master'- uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}diff --git a/.github/workflows/desktop-typecheck.yml b/.github/workflows/desktop-typecheck.ymlindex 50ca1c769898..07fd48c231eb 100644--- a/.github/workflows/desktop-typecheck.yml+++ b/.github/workflows/desktop-typecheck.yml@@ -43,7 +43,8 @@ jobs:code: ${{ steps.filter.outputs.agent == 'true' && 'true' || steps.filter.outputs.code || 'true' }}workflow: ${{ steps.filter.outputs.workflow || 'true' }}steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]if: github.event_name == 'pull_request'with:persist-credentials: false@@ -51,7 +52,8 @@ jobs:sparse-checkout-cone-mode: false# Own rate-limit bucket; the shared GITHUB_TOKEN goes hot at merge peaks.- - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]id: app-token# forks can't read org secrets, so fall back to github.tokenif: github.repository == 'PostHog/posthog' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository@@ -100,17 +102,20 @@ jobs:working-directory: products/desktopsteps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-version@@ -122,7 +127,8 @@ jobs:# auto-saves on every run (PRs included, ungatable), which the workflow# lint forbids. Saves are gated to master pushes below.- name: Restore pnpm store- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}diff --git a/.github/workflows/desktop-update-e2e.yml b/.github/workflows/desktop-update-e2e.ymlindex 66ce81e5b3f2..6d992eb12d68 100644--- a/.github/workflows/desktop-update-e2e.yml+++ b/.github/workflows/desktop-update-e2e.yml@@ -60,26 +60,30 @@ jobs:SKIP_NOTARIZE: '1'steps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:nonepersist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-versioncache: 'pnpm'cache-dependency-path: products/desktop/pnpm-lock.yaml- name: Cache Electron binary- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:path: ~/Library/Caches/electronkey: electron-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -87,7 +91,8 @@ jobs:electron-${{ runner.os }}-- name: Cache Playwright browsers- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:path: ~/Library/Caches/ms-playwrightkey: playwright-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -98,7 +103,8 @@ jobs:run: pnpm install --frozen-lockfile- name: Configure AWS credentials- uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]with:role-to-assume: ${{ vars.AWS_TWIG_APP_ASSETS_ROLE_ARN }}aws-region: ${{ vars.AWS_TWIG_APP_ASSETS_REGION }}@@ -165,7 +171,8 @@ jobs:# leg so a flake in the (riskier) old-build step can never mask the baseline.- name: Cache old Forge app (v0.55.132)id: forge-cache- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:path: products/desktop/apps/code/out/old-forgekey: forge-app-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('products/desktop/apps/code/scripts/dev-update/build-old-forge.sh') }}@@ -251,7 +258,8 @@ jobs:# not fail the run and page #alerts-devex about a broken update path when# all three legs proved PASS.continue-on-error: true- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: update-e2e-macospath: |@@ -274,7 +282,8 @@ jobs:- name: Upload old build (1.0.0)if: always()continue-on-error: true- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: update-old-build-1.0.0path: |@@ -287,7 +296,8 @@ jobs:- name: Upload new build feed (2.0.0)if: always()continue-on-error: true- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: update-new-build-2.0.0path: products/desktop/apps/code/out/dev-update-feed/@@ -321,7 +331,8 @@ jobs:- name: Upload old Forge build (v0.55.132)if: always()continue-on-error: true- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:name: update-old-forge-build-1.0.0path: products/desktop/apps/code/out/PostHog-Code-forge-1.0.0-arm64-mac.zip@@ -333,7 +344,8 @@ jobs:# A manual dispatch is somebody debugging, and they watch the run.- name: Notify Slack on update e2e failureif: failure() && github.event_name == 'schedule'- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.postMessagetoken: ${{ secrets.SLACK_DEVEX_BOT_TOKEN }}diff --git a/.github/workflows/desktop-warm-caches.yml b/.github/workflows/desktop-warm-caches.ymlindex 672605c9e234..58fd431cc4a1 100644--- a/.github/workflows/desktop-warm-caches.yml+++ b/.github/workflows/desktop-warm-caches.yml@@ -43,17 +43,20 @@ jobs:working-directory: products/desktopsteps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-version@@ -62,7 +65,8 @@ jobs:run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"- name: Cache pnpm store- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -70,14 +74,16 @@ jobs:# Same keys as desktop-test.yml's electron-test job.- name: Cache Electron binary- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:path: ~/.cache/electronkey: electron-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}- name: Cache Playwright browsersid: playwright-cache- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:path: ~/.cache/ms-playwrightkey: playwright-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -102,17 +108,20 @@ jobs:working-directory: products/desktopsteps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:persist-credentials: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/desktop/package.json- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/desktop/.node-version@@ -122,7 +131,8 @@ jobs:- name: Cache pnpm storeid: pnpm-cache- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: desktop-pnpm-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}@@ -131,14 +141,16 @@ jobs:# Same keys as desktop-update-e2e.yml, the remaining macOS consumer.- name: Cache Electron binaryid: electron-cache- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:path: ~/Library/Caches/electronkey: electron-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}- name: Cache Playwright browsersid: playwright-cache- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:path: ~/Library/Caches/ms-playwrightkey: playwright-${{ runner.os }}-${{ hashFiles('products/desktop/pnpm-lock.yaml') }}diff --git a/.github/workflows/dev-sandbox-selftest.yml b/.github/workflows/dev-sandbox-selftest.ymlindex 7be7f421f9e0..691155e5d0da 100644--- a/.github/workflows/dev-sandbox-selftest.yml+++ b/.github/workflows/dev-sandbox-selftest.yml@@ -41,7 +41,8 @@ jobs:permissions:contents: readsteps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]- name: Run dev sandbox self-testrun: bin/dev-sandbox-selftest@@ -53,6 +54,7 @@ jobs:permissions:contents: readsteps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]- name: Run dev sandbox shims self-testrun: bin/dev-sandbox-shims-selftestdiff --git a/.github/workflows/docs-preview-trigger.yml b/.github/workflows/docs-preview-trigger.ymlindex f5024ef45fb7..bc18ffa82085 100644--- a/.github/workflows/docs-preview-trigger.yml+++ b/.github/workflows/docs-preview-trigger.yml@@ -24,7 +24,8 @@ jobs:timeout-minutes: 5steps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]- name: Check frontmatter in published docscontinue-on-error: truediff --git a/.github/workflows/eng-analytics-weekly-digest.yml b/.github/workflows/eng-analytics-weekly-digest.ymlindex d8796c45ada3..8ecc9d23f8a9 100644--- a/.github/workflows/eng-analytics-weekly-digest.yml+++ b/.github/workflows/eng-analytics-weekly-digest.yml@@ -41,14 +41,16 @@ jobs:github.repository == 'PostHog/posthog' &&(github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/master')steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:sparse-checkout: |.github/scripts/eng-analytics-weekly-digest.mjs.nvmrcsparse-checkout-cone-mode: false- - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:node-version-file: .nvmrcdiff --git a/.github/workflows/foss-sync.yml b/.github/workflows/foss-sync.ymlindex da003ed0854d..e1eeb540adfe 100644--- a/.github/workflows/foss-sync.yml+++ b/.github/workflows/foss-sync.yml@@ -24,7 +24,8 @@ jobs:steps:- name: Get app tokenid: app-token- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ vars.GH_APP_POSTHOG_FOSS_SYNC_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_FOSS_SYNC_PRIVATE_KEY }}@@ -35,7 +36,8 @@ jobs:# persist-credentials:false so checkout's default-token auth header doesn't shadow# the app token we push with (posthog is public, so lazy blob fetches still work).- name: Checkout posthog- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:none@@ -68,7 +70,8 @@ jobs:# once posthog-foss enforces signed commits. Picks up modified + deleted files.- name: Commit "Sync and remove all non-FOSS parts"id: foss-commit- uses: planetscale/ghcommit-action@25309d8005ac7c3bcd61d3fe19b69e0fe47dbdde # v0.2.20+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: planetscale/[email protected]with:commit_message: 'Sync and remove all non-FOSS parts'repo: PostHog/posthog-fossdiff --git a/.github/workflows/mobile-build.yml b/.github/workflows/mobile-build.ymlindex bb9e20077397..b0d9588a46cf 100644--- a/.github/workflows/mobile-build.yml+++ b/.github/workflows/mobile-build.yml@@ -50,7 +50,8 @@ jobs:working-directory: products/mobilesteps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:ref: ${{ github.sha }}persist-credentials: false@@ -58,7 +59,8 @@ jobs:sparse-checkout-cone-mode: false- name: Setup pnpm- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]with:package_json_file: products/mobile/package.jsonenv:@@ -69,7 +71,8 @@ jobs:NPM_CONFIG_FUND: 'false'- name: Setup Node.js- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: products/mobile/.node-versiontoken: ${{ github.token }}@@ -80,7 +83,8 @@ jobs:# Same key as mobile-ci.yml, which writes it on master. Restore only.- name: Restore pnpm store- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: mobile-pnpm-${{ runner.os }}-${{ hashFiles('products/mobile/pnpm-lock.yaml') }}@@ -92,7 +96,8 @@ jobs:run: pnpm install --frozen-lockfile- name: Setup EAS- uses: expo/expo-github-action@eab7a230208c952974db8c3245cfd78402c7b385 # 9.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: expo/[email protected]with:# Pinned so a new eas-cli release cannot change a release build unannounced.eas-version: 24.8.0diff --git a/.github/workflows/pnpm-store-cache.yml b/.github/workflows/pnpm-store-cache.ymlindex 0b7d4902dac3..444c0bce8601 100644--- a/.github/workflows/pnpm-store-cache.yml+++ b/.github/workflows/pnpm-store-cache.yml@@ -47,16 +47,19 @@ jobs:matrix:runner: [ubuntu-24.04, depot-ubuntu-24.04]steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]- name: Install pnpm- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]- name: Fix node-gyp permissionsrun: find ~/setup-pnpm -name gyp_main.py -exec chmod +x {} +- name: Set up Node.js- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: .nvmrctoken: ${{ github.token }}@@ -67,7 +70,8 @@ jobs:- name: Check for an existing entryid: lookup- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: pnpm-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}@@ -81,7 +85,8 @@ jobs:# and pnpm-install restores it so consumers skip the check's registry requests.- name: Check for an existing lockfile verdictid: verdict-lookup- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-cache.outputs.path }}/lockfile-verified.jsonlkey: pnpm-verdict-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', 'package.json') }}@@ -99,7 +104,8 @@ jobs:# branch would write the key every PR restores.- name: Save pnpm storeif: github.ref == 'refs/heads/master' && steps.lookup.outputs.cache-hit != 'true'- uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-store.outputs.path }}key: pnpm-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}@@ -108,7 +114,8 @@ jobs:# pnpm cache, so the record comes from the check the install above just ran.- name: Save lockfile verdictif: github.ref == 'refs/heads/master' && steps.verdict-lookup.outputs.cache-hit != 'true'- uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: ${{ steps.pnpm-cache.outputs.path }}/lockfile-verified.jsonlkey: pnpm-verdict-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', 'package.json') }}diff --git a/.github/workflows/pr-posthog-js-reviewer.yml b/.github/workflows/pr-posthog-js-reviewer.ymlindex 0af1a0d0c32d..21843465d4a5 100644--- a/.github/workflows/pr-posthog-js-reviewer.yml+++ b/.github/workflows/pr-posthog-js-reviewer.yml@@ -97,7 +97,8 @@ jobs:- name: Get app tokenid: app-tokenif: steps.reviewer-action.outputs.action != 'none'- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ secrets.GH_APP_POSTHOG_ASSIGN_REVIEWERS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_ASSIGN_REVIEWERS_PRIVATE_KEY }}diff --git a/.github/workflows/pr-priority-review.yml b/.github/workflows/pr-priority-review.ymlindex b8b66106d207..f9df1e025898 100644--- a/.github/workflows/pr-priority-review.yml+++ b/.github/workflows/pr-priority-review.yml@@ -33,7 +33,8 @@ jobs:steps:- name: Get author display name and escape PR titleid: meta- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:script: |const { data: user } = await github.rest.users.getByUsername({@@ -56,7 +57,8 @@ jobs:- name: Post to Slackid: slack- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.postMessagetoken: ${{ secrets.SLACK_BOT_TOKEN }}@@ -82,7 +84,8 @@ jobs:'{channel: $channel, ts: $ts}' > .priority-review-slack- name: Cache Slack message info- uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: .priority-review-slackkey: priority-review-slack-pr-${{ github.event.pull_request.number }}@@ -96,7 +99,8 @@ jobs:&& contains(github.event.pull_request.labels.*.name, 'priority-review')steps:- name: Restore Slack message info- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: .priority-review-slackkey: priority-review-slack-pr-${{ github.event.pull_request.number }}@@ -115,7 +119,8 @@ jobs:- name: Escape PR title and determine statusif: steps.slack_msg.outputs.found == 'true'id: meta- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:script: |function escapeSlack(str) {@@ -136,7 +141,8 @@ jobs:- name: Update Slack messageif: steps.slack_msg.outputs.found == 'true'continue-on-error: true- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.updatetoken: ${{ secrets.SLACK_BOT_TOKEN }}@@ -161,7 +167,8 @@ jobs:&& contains(github.event.pull_request.labels.*.name, 'priority-review')steps:- name: Restore Slack message info- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: .priority-review-slackkey: priority-review-slack-pr-${{ github.event.pull_request.number }}@@ -180,7 +187,8 @@ jobs:- name: Get display names and escape PR titleif: steps.slack_msg.outputs.found == 'true'id: meta- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:script: |function escapeSlack(str) {@@ -205,7 +213,8 @@ jobs:- name: Add checkmark reactionif: steps.slack_msg.outputs.found == 'true'continue-on-error: true # already_reacted is expected on multi-approval PRs- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: reactions.addtoken: ${{ secrets.SLACK_BOT_TOKEN }}@@ -218,7 +227,8 @@ jobs:- name: Update main messageif: steps.slack_msg.outputs.found == 'true'continue-on-error: true- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.updatetoken: ${{ secrets.SLACK_BOT_TOKEN }}diff --git a/.github/workflows/private-sync.yml b/.github/workflows/private-sync.ymlindex 156bd58bb7b7..2ab75c822613 100644--- a/.github/workflows/private-sync.yml+++ b/.github/workflows/private-sync.yml@@ -30,7 +30,8 @@ jobs:steps:- name: Get app tokenid: app-token- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ vars.GH_APP_POSTHOG_PRIVATE_SYNC_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_PRIVATE_SYNC_PRIVATE_KEY }}@@ -41,7 +42,8 @@ jobs:# persist-credentials:false so checkout's default-token auth header doesn't shadow# the app token we push with (posthog is public, so lazy blob fetches still work).- name: Checkout posthog- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:fetch-depth: 0filter: blob:nonediff --git a/.github/workflows/publish-quill-npm.yml b/.github/workflows/publish-quill-npm.ymlindex d2bb11a1fae4..c5c12f9d4bb9 100644--- a/.github/workflows/publish-quill-npm.yml+++ b/.github/workflows/publish-quill-npm.yml@@ -38,16 +38,19 @@ jobs:contents: readid-token: writesteps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]- name: Install pnpm- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: pnpm/[email protected]- name: Fix node-gyp permissionsrun: find ~/setup-pnpm -name gyp_main.py -exec chmod +x {} +- name: Set up Node.js- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:node-version-file: .nvmrcregistry-url: https://registry.npmjs.org@@ -199,7 +202,8 @@ jobs:- name: Notify Slackif: ${{ !cancelled() }}- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.postMessagetoken: ${{ secrets.SLACK_BOT_TOKEN }}diff --git a/.github/workflows/publish-replay-anonymizer-crate.yml b/.github/workflows/publish-replay-anonymizer-crate.ymlindex b14639d4059d..06d3fe0af5ce 100644--- a/.github/workflows/publish-replay-anonymizer-crate.yml+++ b/.github/workflows/publish-replay-anonymizer-crate.yml@@ -29,7 +29,8 @@ jobs:contents: readpull-requests: writesteps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:sparse-checkout: |.github/actions/paths-filter@@ -100,14 +101,16 @@ jobs:run:working-directory: ruststeps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:fetch-depth: 0filter: blob:none- name: Check if crate code changed in this pushid: changed-files- uses: step-security/changed-files@2e07db73e5ccdb319b9a6c7766bd46d39d304bad # v47.0.5+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: step-security/[email protected]with:files_yaml: |crate:@@ -155,7 +158,8 @@ jobs:# GitHub's own cache (fork-isolated, master-write-only below), so it stays.- name: Cache Rust dependenciesif: steps.version.outputs.publish-needed == 'true'- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: swatinem/[email protected]with:shared-key: 'v2-rust-nodejs'workspaces: rust@@ -164,7 +168,8 @@ jobs:- name: Authenticate with crates.ioif: steps.version.outputs.publish-needed == 'true'id: auth- uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe # v1.0.4+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: rust-lang/[email protected]- name: Publish to crates.ioif: steps.version.outputs.publish-needed == 'true'diff --git a/.github/workflows/renovate-dashboard-digest.yml b/.github/workflows/renovate-dashboard-digest.ymlindex 286687198e59..64d752b9537b 100644--- a/.github/workflows/renovate-dashboard-digest.yml+++ b/.github/workflows/renovate-dashboard-digest.yml@@ -35,11 +35,13 @@ jobs:# Keep in sync with enabledManagers in .github/renovate.json5.manager: [npm, github-actions, cargo, pep621, gomod, custom.regex]steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:persist-credentials: false- - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:node-version-file: .nvmrc@@ -53,7 +55,8 @@ jobs:npm_config_ignore_scripts: 'true'run: npx --yes [email protected] --platform=local --dry-run=lookup- - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:name: renovate-report-${{ matrix.manager }}path: ${{ runner.temp }}/renovate-report.json@@ -65,7 +68,8 @@ jobs:runs-on: ubuntu-24.04timeout-minutes: 5steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:persist-credentials: falsesparse-checkout: |@@ -74,11 +78,13 @@ jobs:.nvmrcsparse-checkout-cone-mode: false- - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:node-version-file: .nvmrc- - uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:pattern: renovate-report-*path: ${{ runner.temp }}/renovate-reportsdiff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.ymlindex 05d26de2f13d..9c9913f369a2 100644--- a/.github/workflows/shellcheck.yml+++ b/.github/workflows/shellcheck.yml@@ -12,7 +12,8 @@ jobs:timeout-minutes: 5name: shellchecksteps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:# Only these paths exist on disk, so a new step must list the files it reads.sparse-checkout: |diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yamlindex 399ac124f725..e03fb1b7df33 100644--- a/.github/workflows/stale.yaml+++ b/.github/workflows/stale.yaml@@ -48,12 +48,14 @@ jobs:# were unstaled mid-cycle.- name: Get app tokenid: app-token- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ vars.GH_APP_POSTHOG_SCHEDULED_ACTIONS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_SCHEDULED_ACTIONS_PRIVATE_KEY }}- - uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:repo-token: ${{ steps.app-token.outputs.token }}days-before-issue-stale: 730@@ -82,7 +84,8 @@ jobs:steps:- name: Get app tokenid: app-token- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ vars.GH_APP_POSTHOG_SCHEDULED_ACTIONS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_SCHEDULED_ACTIONS_PRIVATE_KEY }}@@ -98,7 +101,8 @@ jobs:# by Trunk itself and must not be touched mid-merge.- name: Remove stale branchesid: stale-branches- uses: fpicalausa/remove-stale-branches@9b829bc2975ade0c61e64e9613def53ec0732440 # v2.6.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: fpicalausa/[email protected]with:github-token: ${{ steps.app-token.outputs.token }}dry-run: truediff --git a/.github/workflows/terragrunt-posthog.yaml b/.github/workflows/terragrunt-posthog.yamlindex 2f495e206d1c..71e357ad8ce1 100644--- a/.github/workflows/terragrunt-posthog.yaml+++ b/.github/workflows/terragrunt-posthog.yaml@@ -29,7 +29,8 @@ jobs:matrix_data: ${{ steps.changes.outputs.matrix_data }}steps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:sparse-checkout: terraform@@ -60,7 +61,8 @@ jobs:- name: Delete old PR commentsif: github.event_name == 'pull_request'- uses: maheshrayas/action-pr-comment-delete@06d7254b4aeba4491a66a7e0f755b107f7373ccd # v3.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: maheshrayas/[email protected]with:github_token: '${{ secrets.GITHUB_TOKEN }}'org: PostHog@@ -88,10 +90,12 @@ jobs:POSTHOG_PROVIDER_TF_STATE_REGION: ${{ secrets.POSTHOG_PROVIDER_TF_STATE_REGION }}steps:- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]- name: Configure AWS Credentials- uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: aws-actions/[email protected]with:aws-region: ${{ secrets.POSTHOG_PROVIDER_TF_STATE_REGION }}role-to-assume: ${{ secrets.POSTHOG_PROVIDER_TF_AWS_ROLE_ARN }}@@ -99,7 +103,8 @@ jobs:- name: Plan Terraform ${{ matrix.working_dir }}if: github.ref != 'refs/heads/master'- uses: datadrivers/terragrunt-action@aa701e2420811b84e587c5c11472ffc41907f81e # v4.4.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: datadrivers/[email protected]env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}with:@@ -120,7 +125,8 @@ jobs:- name: Apply Terraform ${{ matrix.working_dir }}if: github.ref == 'refs/heads/master'- uses: datadrivers/terragrunt-action@aa701e2420811b84e587c5c11472ffc41907f81e # v4.4.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: datadrivers/[email protected]env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}with:diff --git a/.github/workflows/update-ai-costs-stale-alert.yml b/.github/workflows/update-ai-costs-stale-alert.ymlindex 3e97b52a4364..010f48f8debf 100644--- a/.github/workflows/update-ai-costs-stale-alert.yml+++ b/.github/workflows/update-ai-costs-stale-alert.yml@@ -23,7 +23,8 @@ jobs:timeout-minutes: 5steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:persist-credentials: falsesparse-checkout: .github/scripts/update-ai-costs-stale-alert.js@@ -31,7 +32,8 @@ jobs:- name: Check the open LLM cost PRid: check- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:script: |const checkStaleCostPr = require('./.github/scripts/update-ai-costs-stale-alert.js')@@ -42,7 +44,8 @@ jobs:- name: Post to Slackif: steps.check.outputs.text != ''- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.postMessagetoken: ${{ secrets.SLACK_DEVEX_BOT_TOKEN }}diff --git a/.github/workflows/update-bot-ips.yml b/.github/workflows/update-bot-ips.ymlindex ab548a65a958..e252c60586b5 100644--- a/.github/workflows/update-bot-ips.yml+++ b/.github/workflows/update-bot-ips.yml@@ -17,13 +17,15 @@ jobs:steps:- name: Get app tokenid: app-token- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ vars.GH_APP_POSTHOG_SCHEDULED_ACTIONS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_SCHEDULED_ACTIONS_PRIVATE_KEY }}- name: Checkout repository- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:token: ${{ steps.app-token.outputs.token }}sparse-checkout: |@@ -81,7 +83,8 @@ jobs:- name: Commit via GitHub API (signed)if: steps.check-changes.outputs.changes == 'true'- uses: planetscale/ghcommit-action@25309d8005ac7c3bcd61d3fe19b69e0fe47dbdde # v0.2.20+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: planetscale/[email protected]with:commit_message: 'Update bot IPs from GoodBots repository'repo: ${{ github.repository }}diff --git a/.github/workflows/update-sandbox-agent-version.yml b/.github/workflows/update-sandbox-agent-version.ymlindex 00e2c287b3e7..15b9a1335004 100644--- a/.github/workflows/update-sandbox-agent-version.yml+++ b/.github/workflows/update-sandbox-agent-version.yml@@ -63,7 +63,8 @@ jobs:- name: Get app tokenid: app-token- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ vars.GH_APP_POSTHOG_SCHEDULED_ACTIONS_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_SCHEDULED_ACTIONS_PRIVATE_KEY }}@@ -71,7 +72,8 @@ jobs:permission-pull-requests: write- name: Checkout repository- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:token: ${{ steps.app-token.outputs.token }}sparse-checkout: |@@ -281,7 +283,8 @@ jobs:- name: Commit via GitHub API (signed)id: commitif: steps.state.outputs.action == 'bump'- uses: planetscale/ghcommit-action@25309d8005ac7c3bcd61d3fe19b69e0fe47dbdde # v0.2.20+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: planetscale/[email protected]with:commit_message: 'chore(tasks): bump sandbox @posthog/agent to ${{ steps.resolve.outputs.latest }}'repo: ${{ github.repository }}@@ -339,7 +342,8 @@ jobs:id: slack-opened-replyif: steps.state.outputs.action == 'bump' && inputs.slack_thread_ts != ''continue-on-error: true- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.postMessagetoken: ${{ secrets.SLACK_DEVEX_BOT_TOKEN }}@@ -355,7 +359,8 @@ jobs:id: slack-opened-parentif: steps.state.outputs.action == 'bump' && inputs.slack_thread_ts == ''continue-on-error: true- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.postMessagetoken: ${{ secrets.SLACK_DEVEX_BOT_TOKEN }}@@ -380,7 +385,8 @@ jobs:- name: Cache the Slack thread for the merge noticeif: github.ref == 'refs/heads/master' && steps.state.outputs.action == 'bump' && steps.thread.outputs.ts != ''continue-on-error: true- uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/cache/[email protected]with:path: .sandbox-agent-slack-threadkey: sandbox-agent-slack-${{ steps.resolve.outputs.latest }}@@ -476,7 +482,8 @@ jobs:id: nightly-failureif: ${{ !cancelled() && github.event_name == 'schedule' && contains(fromJSON('["noop", "declined", "current"]'), steps.state.outputs.action) && steps.nightly-smoke.outputs.result != 'pass' && steps.nightly-smoke.outputs.result != 'unavailable' }}continue-on-error: true- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.postMessagetoken: ${{ secrets.SLACK_BOT_TOKEN }}@@ -497,7 +504,8 @@ jobs:- name: Get release approval tokenid: releaser-tokenif: steps.state.outputs.action == 'bump'- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: actions/[email protected]with:client-id: ${{ vars.GH_APP_POSTHOG_RELEASER_APP_ID }}private-key: ${{ secrets.GH_APP_POSTHOG_RELEASER_PRIVATE_KEY }}@@ -574,7 +582,8 @@ jobs:- name: Post the outcome in the Slack threadif: ${{ !cancelled() && steps.outcome.outputs.text != '' }}continue-on-error: true- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.postMessagetoken: ${{ secrets.SLACK_DEVEX_BOT_TOKEN }}@@ -647,7 +656,8 @@ jobs:- name: Login to ghcr.ioif: steps.merge.outputs.state == 'merged'- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: docker/[email protected]with:registry: ghcr.iousername: ${{ github.actor }}@@ -792,7 +802,8 @@ jobs:- name: Post the rollout in the release threadif: ${{ !cancelled() && steps.outcome.outputs.text != '' && needs.update-sandbox-agent-version.outputs.thread_ts != '' }}continue-on-error: true- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.postMessagetoken: ${{ secrets.SLACK_DEVEX_BOT_TOKEN }}@@ -806,7 +817,8 @@ jobs:- name: Post the rollout as a new threadif: ${{ !cancelled() && steps.outcome.outputs.text != '' && needs.update-sandbox-agent-version.outputs.thread_ts == '' }}continue-on-error: true- uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ uses: slackapi/[email protected]with:method: chat.postMessagetoken: ${{ secrets.SLACK_DEVEX_BOT_TOKEN }}diff --git a/.github/workflows/weekly-flaky-report.yml b/.github/workflows/weekly-flaky-report.ymlindex f4a2c3d0538a..3c4a3c6177e9 100644--- a/.github/workflows/weekly-flaky-report.yml+++ b/.github/workflows/weekly-flaky-report.yml@@ -46,7 +46,8 @@ jobs:github.repository == 'PostHog/posthog' &&(github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/master')steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:sparse-checkout: |.github/scripts/weekly-flaky-report.mjs@@ -58,7 +59,8 @@ jobs:**/product.yamlsparse-checkout-cone-mode: false- - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:node-version-file: .nvmrcdiff --git a/.github/workflows/weekly-mcp-tool-health-report.yml b/.github/workflows/weekly-mcp-tool-health-report.ymlindex f7ab74dc21a4..379112b80698 100644--- a/.github/workflows/weekly-mcp-tool-health-report.yml+++ b/.github/workflows/weekly-mcp-tool-health-report.yml@@ -37,7 +37,8 @@ jobs:github.repository == 'PostHog/posthog' &&(github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/master')steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:sparse-checkout: |.github/scripts/weekly-mcp-tool-health-report.mjs@@ -52,7 +53,8 @@ jobs:services/mcp/src/tools/index.tssparse-checkout-cone-mode: false- - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:node-version-file: .nvmrcdiff --git a/.github/workflows/weekly-slow-tests-report.yml b/.github/workflows/weekly-slow-tests-report.ymlindex cdca49aa673b..a3153e39b75b 100644--- a/.github/workflows/weekly-slow-tests-report.yml+++ b/.github/workflows/weekly-slow-tests-report.yml@@ -42,7 +42,8 @@ jobs:github.repository == 'PostHog/posthog' &&(github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/master')steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:sparse-checkout: |.github/scripts/weekly-slow-tests-report.mjs@@ -54,7 +55,8 @@ jobs:**/product.yamlsparse-checkout-cone-mode: false- - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0+ # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag+ - uses: actions/[email protected]with:node-version-file: .nvmrc