fix: update forbidden file check to allow actions-lock.json for workflow compilation

This commit is contained in:
Bruno Borges
2026-02-24 15:08:38 -05:00
parent f11ce95ab7
commit 68cfcb5c46

View File

@@ -25,12 +25,14 @@ jobs:
id: check
run: |
# Check for YAML/lock files in workflows/ and any .github/ modifications
# Allow .github/aw/actions-lock.json which is needed for workflow compilation
forbidden=$(git diff --name-only --diff-filter=ACM origin/${{ github.base_ref }}...HEAD -- \
'workflows/**/*.yml' \
'workflows/**/*.yaml' \
'workflows/**/*.lock.yml' \
'.github/*' \
'.github/**')
'.github/**' \
| grep -v '^\.github/aw/actions-lock\.json$')
if [ -n "$forbidden" ]; then
echo "❌ Forbidden files detected:"