mirror of
https://github.com/github/awesome-copilot.git
synced 2026-03-12 20:25:11 +00:00
fix: update forbidden file check to allow actions-lock.json for workflow compilation
This commit is contained in:
@@ -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:"
|
||||
|
||||
Reference in New Issue
Block a user