Skip to content

ci: gate hosted Actions behind KRITICAL_GW_HOSTED_GATES_ENABLED (local gating only) - #3

Merged
Sir-J-AU merged 1 commit into
masterfrom
claude-w365/local-gates-only-guard-20260812
Aug 12, 2026
Merged

ci: gate hosted Actions behind KRITICAL_GW_HOSTED_GATES_ENABLED (local gating only)#3
Sir-J-AU merged 1 commit into
masterfrom
claude-w365/local-gates-only-guard-20260812

Conversation

@Sir-J-AU

Copy link
Copy Markdown
Owner

Adds the proven opt-in hosted-CI guard so GitHub Actions consumes zero billable minutes while billing is blocked (until 2026-09-01) and local gates are authoritative.

The change

Purely additive — a comment and one if: line per job:

if: ${{ vars.KRITICAL_GW_HOSTED_GATES_ENABLED == 'true' }}

Why this shape rather than deleting or disabling workflows

  • Runs still fire and report completed/skippedzero billable minutes
  • The check name survives, so branch protection and PR check lists do not break
  • Gate steps stay intact and reviewable — nothing is lost
  • Re-enabling is one repository variable, not a file edit per repo

Evidence

  • Pattern copied verbatim from Kritical.GreatWhite.Control.EngineeringSystem/.github/workflows/great-white-gates.yml on origin/main, already live and confirmed producing skipped runs at $0.
  • Diff verified purely additive: zero deleted lines, zero changed triggers, zero renamed jobs, zero altered check names.
  • YAML re-validated with a real parser after edit.
  • gh api repos/.../actions/variables returns total_count: 0 on every affected repo — unset everywhere, so nothing can silently re-enable early.

Measured cause

Three private repos were confirmed executing and consuming minutes: Kritical-ShopifyVault (10/10 recent runs executed and failed), Kritical.PS.ModuleDevelopment (windows-latest = 2× multiplier), and Kritical.AL.D365BC.Connector.Pax8-to-Storefront. Kritical.SCXCode is public (free) but guarded for consistency.

Non-claims

Does not disable any workflow, delete any file, remove any gate step, or set any repository variable. Does not alter what the gates test — only whether hosted runners execute them.

To re-enable next month: set repository variable KRITICAL_GW_HOSTED_GATES_ENABLED = true.

… gating only)

Same proven shape as Kritical.GreatWhite.Control.EngineeringSystem's
great-white-gates.yml, applied to all 5 jobs (build-vscode-extension, test-ps-module,
test-mcp-server, test-continue-config, test-install-scripts). Addition only -- no
trigger, step, or job removed/renamed.
@Sir-J-AU
Sir-J-AU merged commit 591dd7a into master Aug 12, 2026
5 checks passed
@Sir-J-AU
Sir-J-AU deleted the claude-w365/local-gates-only-guard-20260812 branch August 12, 2026 13:52
@Sir-J-AU
Sir-J-AU restored the claude-w365/local-gates-only-guard-20260812 branch August 18, 2026 03:02
@Sir-J-AU
Sir-J-AU deleted the claude-w365/local-gates-only-guard-20260812 branch August 26, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant