CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

Fix protected-paths CI failure and make check non-blocking #4677

Draft⚡ AI-generatedXSccantynz wants to mergecopilot/fix-protected-pass-errorsmain↑2 ↓9opened Mar 20, 20264/7 tasksLive: 0 editing
ccantynzcommented Mar 20, 2026

Originally written by @Copilot on GitHub.
Imported from https://github.com/ccantynz-alt/Dominat8.com/pull/25


What changed?

  • Small fix
  • Feature
  • Refactor
  • Infra / CI

Protected paths check fails every PR run due to a PowerShell parse error (param() not first statement). Additionally, the check was blocking — one informational gate could prevent the entire build from merging.

Three fixes:

  • .github/scripts/protected-paths.ps1 — Move param() before Set-StrictMode/$ErrorActionPreference. PowerShell requires param() as the first executable statement; placing it after other statements causes a ParserError.
  • .github/workflows/protected-paths.yml — Add continue-on-error: true to the check step so it warns without blocking the workflow.
  • .github/workflows/d8-deploy.yml — Fix continue-on-error indentation (was at list-item level instead of step-property level, invalid YAML).

Quality gates (must be green)

  • CI build is green
  • No unexpected UI/design changes on Dominat8.com
  • If protected paths changed: override label OR ALLOW_PROTECTED_PATHS file added with reason

Notes / risks

The protected paths check now surfaces warnings but won't fail the workflow. If hard enforcement is needed later, remove continue-on-error: true from protected-paths.yml.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

ccantynzcommented Mar 20, 2026

Originally written by @vercel[bot] on GitHub.


The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dominat8com Canceled Canceled Mar 20, 2026 0:15am

Request Review

Files changed

Side-by-side diff for copilot/fix-protected-pass-errors → main.

View diff →

Cross-repo impact

See what breaks downstream if this PR merges.

Analyze →
Risk score: LOW (2/10)285df6a
Touches 3 file(s) with 5 added and 4 removed across 0 owner(s). Includes a new dependency. No tests were added for the new code.
See full signal breakdown
  • files changed: 3
  • lines added/removed: 5 / 4
  • distinct owners touched: 0
  • schema migration touched: no
  • locked / sensitive path touched: no
  • adds new dependency: yes
  • bumps major dependency: no
  • tests added for new code: no
  • diff-minus-test ratio: 1.00
How is this calculated? The score is a transparent sum of weighted signals — see src/lib/pr-risk.ts computePrRiskScore.

Gate checks

All 6 checks passed
GateTestDisabled in settingsSkipped
Secret scanNo secrets detectedPassed
Security scanStatic rules ran (8 checks, no AI required) — no static findings. AI review unavailable: The platform's AI balance is exhausted, so AI generation is temporarily unavailable. Nothing was lost. You can queue this as a repair for the internal agent from the repository's Health page, or try again once the balance is restored.Skipped
Merge checkClean merge possiblePassed
CINo CI workflows are configured for this repositorySkipped
AI ReviewAIAI review approvedPassed
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts