new file: .github/workflows/00_vetting.yml #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Check for unvetted files outside staging | ||
| run: | | ||
| unvetted=$(git diff --name-only origin/main HEAD | grep -E '^(src/.*\.(sh|conf|png|jpg|jpeg|gif|svg))$' || true) | ||
| if [[ -n "$unvetted" ]]; then | ||
| echo "ERROR: Found unvetted files outside ./staging:" | ||
| echo "$unvetted" | ||
| exit 1 | ||
| fi | ||