0032. Decouple adopter-tenant operations from GitHub Actions
Every adopter-tenant capability in avd-ops must run with zero GitHub Actions minutes and zero GitHub Environment dependencies; GitHub Actions is an optional convenience, never a hard requirement.
Context and Problem Statement
Decision 0026 documented GitHub Free limits, but several walkthroughs and templates still assume GitHub Actions or GitHub Environments for adopter operations.
More
If an adopter's GitHub account or organization hits its Actions billing/usage cap, sets a $0 spending limit, disables Actions on private repositories, or uses GitHub Free (where environment: required reviewers do not pause), any capability coupled to GitHub Actions breaks for the adopter's tenant. How should avd-ops structure execution, approvals, scheduling, and private hosting so adopter operations never depend on GitHub Actions?
Considered Options
Three options were weighed:
- Keep GitHub Actions as the primary adopter control plane and document workarounds: Leaves adopters exposed to Actions quota exhaustion, disabled-Actions org policies, and missing Environment gates on GitHub Free.
- Require GitHub Pro+ or self-hosted GitHub Actions runners: Shifts cost or runner maintenance onto every adopter and still fails if Actions is disabled.
- Decouple all adopter-tenant operations from GitHub Actions: Guarantee a zero-Actions path for every adopter plane (execution, approval, scheduling, and private page hosting), keeping
.github/workflows/strictly optional.
Decision Outcome
Chosen option: "Decouple all adopter-tenant operations from GitHub Actions".
More
Why: an adopter's Azure Virtual Desktop operations should depend only on their Azure tenant, standard shell tooling (pwsh, bash, az, git), and their chosen ITSM or Azure-native controls—never on GitHub Actions billing or runner availability.
1. Default non-Actions planes and optional GitHub Actions modes
| Plane | Non-GitHub-Actions default (required) | Optional GitHub Actions (GitHub-hosted or private runners) |
|---|---|---|
| Execution | Azure Cloud Shell or local PowerShell 7 / Bash (run-anywhere), or Azure-native compute (Azure Automation, Container Apps Jobs) |
ubuntu-latest (GitHub-hosted) or self-hosted private runner (Azure VM / Container App / local) |
| Approval & Change-Gate | Interactive CLI (-WhatIf / -Confirm), Azure RBAC / Entra PIM elevation, or the 5+2 ITSM Change-Gate adapter (mock, power-platform, jira-jsm, servicenow) |
GitHub Environments (environment:) on GitHub Pro+ (works with either runner type) |
| Scheduling | Azure Automation schedules, Azure Container Apps Jobs, or local cron / Task Scheduler |
runbooks.yml (on: schedule:) in avd-private on GitHub-hosted or self-hosted runners |
| Private page deployment | Direct Cloud Shell / CLI deployment (az staticwebapp / @azure/static-web-apps-cli, or az storage blob upload-batch to $web) |
deploy-pages-swa.yml via OIDC on GitHub-hosted or self-hosted runners |
- Optional GitHub Actions without private runners: Uses GitHub-hosted
ubuntu-latestrunners (zero runner maintenance; shares GitHub Free's 2,000 min/month private-repo pool). - Optional GitHub Actions with private runners: Uses
runs-on: self-hostedon an adopter-owned runner (avoids GitHub-hosted minute billing and keeps Azure network traffic inside the tenant, whileenvironment:required reviewers on private repos still require GitHub Pro+).
2. Scope boundary (adopter tenant vs. public avd-ops CI)
- Adopter tenant &
avd-private: Defaults to zero GitHub Actions (Initialize-AvdPrivateRepo.ps1omits.github/workflows/unless-IncludeWorkflowsis passed). Private companion repositories only need Git storage (or any private Git host / local repo) forruns/,vault/,config/, andswarm/. - Public
avd-opsrepositories: Public CI (pages.yml,kb-validate.yml,release-train.yml) may continue using GitHub Actions on public repos where standard runners are free, while keeping all validation and build scripts runnable locally (npm test,python3 scripts/kb/validate.py).
Consequences
- Good, because GitHub Actions billing limits, usage exhaustion, or disabled-Actions policies cannot break
avd-opsfunctionality for an adopter's tenant. - Good, because adopters on GitHub Free get real human-in-the-loop approval gates via interactive CLI, Azure PIM, or ITSM/Power Platform instead of silent no-ops on
environment:. - Good, because adopters can host
avd-privateon any Git provider or local filesystem without losing anyavd-opsworkflow. - Bad, because templates and walkthroughs must maintain a direct Cloud Shell / Azure-native path alongside any optional GitHub Actions workflow template.
More Information
Related decisions and templates.
More
- GitHub Free limits and near-$0 Azure hosting: decision 0026.
- Bounded RSI loop and Change-Gate adapter: decision 0030 and ITSM and Change-Gate adapter.
- Private companion repo layout: Your private companion repo.
- Direct private static page deployment: Azure static-pages template.
- Optional scale-to-zero private runner: GitHub private runner template.