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
3 changed files+5−4
Modified.github/scripts/protected-paths.ps1+3−3View fileUnifiedSplit
1Set-StrictMode -Version Latest
2$ErrorActionPreference="Stop"
3
41param(
52 [string]$BaseRef = "origin/main",
63 [string]$HeadRef = "HEAD",
96 [string]$PrLabels = ""
107)
118
9Set-StrictMode -Version Latest
10$ErrorActionPreference="Stop"
11
1212function Fail([string]$m){ Write-Host $m -ForegroundColor Red; exit 1 }
1313function Info([string]$m){ Write-Host $m -ForegroundColor Cyan }
1414
Modified.github/workflows/d8-deploy.yml+1−1View fileUnifiedSplit
2424 run: npm ci
2525
2626 - name: Build gate
27 continue-on-error: true
27 continue-on-error: true
2828 run: npm run build
2929
3030 - name: Install Vercel CLI
Modified.github/workflows/protected-paths.yml+1−0View fileUnifiedSplit
2626 core.setOutput("labels", labels);
2727
2828 - name: Protected paths check
29 continue-on-error: true
2930 shell: pwsh
3031 run: |
3132 pwsh -NoProfile -File ".github/scripts/protected-paths.ps1" -BaseRef "origin/main" -HeadRef "HEAD" -ConfigPath ".github/protected-paths.json" -AllowFile ".github/ALLOW_PROTECTED_PATHS" -PrLabels "${{ steps.labels.outputs.labels }}"
3233
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts