do-not-track-polyfill
π΅οΈββοΈ Do Not Track Polyfill
Section titled βπ΅οΈββοΈ Do Not Track PolyfillβA simple GitHub Action that conditionally disables telemetry by setting opt-out environment variables for several popular vendors. It ensures your workflow respects privacy-focused settings by preemptively opting out of analytics, usage reporting, and tracking features β if the relevant tools support them.
β¨ Features
Section titled ββ¨ Featuresβ- Adds common telemetry-related environment variables
(e.g.,
ASTRO_TELEMETRY_DISABLED, etc.) - Helps opt out of analytics, error reporting, and tracking
π Usage
Section titled βπ UsageβAdd the action to your workflow before any steps that might invoke telemetry aware tools
example-do-not-track-polyfill.yml
name: do-not-track-polyfill exampleon: workflow_dispatch:jobs: example: runs-on: ubuntu-latest if: ${{github.event.workflow_run.conclusion != 'success'}} steps: - uses: stephansama/actions/do-not-track-polyfill@v1π± What It Does
Section titled βπ± What It DoesβThis action conditionally sets additional environment variables to disable telemetry for popular platforms such as:
- AstroJS
- Storybook
- Vercel
You can also customize which flags are set (see below).
π§° actions
Section titled βπ§° actionsβ| π·οΈ Name | Required | βοΈ Default | π Description |
|---|---|---|---|
| additional | additional | additional | Additional telemetry providers to block |
- uses: stephansama/actions/do-not-track-polyfill-action@v1 with: additional: | TEST=https://test.comπ Why Use This?
Section titled βπ Why Use This?β- Allows you to turn on and off
- Prevents telemetry from bloating CI logs or triggering network requests
Modules
Section titled βModulesβ| Module | Description |
|---|---|
|
β |
|
|
β |