Skip to the content
Howdah

being built · no release yet

Search

Skip the list of pages

Environment variables

The variables the gate reads. Most are set by your CI; the ones you set yourself are credentials, webhook URLs and the store's location for deliver and fetch.

What the gate reads

VariableWhat it doesDecided in
CI, or Azure Pipelines' TF_BUILDSet: a tree with no floor stops the run, baseline.improvement applies, and on the default branch the badge and trend are written. Unset: a full run writes missing floors and raises improved ones0003, 0009
GITHUB_ACTIONS, GITLAB_CI, BUILDKITE, CIRCLECI, TF_BUILD, BITBUCKET_BUILD_NUMBER, BUILD_TAGChoose the CI plan, and under GitHub Actions the annotations and step summary0006, 0024
SHARD, CI_NODE_INDEX, CI_NODE_TOTAL, BUILDKITE_PARALLEL_JOB, BUILDKITE_PARALLEL_JOB_COUNT, CIRCLE_NODE_INDEX, CIRCLE_NODE_TOTAL, BITBUCKET_PARALLEL_STEP, BITBUCKET_PARALLEL_STEP_COUNT, CI_JOB_NAMEWhich shard a job is. GitLab's child pipeline finds the plan through PARENT_PIPELINE_ID, which the gate writes into the child pipeline and never reads0006
GITHUB_REF, GITHUB_EVENT_NAME, GITHUB_EVENT_PATH, CI_COMMIT_REF_NAME, CI_MERGE_REQUEST_IID, CI_DEFAULT_BRANCH, BUILDKITE_BRANCH, BUILDKITE_PULL_REQUEST, BUILDKITE_PIPELINE_DEFAULT_BRANCH, CIRCLE_BRANCH, CIRCLE_PULL_REQUEST, BUILD_SOURCEBRANCH, BUILD_REASON, SYSTEM_PULLREQUEST_PULLREQUESTNUMBER, SYSTEM_PULLREQUEST_PULLREQUESTID, BITBUCKET_BRANCH, BITBUCKET_PR_ID, BITBUCKET_TAG, BRANCH_NAME, CHANGE_ID, CHANGE_BRANCH, TAG_NAME, CI_COMMIT_TAG, BUILDKITE_TAG, CIRCLE_TAGThe run's ref, whether it is a pull request, and the default branch0006, 0024
GITHUB_BASE_REF, CI_MERGE_REQUEST_TARGET_BRANCH_NAME, SYSTEM_PULLREQUEST_TARGETBRANCH, BITBUCKET_PR_DESTINATION_BRANCH, CHANGE_TARGET, BUILDKITE_PULL_REQUEST_BASE_BRANCHThe branch a pull request merges into, which its run is read against: its baseline, its proofs and what it changed0050
GITHUB_WORKFLOW_REF, CI_CONFIG_PATHWhich CI definition runs the gate, for reach and the proof key0005, 0007
GITHUB_OUTPUT, GITHUB_STEP_SUMMARYWhere the GitHub plan and the step summary are written0006, 0009
GITHUB_RUN_ID, GITHUB_RUN_ATTEMPT, CI_PIPELINE_ID, BUILDKITE_BUILD_ID, CIRCLE_WORKFLOW_ID, BUILD_BUILDID, BITBUCKET_BUILD_NUMBER, BUILD_TAGThe run a proof names0007, 0024
GITHUB_REPOSITORY, GITHUB_SHA, GITHUB_SERVER_URL, GITHUB_WORKFLOW, GITHUB_API_URLThe repository, the commit, the server, the workflow and the API a GitHub Actions run names: its links, the comment, the badge's commit, the alerts and trace, doctor --online and dashboard0009, 0016, 0024
CI_PROJECT_PATH, CI_COMMIT_SHA, CI_PIPELINE_URL, CI_PIPELINE_NAME, BUILDKITE_ORGANIZATION_SLUG, BUILDKITE_PIPELINE_SLUG, BUILDKITE_COMMIT, BUILDKITE_BUILD_URL, BUILDKITE_PIPELINE_NAME, CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME, CIRCLE_SHA1, CIRCLE_BUILD_URL, CIRCLE_JOB, BUILD_REPOSITORY_NAME, BUILD_SOURCEVERSION, SYSTEM_COLLECTIONURI, SYSTEM_TEAMPROJECT, BUILD_DEFINITIONNAME, BITBUCKET_REPO_FULL_NAME, BITBUCKET_COMMIT, GIT_URL, GIT_COMMIT, BUILD_URL, JOB_NAMEThe repository, the commit, the link to the run and the pipeline a run names on GitLab, Buildkite, CircleCI, Azure DevOps, Bitbucket and Jenkins, for the alerts and the trace; CI_COMMIT_SHA, BUILDKITE_COMMIT and CIRCLE_SHA1 also give the badge's commit0016, 0024
GITHUB_TOKENLets the sticky PR comment be posted, and the GitHub change source prove which pull request's run passed0005, 0009
MUTATION_GATE_GITLAB_TOKENThe project access token, with the scope api, the gitlab-comment note is written with, unless with.tokenEnv names another variable; deliver reads it under GitLab CI0024, 0048
MUTATION_GATE_BITBUCKET_TOKENThe repository access token, with pullrequest:write alone, the bitbucket-comment comment is written with, unless with.tokenEnv names another variable; deliver reads it under Bitbucket Pipelines0024, 0048
SYSTEM_ACCESSTOKENThe token the azure-comment thread is written with, unless with.tokenEnv names another variable; deliver reads it under Azure Pipelines. A pipeline maps it from $(System.AccessToken), whose identity needs Contribute to pull requests0102
SYSTEM_COLLECTIONURI, SYSTEM_TEAMPROJECT, SYSTEM_PULLREQUEST_PULLREQUESTID, SYSTEM_PULLREQUEST_ISFORK, BUILD_REPOSITORY_ID, BUILD_REPOSITORY_NAMEThe pull request the azure-comment thread goes to, and whether its build came from a fork, which writes none0102
AGENT_TEMPDIRECTORYWhere azure-summary writes the file it attaches0102
BUILDKITE_PULL_REQUESTWhether a build is a pull request's, for comment.on under buildkite-annotation0102
CI_API_V4_URL, CI_PROJECT_ID, CI_PROJECT_URL, CI_PIPELINE_URL, CI_MERGE_REQUEST_PROJECT_ID, CI_MERGE_REQUEST_PROJECT_URL, CI_MERGE_REQUEST_SOURCE_PROJECT_ID, MUTATION_GATE_MERGE_REQUEST_IIDWhere the gitlab-comment note goes: GitLab's API, the merge request's project, and its IID, which the trigger job hands a child pipeline in MUTATION_GATE_MERGE_REQUEST_IID; a source project other than the target is a fork's pipeline, which writes no note0024
BITBUCKET_WORKSPACE, BITBUCKET_REPO_SLUG, BITBUCKET_COMMITThe repository the bitbucket-comment comment and the bitbucket-insights report go to, and the commit the report is on0024
MUTATION_GATE_DELIVERYSet by the GitLab comment jobs for the template's .mutation-gate-comment: the delivery deliver sends; not for users0024
GH_TOKENThe token doctor --online asks GitHub with where GITHUB_TOKEN is not set0017
PRE_COMMIT_FROM_REF, PRE_COMMIT_TO_REF, PRE_COMMIT_LOCAL_BRANCH, PRE_COMMIT_REMOTE_BRANCHThe commits being pushed, where the pre-commit framework runs pre-push and git's lines are not handed over0024
COMPOSER_VENDOR_DIR, COMPOSER_BIN_DIRWhere Composer installed the project's packages and their scripts, where the project moves them0004
XDEBUG_MODEWhich Xdebug modes are on, which doctor reports where it slows the tests0017
PHP_INI_SCAN_DIR, PATHKept and extended for the processes the Pest runner starts: the directory its memory cap is added to, and where its binaries are found0004
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_ROLE_ARNThe S3 proof store's credentials, and its only ones: no ~/.aws file, instance, container or web identity role is read. With AWS_ROLE_ARN set, those keys assume that role0007
GOOGLE_APPLICATION_CREDENTIALSThe external-account credentials file google-github-actions/auth writes, which the gcs store exchanges the CI's token through, impersonating the service account it names; only its file and url credential sources are read, and a file holding a service-account key or any other long-lived credential is refused (exit 2)0028
MUTATION_GATE_GCS_TOKEN, MUTATION_GATE_AZURE_TOKENA ready bearer token for the gcs or azure store, which a CI with a federation of its own hands over0028
ACTIONS_ID_TOKEN_REQUEST_URL, ACTIONS_ID_TOKEN_REQUEST_TOKEN, AZURE_TENANT_ID, AZURE_CLIENT_IDThe azure store's federation: GitHub's OIDC token, asked for the audience api://AzureADTokenExchange, exchanged at Microsoft Entra ID for the tenant and client azure/login reads0028
ACTIONS_ID_TOKEN_REQUEST_URL, ACTIONS_ID_TOKEN_REQUEST_TOKEN, MUTATION_GATE_GCS_PROVIDER, MUTATION_GATE_GCS_SERVICE_ACCOUNTThe gcs store's federation on GitHub Actions: GitHub's OIDC token, asked for the provider's default audience, exchanged at sts.googleapis.com through the workload identity provider projects/<number>/locations/global/workloadIdentityPools/<pool>/providers/<id>, then for the token of the service account <name>@<project>.iam.gserviceaccount.com at iamcredentials.googleapis.com; any other provider or service account is refused (exit 2). It goes before GOOGLE_APPLICATION_CREDENTIALS where both are set0028
MUTATION_GATE_SLACK_URL, MUTATION_GATE_DISCORD_URL, MUTATION_GATE_WEBHOOK_URLThe webhook URLs of the slack, discord and webhook reporters, unless their with.urlEnv names other variables0016
MUTATION_GATE_WEBHOOK_SECRETSigns each webhook request, with the time it was sent, as X-Mutation-Gate-Signature, unless with.secretEnv names another variable0016
OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_HEADERS, OTEL_SERVICE_NAME, OTEL_RESOURCE_ATTRIBUTESWhere and how the otlp reporter sends0016
MUTATION_GATE_RESULTSSet by the Pest adapter for its own plugin, by the PHPUnit, PhpSpec and Codeception runners for their extensions, and by the Testo runner for its plugin; not for users0004, 0023, 0027
MUTATION_GATE_PRUNEDSet by the Pest and Infection adapters for the lines pest:patch and infection:patch write: the file listing the mutators a run leaves out of the files it prunes them in; not for users0025
MUTATION_GATE_MUTATORSSet by the Pest adapter for its own plugin: the file of bridges to the registered mutators the config turns on; not for users0021
MUTATION_GATE_TIMED_TESTSSet by the Pest adapter for its own plugin in a coverage run: the file each process appends every test it finished to, with how long it took, so the map knows a test that ran no line; not for users0004, 0037
MUTATION_GATE_SOURCE_PINNEDSet by the patched Pest plugin in a mutant's own run where its mutator is pinned by source, so the run serves the mutated file through pest-plugin-mutate's wrapper; not for users0004, 0021
MUTATION_GATE_MUTANT_FLOORSet by the Infection adapter for every Infection run, for the lines infection:patch writes into Infection: the least seconds one mutant may run; not for users0004
MUTATION_GATE_MUTANT, MUTATION_GATE_MUTATED, MUTATION_GATE_GUARDSet by the PHPUnit, PhpSpec, Codeception and Testo runners for each mutant's run: the file its override serves the mutated file in place of, the mutated file, and where the override and the extension or plugin say what they served; not for users0023
MUTATION_GATE_SHARED_COVERAGE, MUTATION_GATE_SUITE_SECONDS, MUTATION_GATE_MUTANT_FLOOR, MUTATION_GATE_MUTANT_CAP, MUTATION_GATE_CANARY, MUTATION_GATE_ONLY, MUTATION_GATE_VERDICTSSet by the Pest adapter for the lines pest:patch writes into pest-plugin-mutate: the planning job's coverage map, its suite's seconds, the least and the most seconds one mutant may run, the canary group, the file listing the only mutants a run again makes, and the file of the gate's verdicts on the mutants static analysis checks before their tests; not for users0004, 0020
MUTATION_GATE_MUTANT_MULTIPLESet by the Pest and Infection adapters for the lines pest:patch and infection:patch write: how many times its covering tests' own time one mutant may run, timeouts.multiple; not for users0090
MUTATION_GATE_TEST_MULTIPLE, MUTATION_GATE_TEST_FLOORSet by the Pest adapter for the lines pest:patch writes: how many times its own time, and the least seconds, one test of a mutant's run may run, timeouts.perTest and timeouts.testFloor; not for users0090
MUTATION_GATE_SCHEMATA, MUTATION_GATE_SCHEMA, MUTATION_GATE_SCHEMA_ONSet by the Pest adapter for the lines pest:patch writes, where a run compiles each file's mutants into one schema: that it does, the schema a mutant's own run serves in its file's place, and the id of the mutant the schema's switch puts in force; not for users0091
MUTATION_GATE_SOURCESet by the GitLab template's trigger job for the child pipeline: the parent pipeline's own CI_PIPELINE_SOURCE, since a child pipeline's is always parent_pipeline; not for users0024
MUTATION_GATE_WARMSet by the Pest adapter for a patched run: the directory its warm workers share, where each mutant's run forks from them; not for users0023
MUTATION_GATE_PEAKSet by the Pest adapter for each unmutated control: the file a warm worker's client writes the most memory its forked run held to, which the control's launcher cannot count; not for users0070
MUTATION_GATE_SERVEDSet by a daemon of serve in the child that runs a request, so the command it runs is never handed to a daemon again; not for users0078
PEST_MUTATION_TESTING, PEST_MUTATION_FILESet by Pest's mutation plugin in a mutant's run, and read by the gate's own plugin there; not for users0004
MUTATION_GATE_NAMES, MUTATION_GATE_ORDER, MUTATION_GATE_ORDER_OF, MUTATION_GATE_STOP_AFTER, MUTATION_GATE_NARROW, MUTATION_GATE_KILL_MATRIXSet by the Pest adapter for its own plugin: the file it writes each test's name to, the directory it reads each mutant's order from, the mutated copy whose order a replay of a kill's own run takes, how many tests that replay runs before it stops, whether a run loads only the test files each mutant's covering tests need, and how much of the kill matrix a run records; not for users0004, 0013, 0014
MUTATION_GATE_MUTANT_START_UP, MUTATION_GATE_TIGHTER_FLOOR, MUTATION_GATE_TIGHTER_MUTATORSSet by the Pest and Infection adapters for the lines their patches write: how long a run of no test took to start on the runner's machine, which each mutant's limit is laid on, and the lower floor of the silence limit and the mutators timeouts.tighter lists; not for users0008
TEST_TOKEN, UNIQUE_TEST_TOKEN, PARATEST, LARAVEL_PARALLEL_TESTINGSet, as paratest sets them for its workers, for each process the PHPUnit, PhpSpec, Codeception and Testo runners judge mutants in and the Pest runner tries its unexecutable mutants in, where the machine has more than one core and they run one per core: the process's place, its place and the run, and 1 for the other two. A suite that shares a database needs one database per token. Laravel creates it, named after its test database with _test_<token>, for each test case that refreshes, migrates, truncates or wraps the database in a transaction, so its database user must be allowed to create databases0023

