Fix protected-paths CI failure and make check non-blocking #4677
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 | Mar 20, 2026 0:15am |
Files changed
Side-by-side diff for copilot/fix-protected-pass-errors → main.
Cross-repo impact
See what breaks downstream if this PR merges.
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 passedGateTestDisabled 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
Originally written by @Copilot on GitHub.
Imported from https://github.com/ccantynz-alt/Dominat8.com/pull/25
What changed?
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— Moveparam()beforeSet-StrictMode/$ErrorActionPreference. PowerShell requiresparam()as the first executable statement; placing it after other statements causes aParserError..github/workflows/protected-paths.yml— Addcontinue-on-error: trueto the check step so it warns without blocking the workflow..github/workflows/d8-deploy.yml— Fixcontinue-on-errorindentation (was at list-item level instead of step-property level, invalid YAML).Quality gates (must be green)
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: truefromprotected-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.