Skip to main content

GitHub configuration

Use this reference for workflow variables and secrets.

Variables and secrets​

Configure these entries under GitHub Actions secrets and variables. Share organization settings with the repositories that need them. The last column gives the default when unset and the accepted value.

NameKindRequirementScopePurposeDefault / values
AI_APP_CLIENT_IDVariableRequiredOrganization or repositoryAgentic workflow comments and pull request updatesApp client ID
AI_APP_PRIVATE_KEYSecretRequiredOrganization or repositoryAgentic workflow comments and pull request updatesApp private key
CODEX_API_KEYSecretRequiredOrganization or repositoryAgent execution and threat detectionAPI key
CONTEXT7_API_KEYSecretRequiredOrganization or repositoryContext7 MCP accessAPI key
RELEASE_APP_CLIENT_IDVariableRequiredOrganization or repositoryRelease publicationApp client ID
RELEASE_APP_PRIVATE_KEYSecretRequiredrelease environmentRelease publicationApp private key
GH_AW_DEFAULT_MODEL_CODEXVariableOptionalOrganization or repositoryDefault Codex modelEngine default; accessible model ID
GH_AW_MODEL_AGENT_CODEXVariableOptionalOrganization or repositoryMain-agent model overrideGH_AW_DEFAULT_MODEL_CODEX; accessible model ID
GH_AW_MODEL_DETECTION_CODEXVariableOptionalOrganization or repositoryThreat-detection model overrideGH_AW_DEFAULT_MODEL_CODEX, then the detection model selector
GH_AW_DEFAULT_MAX_AI_CREDITSVariableOptionalOrganization or repositoryMain-agent budget per run1000; positive integer AIC amount, or -1 to disable
GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITSVariableOptionalOrganization or repositoryThreat-detection budget per run400; positive integer AIC amount, or -1 to disable
GH_AW_DEFAULT_MAX_DAILY_AI_CREDITSVariableOptionalOrganization or repositoryBudget per workflow over 24 hours5000; positive integer AIC amount, or -1 to disable
GH_AW_DEFAULT_MAX_TURNSVariableOptionalOrganization or repositoryAgent turn limitEngine default; positive integer
GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYSVariableOptionalOrganization or repositoryArtifact retentionPer-artifact default; days within GitHub limits, or 0 for the repository default
GH_AW_POLICY_ALLOW_CREATE_PULL_REQUESTVariableOptionalOrganization or repositoryPermit pull request creationtrue; true or false
GH_AW_DEFAULT_OTLP_ENDPOINTVariableOptionalOrganization or repositoryTelemetry collectorExport disabled; collector endpoint URL
GH_AW_DEFAULT_OTLP_HEADERSSecretOptionalOrganization or repositoryTelemetry authenticationNo authentication headers; headers required by the collector

One AI Credit (AIC) represents an estimated USD 0.01 of inference usage. Daily budgets apply separately to each workflow in a repository over a rolling 24-hour window.


Source: docs/handbook/github-configuration.md. Revision: 3841815ceb9e.