What a test process never inherits

The processes the gate starts to run the project's tests start without the CI's credentials and the secrets the gate reads, so no test and no mutant can read or send one, and without the variables that would make a process another run's worker or have a tool print for an AI agent. A * stands for any rest of the name.

  • Every run's: AWS_*, ACTIONS_*, AZURE_*, GITHUB_TOKEN, GH_TOKEN, SONAR_TOKEN, COMPOSER_AUTH, GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_GHA_CREDS_PATH, CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE, MUTATION_GATE_GCS_TOKEN, MUTATION_GATE_AZURE_TOKEN, MUTATION_GATE_SLACK_URL, MUTATION_GATE_DISCORD_URL, MUTATION_GATE_WEBHOOK_URL, MUTATION_GATE_WEBHOOK_SECRET, OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_TRACES_HEADERS, OTEL_EXPORTER_OTLP_METRICS_HEADERS and OTEL_EXPORTER_OTLP_LOGS_HEADERS.
  • The CI's own credentials: GitLab's CI_JOB_TOKEN, CI_REPOSITORY_URL, CI_JOB_JWT*, CI_REGISTRY_PASSWORD, CI_DEPLOY_PASSWORD and CI_DEPENDENCY_PROXY_PASSWORD; Buildkite's BUILDKITE_AGENT_ACCESS_TOKEN, BUILDKITE_AGENT_TOKEN, BUILDKITE_AGENT_JOB_API_TOKEN and BUILDKITE_AGENT_JOB_API_SOCKET; CircleCI's CIRCLE_OIDC_TOKEN*; Azure DevOps' SYSTEM_ACCESSTOKEN and AZURE_DEVOPS_EXT_PAT; Bitbucket's BITBUCKET_STEP_OIDC_TOKEN.
  • Another run's: MUTATION_GATE_*, INFECTION_*, PEST_MUTATION_*, PARATEST*, TEST_TOKEN*, UNIQUE_TEST_TOKEN* and LARAVEL_PARALLEL_TESTING*, which would make a process another run's worker or mutant; what the gate's own command sets, the process still gets.
  • A coding agent's markers, which have a tool print for an agent rather than as it does in a terminal: AI_AGENT, CLAUDECODE, CLAUDE_CODE*, CURSOR_AGENT, GEMINI_CLI, CODEX_SANDBOX, CODEX_CI, CODEX_THREAD_ID, AUGMENT_AGENT, OPENCODE, OPENCODE_CLIENT, AMP_CURRENT_THREAD_ID, REPL_ID, COPILOT_MODEL, COPILOT_ALLOW_ALL, COPILOT_GITHUB_TOKEN, COPILOT_CLI, ANTIGRAVITY_AGENT, PI_CODING_AGENT, KIRO_AGENT_PATH and PAO_FORCE.
  • The config's: each variable runner.withhold names, and each a report reads its secret from, such as a with.urlEnv or with.secretEnv.

The store, for deliver and fetch

deliver and fetch take the store's whole location from their own environment, never from a delivery or a config:

VariableWhat it sets
MUTATION_GATE_STOREThe store: s3, gcs or azure. Unset, deliver and fetch use no store, and the ledger stays in the Actions cache
MUTATION_GATE_STORE_BUCKETbucket, for s3 and gcs
MUTATION_GATE_STORE_PREFIXprefix (mutation-gate by default)
MUTATION_GATE_STORE_REGIONregion, for s3 (us-east-1 by default)
MUTATION_GATE_STORE_ENDPOINTendpoint, for s3 alone, and only an https:// URL
MUTATION_GATE_STORE_ACCOUNTaccount, for azure
MUTATION_GATE_STORE_CONTAINERcontainer, for azure
MUTATION_GATE_STORE_PUBLIC_CONTAINERpublicContainer, for azure
MUTATION_GATE_DEFAULT_BRANCHThe default branch, where the event payload names none

The store's credentials are its usual variables: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY for s3, the federation's or MUTATION_GATE_GCS_TOKEN for gcs, and the federation's or MUTATION_GATE_AZURE_TOKEN for azure (ADR-0007).