From ed6f8af9580eebb09830c580a836be013e54fb39 Mon Sep 17 00:00:00 2001 From: Marta Paciorkowska Date: Thu, 30 Apr 2026 10:31:40 +0200 Subject: [PATCH 1/2] feat(helm-deploy): Send action analytics to PostHog --- .github/actions/helm-deploy/action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/actions/helm-deploy/action.yml b/.github/actions/helm-deploy/action.yml index 1dc1cc3..e5a44ee 100644 --- a/.github/actions/helm-deploy/action.yml +++ b/.github/actions/helm-deploy/action.yml @@ -109,3 +109,12 @@ runs: exit 1 fi fi + - id: send-analytics + name: Send analytics to PostHog + uses: entur/gha-meta/.github/actions/posthog@e27fa4579248d4792b933ef0d0f240346676a25d # 1.8.0 + if: always() + with: + api_key: "phc_orBSekQBqvfr25mZreA9k5Yq5oYGh3XYKpW9ocuffFYY" + gha_repository: entur/gha-helm # This must be hardcoded to the repository where the workflow is defined. + workflow_inputs: ${{ toJSON(inputs) }} + workflow_name: helm-deploy From 2bf30da29ec3516c285cf1097001fb2e985efa3f Mon Sep 17 00:00:00 2001 From: Marta Paciorkowska Date: Thu, 30 Apr 2026 12:14:46 +0200 Subject: [PATCH 2/2] store api key in org var to rotate easier --- .github/actions/helm-deploy/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/helm-deploy/action.yml b/.github/actions/helm-deploy/action.yml index e5a44ee..397ac2d 100644 --- a/.github/actions/helm-deploy/action.yml +++ b/.github/actions/helm-deploy/action.yml @@ -114,7 +114,7 @@ runs: uses: entur/gha-meta/.github/actions/posthog@e27fa4579248d4792b933ef0d0f240346676a25d # 1.8.0 if: always() with: - api_key: "phc_orBSekQBqvfr25mZreA9k5Yq5oYGh3XYKpW9ocuffFYY" + api_key: ${{ vars.ENTUR_PLATTFORM_POSTHOG_API }} gha_repository: entur/gha-helm # This must be hardcoded to the repository where the workflow is defined. workflow_inputs: ${{ toJSON(inputs) }} workflow_name: helm-deploy