---
title: GitHub audit runner
published: true
index: 6
tier: free
---

# GitHub audit runner

Run the Audit in a private GitHub repository using your Claude Code subscription. The action ships inside the pinned Store Skills release. It retrieves the active Check catalog, runs Claude with an anonymous browser on a GitHub-hosted Linux runner, and validates that the report covers the catalog. Download the report, viewer context and provenance from the **comprehensive-shopify-audit** artifact. If your Store Skills token grants save access, the job also saves a copy to your account. Audit findings appear in the report. Incomplete or invalid reports fail the job.

## Setup

1. Sign in to your Store Skills account on Glue. From the private repository that will run the audit, run `glue init-ci brickspacelab/storeskills --site https://glue.fast`. Choose a published release that supports Claude. The generated workflow for this release requests `CLAUDE_CODE_OAUTH_TOKEN`.
2. On your own computer, run `claude setup-token` and sign in to your Claude Pro or Max account. In the private repository, open **Settings → Secrets and variables → Actions → New repository secret**. Name it `CLAUDE_CODE_OAUTH_TOKEN` and paste the generated token as its value. The runner uses Anthropic’s official Claude Code action. Runs count toward the subscriber’s Claude Code usage limits. If you want costs capped at the subscription price, keep extra usage disabled in Claude. GitHub Actions minutes and the Store Skills audit allowance apply separately. [Anthropic’s subscription token setup](https://github.com/anthropics/claude-code-action/blob/main/docs/setup.md) · [How Claude Code usage is counted](https://support.claude.com/en/articles/17154008-monthly-api-credits-for-max-ultra-and-team-plans)
3. Follow the installer instructions to set `GLUE_INSTALL_TOKEN` and `GLUE_CUSTOMER_TOKEN` as repository secrets. For automatic account saves, authorize the CI device with `npx glue-fast login --site https://glue.fast --save storeskills/run-store-skills`. From the private repository, run `npx glue-fast token --site https://glue.fast | gh secret set GLUE_CUSTOMER_TOKEN` to store the login without printing its token. A read-only token keeps results in GitHub.
4. Set the repository variable `STORE_SKILLS_STOREFRONT_URL` to a public HTTPS storefront or deployed preview. In the generated action’s `with` block, keep the Claude secret binding and add the storefront:

   ```yaml
   claude-code-oauth-token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
   storefront-url: ${{ vars.STORE_SKILLS_STOREFRONT_URL }}
   ```

5. Review and commit both the generated workflow and CLI helper. The workflow installs the pinned skill before invoking `./.agents/skills/comprehensive-shopify-audit/ci`. It runs for same-repository pull requests and supports manual dispatch after reaching the default branch. Use a deployed preview URL when auditing a PR’s storefront changes and verify which revision it serves.

**Upgrading an existing workflow.** A workflow that asks only for `OPENAI_API_KEY` may still pin a Codex-only release. Select a Claude-capable release and regenerate the workflow and helper on a branch. The CLI preserves existing files, so move the old copies aside first. Compare the generated files, keep your storefront URL and triggers, and run the replacement manually before retiring the old workflow. Changing the secret name alone leaves the old runner in place.

Each workflow run uses one audit from the signed-in customer’s allowance. Re-running the same job for the same storefront reuses that audit. If Store Skills cannot confirm the account save, the job summary points to the validated workflow artifact and the audit keeps its successful status.

The action needs read-only repository permissions. Browser evidence uses anonymous navigation, viewport changes, accessibility snapshots, and console/request observations. Authenticated access, analytics, screenshots, cart writes and checkout are unavailable. Affected Checks record the specific limitation. The catalog and post-validation save steps use the Glue customer credential. The Claude step authenticates directly with Anthropic from your runner.

**Optional Codex setup.** To run Codex intentionally, set `model-provider: codex` and supply `openai-api-key` from your repository’s `OPENAI_API_KEY` secret in place of the Claude input. Model usage is billed by your API provider. For a trusted compatible Responses API, also supply its `responses-api-endpoint` and use that provider’s credential. A Claude authentication or quota error stops the run.

A protected Glue deployment can use `vercel-protection-bypass` for catalog access. The earlier skill installation also needs the deployment’s protection header.

## Maintain and validate

The runtime and locked dependencies were moved from `BrickspaceLab/storeskills-action` at commit `8fd97b968d85e23dc798996cbf89b9433cd335b6`. Keep the anonymous browser policy, private/same-repository restrictions, secret isolation, report validation and third-party action pins intact. The runner is opt-in consumer CI code; normal skill installation and local audits do not execute it or install its dependencies.

From this directory on Node 24:

```sh
npm ci --ignore-scripts
node node_modules/playwright/cli.js install chromium --only-shell
npm test
```

The tests exercise provider selection, credential isolation and report handling with fixtures. To check a particular subscriber’s setup, run the workflow manually in that customer’s private repository.
