Skip to content

Commit 68cfcb5

Browse files
committed
fix: update forbidden file check to allow actions-lock.json for workflow compilation
1 parent f11ce95 commit 68cfcb5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/validate-agentic-workflows-pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ jobs:
2525
id: check
2626
run: |
2727
# Check for YAML/lock files in workflows/ and any .github/ modifications
28+
# Allow .github/aw/actions-lock.json which is needed for workflow compilation
2829
forbidden=$(git diff --name-only --diff-filter=ACM origin/${{ github.base_ref }}...HEAD -- \
2930
'workflows/**/*.yml' \
3031
'workflows/**/*.yaml' \
3132
'workflows/**/*.lock.yml' \
3233
'.github/*' \
33-
'.github/**')
34+
'.github/**' \
35+
| grep -v '^\.github/aw/actions-lock\.json$')
3436
3537
if [ -n "$forbidden" ]; then
3638
echo "❌ Forbidden files detected:"

0 commit comments

Comments
 (0)