Repository navigation
fix(audit): remove the audit ledger when the run settles (#1336) #504
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Smoke Test | |
| # Runs the packed wizard end-to-end against the real PostHog API. Failed 100 | |
| # runs straight (2026-06-30 to 2026-08-20) with a 403: no project id was passed, | |
| # so the wizard fell back to the key's default team and was denied. | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| inputs: | |
| app: | |
| description: 'App to test (e.g. basic-integration/next-js/15-app-router-todo)' | |
| required: false | |
| default: 'basic-integration/next-js/15-app-router-todo' | |
| type: string | |
| permissions: | |
| contents: read | |
| jobs: | |
| smoke-test: | |
| name: Smoke Test (${{ inputs.app || 'basic-integration/next-js/15-app-router-todo' }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout wizard | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Checkout wizard-workbench | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| repository: PostHog/wizard-workbench | |
| path: wizard-workbench | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b # v2.4.1 | |
| with: | |
| version: 10.34.5 | |
| run_install: false | |
| - name: Set up Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version-file: 'package.json' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install sandbox dependencies | |
| run: sudo apt-get update && sudo apt-get install -y bubblewrap socat | |
| # An unset secret is indistinguishable from the old bug: the wizard just | |
| # falls back to the default team and 403s. Fail with the reason instead. | |
| - name: Check required secrets | |
| env: | |
| PROJECT_ID: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_TARGET_PROJECT_ID }} | |
| API_KEY: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_POSTHOG_PERSONAL_KEY }} | |
| run: | | |
| [ -n "$API_KEY" ] || { echo "::error::GH_APP_POSTHOG_WIZARD_CI_BOT_POSTHOG_PERSONAL_KEY is not set"; exit 1; } | |
| [ -n "$PROJECT_ID" ] || { echo "::error::GH_APP_POSTHOG_WIZARD_CI_BOT_TARGET_PROJECT_ID is not set"; exit 1; } | |
| - name: Write gateway token | |
| run: printf '%s' "$GATEWAY_TOKEN" > "$RUNNER_TEMP/gateway-token" | |
| env: | |
| GATEWAY_TOKEN: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_POSTHOG_GATEWAY_TOKEN }} | |
| - name: Run smoke test | |
| env: | |
| POSTHOG_PERSONAL_API_KEY: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_POSTHOG_PERSONAL_KEY }} | |
| # Required — without it the wizard falls back to the key's default | |
| # team and 403s. Same secret name wizard-workbench's wizard-ci.yml uses. | |
| POSTHOG_WIZARD_PROJECT_ID: ${{ secrets.GH_APP_POSTHOG_WIZARD_CI_BOT_TARGET_PROJECT_ID }} | |
| POSTHOG_WIZARD_REGION: us | |
| WIZARD_CI_GATEWAY_TOKEN_FILE: ${{ runner.temp }}/gateway-token | |
| WIZARD_WORKBENCH_ROOT: ${{ github.workspace }}/wizard-workbench | |
| SMOKE_TEST_APP: ${{ inputs.app || 'basic-integration/next-js/15-app-router-todo' }} | |
| run: ./scripts/smoke-test-ci.sh "$SMOKE_TEST_APP" | |
| - name: Upload artifacts | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: smoke-test-artifacts | |
| path: /tmp/wizard-smoke.*/** | |
| if-no-files-found: ignore |