Skip to content

Commit 0985054

Browse files
author
CoBatch
committed
ci: add Legacy Paths Guard (no-shim policy)
BPOE-Dots: encouraged (Run-WithDotsEx)
1 parent 0a1afbd commit 0985054

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/legacy-guard.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Legacy Paths Guard
2+
on: [pull_request]
3+
jobs:
4+
guard:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Block legacy tool paths
9+
shell: bash
10+
run: |
11+
set -e
12+
CHANGED=$(git diff --name-only origin/main...HEAD || true)
13+
if echo "$CHANGED" | grep -E '^tools/(Unpack|Scan|Backfill|New-InboxManifest)\.ps1$|^\.github/workflows/advice-inbox-guard\.yml$' ; then
14+
echo "::error ::Legacy tool path changed; use tools/cosuite/1.0/* instead."
15+
exit 1
16+
fi

0 commit comments

Comments
 (0)