ADR-0024 — CI/CD: GitHub Actions with push-to-main + PR-validation, CPE-owned reusable workflows, shared Terraform modules, WIF-federated Azure deployments
Context
Every ION service — backend microservice, MFE, BFF, database schema,
APIM policy, infrastructure — needs a way to build, test, promote, and
deploy through the four ION environments (Alpha apa, Beta bta,
Gamma gma, Prod prd) that
§ 15
locks in as separate management groups + subscriptions. Concretely
the pipeline must:
- Build service artifacts, run unit + integration tests, publish Trilateral-API contracts as consumable packages.
- Provision service-owned Azure resources via IaC only — no manual portal changes above Alpha (per new § 25).
- Deploy Azure Functions, Static Web Apps, MFEs, DACPACs, Logic Apps,
ACIs — the concrete unit types documented under
.github/workflows/in Anvil. - Enforce a uniform merge gate — required checks + CODEOWNERS multi-team approval — across every service in the mono-repo, so quality, security, and compliance posture is consistent regardless of who wrote the code.
- Route deployments through per-environment approval gates with distinct RBAC and env-scoped identities.
- Authenticate to Azure and to customer tenants without long-lived credentials (per ADR-0009 / ADR-0013 credential-less posture).
- Onboard a new service with the whole machinery (Artifactory repos, RBAC, service Entra apps, GitHub environments) as a governed one-shot operation.
- Produce end-to-end audit evidence for SOC1 and equivalent compliance frameworks — every production change traceable back to a merged PR, its approvals, its required checks, its environment approvals, and the OIDC-issued deployment identity.
This ADR codifies the CI/CD substrate for ION V3. Ontinue’s CPE
(Cloud Platform Engineering) team operates the shared CI/CD stack
under the codename Runway — GitHub Enterprise + GitHub Actions +
JFrog Artifactory + Azure, glued together by a set of CPE-owned
reusable workflows that every ION service consumes. The whole
stack is live in /Users/shy/code/Anvil (mono-repo,
~600 workflows under .github/workflows/, ~59 shared Azure Terraform
modules under tf-modules/azure/).
Forces / Drivers
- Requirement / Constraint: four-environment promotion (apa/bta/gma/prd per § 15) across independent Azure landing zones (per § 24); IaC-only change model, no manual portal edits above Alpha (per new § 25); credential-less Azure auth (ADR-0013); per-env RBAC
- Principle(s) embodied: § 25 Fully automated deployment (IaC-first, no manual changes) (primary — this ADR is the mechanism); § 15 Deploy through the same pipeline; environments are isolated; § 12 Managed Identity for service-to-service authentication (WIF/OIDC = credential-less on GitHub); § 22 Least privilege (env-scoped federated credentials, per-env approvals, per-service CODEOWNERS scope); § 23 Blast-radius containment (env-scoped identities, per-env approvals, PR-time ephemeral environments in Alpha only); § 21 Azure-native managed services first (Azure Storage Terraform state, ACR runtime registry, Azure Automation Account custom protection rules); § 24 Azure Landing Zone architecture best practices (env-per-landing-zone).
- WAF pillar optimized:
operational-excellence(primary — one pipeline substrate, one PR gate, one promotion ceremony across every ION unit);security(credential-less OIDC, env-scoped approvals, mandatory security PR checks);reliability(repeatable IaC-driven promotion, recorded deployments, custom protection rules gating prod).
Decision
ION V3 CI/CD runs on GitHub Enterprise + GitHub Actions, integrated with JFrog Artifactory and Azure, and glued together by CPE-owned reusable workflows that every service is expected to consume. Concretely:
1. Mono-repo + trunk-based development (GitHub Flow)
- Single mono-repo (Anvil) holds all ION source, IaC, workflows, and docs — per CPE’s repository-structure guidance (see references).
- GitHub Flow / trunk-based development on
main: short-lived feature branches, PR intomain, deploy frommain. - Each service has its own folder (
<service>/) with its own workflows (.github/workflows/<service>*.yml) so PRs and deployments are scoped per service; multiple services can be changed in a single PR when needed.
2. Mandatory PR-validation gate (enforced platform-wide)
Every PR into main MUST pass a common set of required checks,
implemented as CPE-owned reusable workflows that services call
from their <service>-pr.yml:
| Required check | CPE reusable workflow(s) | Purpose |
|---|---|---|
| Secret validation | schedule-secret-validation.yml, PR-time hook | Detect committed credentials. |
| PR label | lib-validate-linter-pr-checks.yml and semantic-versioning label check | Enforce semver label (Major/minor/patch/re-release) required for artifact publishing. |
| PR title | validate-pr-title.yml | Conventional-commit-style PR titles for traceability. |
| CodeQL | lib-validate-codeql.yml, codeql-daily.yml | SAST across changed code. |
| TFSEC | lib-validate-tfsec.yml, schedule-tfsec-validation.yml | Terraform security scanning. |
| OSS License / dependency-review | GitHub dependency-review action | Block disallowed licenses / known-vuln deps. |
| Linter | lib-validate-biome-linter.yml, lib-validate-linter-ion.yml, lib-validate-linter-rbac.yml | Code style + ION-specific lint rules (incl. RBAC lint). |
Teams that build their own PR-check implementations are not supported by CPE. The reusable workflows are the contract.
3. CODEOWNERS-driven multi-team approval
- Every service folder has a
CODEOWNERSentry pinning the owning Service Delivery Team. - A PR touching multiple service folders requires approval from each owning team, enforced by GitHub’s CODEOWNERS mechanism.
- Combined with the required checks in § 2, this makes the merge gate
uniform across the mono-repo: required checks green + all
CODEOWNERS approved → mergeable to
main.
4. Push-to-main + PR-validation as the enforced pattern
The platform enforces two flavours of pipeline per service:
<service>-pr.yml— runs on PR: build, test, required checks (§ 2), and optionally an ephemeral Alpha-only deploy to a short-lived Azure Container Instance (lib-aci-ghpr-create.yml/lib-aci-ghpr-delete.yml) for validation. PR deploys are limited to Alpha.<service>.yml— runs on push tomain: builds, tests, publishes artifacts, deploys through apa → bta → gma with env-scoped approvals.<service>-tag.yml/<service>-release.yml— tag or release events promote a versioned artifact toprd. Prod promotion is deliberate: a signed tag, not an implicit push.
Team-internal reusable workflow sets (e.g., the Kronos-prefixed
workflows owned by the Kronos team; see kronos-build-test-and-deploy.yml
etc.) are allowed and used, but they are team-owned patterns, not
platform-wide layers. The platform-wide contract is § 2 + § 3 +
§ 4 above.
5. Infrastructure as Code — Terraform primary, ARM/Bicep fallback
- Terraform is the default IaC tool for ION services.
- ARM / Bicep are sanctioned as fallback where Terraform provider
coverage is missing or lagging (e.g., certain Sentinel / Defender /
emerging-service scenarios). Choosing ARM/Bicep for a component is
a local decision, documented in the service’s
infra/folder. - Shared Terraform modules live in
tf-modules/:tf-modules/azure/— 59 Azure resource modules covering the ION resource palette (APIM, App Gateway, Front Door, Cosmos, Service Bus queue/topic/subscription, Function App Linux, Key Vault, Private Endpoint DNS, RBAC assignment, MFE Static Web App, PowerBI Embedded, MSSQL, Redis, Log Analytics, Storage Account, Subnet, NAT Gateway, Synapse, Container Registry, etc.).tf-modules/artifactory/— JFrog repo / RBAC modules.tf-modules/auth0/— Auth0 tenant resources.
- Module authorship is platform-owned; module consumption is service-owned. Modules are versioned and published to Artifactory via the semantic-versioning label mechanism (see § 8).
- Terraform state lives in Azure Storage, one state per service per environment. State access is via WIF (§ 6), no long-lived keys checked into pipelines.
- TFSEC runs as a required PR check (§ 2).
6. Credential-less Azure authentication — Workload Identity Federation
- Pipelines authenticate to Azure using
azure/login@v3withclient-id+tenant-id+subscription-id— no client secrets, no service-principal passwords, no PATs stored as long-lived GitHub secrets for Azure auth. - The
client-idresolves to a per-environment federated credential on an Entra app (e.g.,ION_BETA_AZURE_CLIENT_ID,ION_GAMMA_AZURE_CLIENT_ID,ION_PROD_AZURE_CLIENT_ID). - Federated credentials are scoped to the specific GitHub environment (§ 7) — a beta OIDC token cannot be used to deploy to prod.
- This is the CI/CD-side realisation of the credential-less posture in ADR-0013.
7. GitHub environments as approval + secret + OIDC boundary
- Every service × environment pair maps to a GitHub deployment
environment named
<service_short>-<env_long>(e.g.,bcinc-beta,bcinc-gamma,bcinc-prod). - The environment holds env-scoped secrets/vars (Azure
CLIENT_ID,TENANT_ID,SUBSCRIPTION_ID, Terraform state resource names) and approval rules for gates that require human approval. - Branch protection:
beta,gamma,prdenvironments are restricted to workflows running on themainbranch. PR deploys are permitted only into Alpha environments. - Environment configuration is declarative in
service-map.json(per-service, per-env: reviewers list, approval policy).runway-github-environment-pr-validate.yml/runway-github-environment-update.ymlreconcile the live GitHub environment state againstservice-map.json.
8. Custom Environment Protection Rules — Azure Automation Account
Beyond native GitHub approvals, ION uses custom environment protection rules as a programmable, extensible gate:
- A GitHub environment configured with a custom protection rule fires a webhook into an Azure Automation Account.
- The webhook triggers a main runbook, which dispatches to an environment-specific runbook to evaluate policy (e.g., change freeze window, deployment quota, upstream health).
- The runbook returns Approved / Rejected; only Approved responses release the pipeline job.
- This is § 21-native (Azure Automation) and extensible: new gating rules land as runbook code, not as ad-hoc pipeline logic.
9. Runners — GitHub-managed, NIC-injected into ION VNets
- ION uses GitHub-hosted runners (managed by GitHub) whose
network interface is injected into an ION-owned subnet
(
snet-ghrun-<env>-chn-01) per environment. - Runner labels:
<env>-linux,<env>-windows, plus static-IP variants (<env>-linux-static) for jobs needing a stable egress IP (e.g., IP-allowlisted third-party APIs). - Rationale: many deployment targets (Key Vault, Service Bus, Event Hubs, Storage, and other resources with Deny-default firewalls) accept data-plane traffic only from named sources. Resources allow the runner subnet through VNet rules over service endpoints — network-injected runners give that reachability without ION taking on runner compute management.
- Runner subnets (amended 2026-10-15). The spoke
snet-ghrunis the active runner subnet in every environment. A dedicated Luna VNet runner subnet exists in Alpha and Production and is in rollout; resources do not yet allow it. The hub ACI runner subnet is legacy and will be removed. Earlier wording that runners reach “Function Apps behind private endpoints, Cosmos with public access disabled, and APIM with private-endpoint ingress” overstated the deployed posture: ION is in ADR-0025 Phase 1, and private endpoints are the Phase 2 target. - No § 21 exception is needed for runners — they are GitHub-managed compute; ION only owns the NIC + subnet. This is the correct read of the CPE runners posture; earlier framings of “self-hosted runners” were inaccurate.
10. Artifact management — JFrog Artifactory (opensystems.jfrog.io)
- Artifactory is the universal artifact platform for ION — NuGet, npm, PyPI, Docker, ZIP, Terraform modules — plus JFrog X-Ray for vulnerability scanning.
- Semantic-versioning by PR label: every PR MUST carry exactly
one of
Major/minor/patch/re-release(ordeletetfmodulefor TF modules); reusable CPE workflows compute and publish the next version on merge. - Promotion pipeline: artifact versions are published in the Alpha registry, promoted to Beta on merge, then to Gamma, then to Prod as environment tests pass. Same bits, promoted — never rebuilt.
- Docker images are copied from Artifactory into per-env Azure
Container Registry at deploy time (
lib-docker-acr-copy.yml) to keep runtime pulls Azure-local. - Runway workflows manage Artifactory repo + RBAC provisioning
(
runway-artifactory-repos-cicd-ion.yml,runway-rbac-artifactory-cicd-ion.yml) plus periodic cleanup (runway-ion-jfrog-artifactory-cleanup.yml). - Auth to Artifactory: Entra SSO for user access; scoped Artifactory tokens for Actions.
11. Service onboarding — governed one-shot
Per CPE guidance the 5-step onboarding path is:
- Register the service in the Service Inventory (canonical
source for
service-map.json). - Run
runway-github-service-onboarding.yml(workflow_dispatch) to provision GitHub team/RBAC, Artifactory repos + RBAC, service Entra app scaffolding, and GitHub environments. - Request CPE whitelist the service’s federated-credential subject pattern for Azure.
- Note the emitted
CLIENT_IDenv variables and wire them into the service’s workflows. - Tune the service’s PR / push / tag workflows against the CPE reusable-workflow contract (§ 2, § 4).
Onboarding is a governed operation, not an ad-hoc PR.
12. End-to-end auditability & compliance
Every production change is traceable through a single evidence chain:
PR opened → required checks (§ 2) green → CODEOWNERS approvals
(§ 3) → merged to main → push-to-main pipeline (§ 4) → env-scoped
OIDC token issued (§ 6, § 7) → GitHub environment approval (§ 7)
→ custom protection rule verdict (§ 8) → deployment record.
This chain is the SOC1 evidence surface. Governance workflows
(runway-soc1-audit.yml, runway-github-audit-workflow-versions.yml,
runway-vulnerability-management.yml, runway-security-dhi-exception.yml,
runway-github-backup.yml) turn recurring compliance chores into
scheduled pipeline runs against this chain.
13. Blast-radius & concurrency controls
- PR builds validate against short-lived ACIs
(
lib-aci-ghpr-create.yml/lib-aci-ghpr-delete.yml) so PR runs don’t touch shared env state. runway-github-cancel-old-workflow.ymlcancels superseded runs.- Env-scoped federated credentials (§ 6) ensure a beta pipeline cannot deploy to prod even if compromised.
Alternatives Considered
CI/CD Substrate
Option A — GitHub Actions with CPE-owned reusable workflows (selected)
Option B — Azure DevOps Pipelines
Rejected — decisive: ION source is on GitHub Enterprise; a split CI/CD substrate would fragment the developer experience and duplicate the governance surface (CODEOWNERS, required checks, environments, OIDC). Reinforcing: weaker OIDC-federation story at the time V3 posture was set; duplicated compliance evidence surface.
Option C — Jenkins (self-hosted)
Rejected — decisive: violates § 21 Azure-native managed services first without justification (Jenkins is a self-hosted operational burden with no offsetting capability GitHub Actions doesn’t provide). Reinforcing: no first-class OIDC-to-Azure story matching § 12; plugin ecosystem is a supply-chain risk surface.
Option D — GitLab CI
Rejected — decisive: would require migrating source-control off GitHub Enterprise, a change orders of magnitude larger than the CI question warrants. Reinforcing: no strategic advantage over GitHub Actions for ION’s mono-repo + service-fan-out shape.
IaC
Option IAC1 — Terraform primary + ARM/Bicep fallback (selected)
Option IAC2 — Bicep / ARM as primary
Rejected — decisive: Terraform covers Azure plus Auth0 and JFrog Artifactory in one tool, which Bicep/ARM do not. Reinforcing: larger community module ecosystem; portable HCL supports § 20 vendor-lock-in mitigation. ARM/Bicep are retained as fallback where Terraform provider coverage lags.
Option IAC3 — Pulumi
Rejected — decisive: no operational advantage over Terraform at ION’s scale; would fragment IaC skill and tooling. Reinforcing: GA-language IaC increases variance in review; Terraform’s declarative HCL is easier to lint and secure (TFSEC).
Option IAC4 — Azure Deployment Environments / Dev Center
Rejected — decisive: does not model multi-provider (Auth0, JFrog) resources. Reinforcing: less mature than Terraform for ION’s existing module surface.
Authentication
Option AUTH1 — OIDC / Workload Identity Federation (selected)
Option AUTH2 — Long-lived service-principal client secrets in GitHub Secrets
Rejected — decisive: violates ADR-0013 credential-less posture and § 22 Least privilege. Reinforcing: rotation burden, secret-sprawl audit surface, compromise blast radius.
Option AUTH3 — Personal Access Tokens (PATs)
Rejected — decisive: user-bound, non-auditable at the pipeline layer; violates § 22. Reinforcing: PAT theft/leak is a common attack vector; PATs bypass env-scoped approvals.
Runners
Option R1 — GitHub-hosted runners with NIC in ION VNet (selected)
Option R2 — GitHub-hosted runners only (no VNet integration)
Rejected — decisive: cannot reach ION resources sitting behind private endpoints (Cosmos public disabled, APIM private ingress, Function Apps with private-endpoint-only access) per ADR-0016.
Option R3 — Self-hosted runners on Azure VMSS
Rejected — decisive: violates § 21 Azure-native managed services first without justification, given that GitHub-managed runners with VNet NIC injection give ION the reachability it needs without owning runner compute. Reinforcing: patching, scaling, image maintenance, and health monitoring become an ION operational tax with no capability gain.
Artifact management
Option ART1 — JFrog Artifactory (existing Ontinue platform) (selected)
Option ART2 — GitHub Packages
Rejected — decisive: does not cover ION’s multi-format artifact palette (Terraform modules, ZIP, mixed Docker/npm/NuGet/PyPI) with consistent RBAC and X-Ray-equivalent scanning. Reinforcing: Ontinue already operates Artifactory as the enterprise artifact platform; duplicating would fragment RBAC.
Option ART3 — Azure Container Registry only
Rejected — decisive: ACR is a container registry, not a universal artifact platform. ION retains ACR as the runtime image registry but uses Artifactory as the source-of-truth artifact store, with a documented copy/promote flow.
Promotion strategy
Option P1 — Trunk-based on main, tag-driven prod promotion (selected)
Option P2 — GitFlow with release branches
Rejected — decisive: multiplies merge overhead across 60+ services with no offsetting governance gain. Reinforcing: release-branch divergence complicates the audit chain (§ 12).
Option P3 — Continuous deployment straight to prod on green main
Rejected — decisive: eliminates the deliberate signed-tag prod gate that ION’s compliance posture requires. Reinforcing: per-service risk profile varies; forcing continuous prod deploy removes team judgment.
Rationale
GitHub Actions wins as the substrate because ION’s source of truth
is already on GitHub Enterprise, and Actions’ workflow_call +
composite-action model naturally supports the CPE-owned reusable
workflow contract: platform-wide required PR checks in one place,
consumed uniformly by every service. Fragmenting to a second CI
system would duplicate every governance surface (CODEOWNERS,
required checks, environments, OIDC).
The enforced pattern is push-to-main + PR-validation, with CPE owning the mandatory reusable workflows for required checks. Teams may build their own internal reusable workflow sets on top (Kronos being one team’s example), but the platform-wide contract is the CPE workflows — team-owned alternatives are unsupported by CPE, which scales governance without freezing team velocity.
Terraform wins as IaC because it covers Azure plus Auth0 and
JFrog Artifactory in one model; shared tf-modules/ (59 Azure
modules + Auth0 + Artifactory) are platform-authored and
service-consumed, which is what makes IaC scale across 60+ services.
ARM/Bicep are retained as sanctioned fallback for Terraform coverage
gaps, keeping the IaC-first posture (§ 25) intact without forcing an
awkward workaround.
OIDC federation with per-env CLIENT_ID values is the direct
GitHub-side realisation of the credential-less posture from
ADR-0013. It eliminates
standing credentials from the pipeline surface and inherits the
approval + audit chain that GitHub environments + Azure Automation
Account custom protection rules provide.
GitHub-hosted runners with NIC injection into ION VNets give ION private-endpoint reachability without owning runner compute — this is why no § 21 exception is needed here (earlier framings of self-hosted runners misread the CPE runners posture). Static-IP runner variants cover the narrow case of IP-allowlisted third-party integrations.
JFrog Artifactory is the existing Ontinue artifact platform, universal-format (NuGet, npm, PyPI, Docker, ZIP, Terraform) with X-Ray scanning built in. ACR remains the runtime image registry for Azure services; the copy/promote flow keeps runtime pulls Azure-local without duplicating source-of-truth.
Trunk-based development with tag-driven prod promotion matches ION’s per-service independent-deployment model; GitFlow’s release branches would multiply merge overhead across 60+ services with no offsetting governance gain.
Above all, the ADR is the mechanism for § 25:
without this pipeline substrate — IaC-first, uniform PR gate,
env-scoped OIDC, custom protection rules, end-to-end audit chain —
there is no way to keep ION’s promise that no one clicks around in
the Azure portal against bta/gma/prd.
Consequences
Positive
- One CI substrate across every ION unit (backend service, BFF, MFE, IaC, DB) — uniform onboarding, uniform PR flow, uniform promotion ceremony.
- Uniform quality/security gate: every service passes the same required checks matrix (Secret Validation, PR Label, PR Title, CodeQL, TFSEC, OSS License, Linter) — no per-team drift.
- Uniform ownership gate: CODEOWNERS enforce per-file team approvals; cross-team changes require cross-team consent.
- Credential-less Azure authentication realises § 13 posture end-to-end at the pipeline layer.
- No runner ops overhead — GitHub-managed compute with VNet NIC injection gives reachability without operational burden.
- Runway governance workflows (SOC1 audit, vulnerability management, workflow-version audit, DHI exception, backup) turn compliance chores into scheduled pipeline runs.
- Custom Environment Protection Rules (Azure Automation Account runbooks) give ION programmable gates without leaving § 21.
- Service onboarding is a governed one-shot operation.
- Trilateral-API contracts published as versioned Artifactory artifacts formalise § 10 contract discipline.
- End-to-end audit chain (PR → checks → CODEOWNERS → env approval → OIDC token → deployment record) doubles as SOC1 evidence, generated as a byproduct of doing the work.
Negative
- 60+ services × 4 environments × N artifact types produces a
large workflow surface (
ls .github/workflows | wc -l = 602) — workflow-version drift is a real risk, mitigated byrunway-github-audit-workflow-versions.yml. - CPE reusable-workflow changes ripple to every consumer — a bug in a mandatory PR-check workflow can block every merge. Requires disciplined versioning and staged rollout.
- JFrog Artifactory is a stateful third-party dependency — its own DR, RBAC, cost, and lifecycle.
- Terraform state files (one per service per env in Azure Storage) are load-bearing — state loss / corruption is high-severity.
service-map.jsonbecomes load-bearing config — schema changes require coordinated migration.- ARM/Bicep fallback, while sanctioned, is a heterogeneity tax —
the shared-module leverage in
tf-modules/doesn’t apply.
Neutral / follow-ups
- Publish
standards/cicd-standards.mdcovering workflow naming, CPE reusable-workflow input contracts, GitHub environment naming, approval-gate policy per env, CODEOWNERS conventions. - Publish
patterns/gh-actions-reusable-workflows.mdcodifying the CPE-mandatory vs team-owned reusable-workflow distinction. - Custom-protection-rule runbook capacity + SLIs into the observability stack (ADR-0021).
- Contract-test the Trilateral-API artifacts against consuming services.
- Define a policy for ARM/Bicep fallback — when it’s acceptable, how it’s reviewed, how it’s tracked toward eventual Terraform coverage.
WAF Pillar Impact
- Primary pillar:
operational-excellence— one substrate, uniform PR gate, uniform promotion ceremony, IaC-first mandate (§ 25), end-to-end audit chain. - Secondary pillars:
security(credential-less OIDC, env-scoped approvals, TFSEC + CodeQL + secret scanning as required gates, Automation-Account custom protection);reliability(repeatable IaC-driven promotion, recorded deployments, deliberate signed-tag prod gate). Cost-optimization: ARM/Bicep fallback where Terraform coverage is missing avoids costly workarounds; Artifactory is a fixed cost line ION accepts as the price of the enterprise-artifact posture. - Trade-offs: the CPE-owned reusable-workflow surface is central and needs active governance; workflow surface is large and needs version-audit discipline; ARM/Bicep fallback fragments the IaC module story where used. ION accepts these because the alternatives (split CI, per-team PR gates, secret-based Azure auth, self-hosted runners) each break a load-bearing constraint.
Previous approach (V2)
V2 CI/CD was fragmented: some services on Azure DevOps Pipelines, some on ad-hoc GitHub workflows, PowerBI deployment done partially by hand (per V2 § PowerBI Dashboard implementation — “we manually create and update each customer workspace”). There was no unified service-onboarding surface, no uniform PR-check contract, and much Azure authentication used long-lived service-principal secrets. V3 consolidated on GitHub Actions + CPE-owned reusable workflows, moved to OIDC / WIF federation, adopted GitHub-hosted runners with VNet NIC injection, and codified the IaC-first mandate (§ 25) that eliminates manual portal changes above Alpha.
References
- CPE guidance (references/):
CPE - GitHub - CI-CD - Overview.md— Runway stack; GitHub Flow; envs; IaC = Terraform primary, ARM/Bicep fallback; SSO + WIF.CPE - GitHub - Development Lifecycle.md— required PR checks matrix + CODEOWNERS gate; CPE reusable-workflow contract.CPE - GitHub - GitHub Environments.md—service-map.json, per-env reviewers, branch protection.CPE - GitHub - Environment Custom Protection Rule.md— Automation Account runbook pattern.CPE - GitHub - On-boarding services to ION.md— 5-step onboarding path.CPE - GitHub - Runners in Azure Private Network.md— GitHub-managed runners with NIC in ION VNets.CPE - GitHub - CI-CD - Semantic Versioning.md— PR-label-driven versioning + Alpha → Beta → Gamma → Prod promotion.CPE - GitHub - Repository Structure Overview.md— mono-repo layout + CODEOWNERS scoping.
- Verified against code:
/Users/shy/code/Anvil/.github/workflows/(~602 workflows: CPErunway-*governance,lib-*primitives, team-owned reusable workflows including Kronos-prefixed set, per-service<svc>.yml/<svc>-pr.yml/<svc>-tag.yml/<svc>-release.yml). - Verified against code:
/Users/shy/code/Anvil/tf-modules/(59 Azure modules; Auth0, JFrog Artifactory modules). - External: GitHub Actions OIDC to Azure — https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure
- External: Terraform Azure backend — https://learn.microsoft.com/en-us/azure/developer/terraform/store-state-in-azure-storage
- External: GitHub CODEOWNERS — https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
Related ADRs
- Depends on: ADR-0009 (Entra
apps for per-env federated credentials);
ADR-0013 (credential-less
posture — WIF is the CI/CD-side realisation);
ADR-0016
(VNet NIC-injected runners for private-endpoint reachability);
ADR-0015
(
lib-afd-cache-purge.ymlinvalidation). - Realises: new § 25 Fully automated deployment (IaC-first, no manual changes).
- Depended on by: ADR-0021 (alerts Terraform provisions the observability wiring); ADR-0022 (Azure SQL + DACPAC deploy via CPE Kronos-style workflows); ADR-0023 (per-MFE pipelines land through the same CPE contract; MFE Static Web App Terraform module).
- Related: ADR-0002 (per-service independent deployment is what the pipeline serves).