mirror of
https://github.com/github/awesome-copilot.git
synced 2026-03-13 12:45:13 +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
|
id: check
|
||||||
run: |
|
run: |
|
||||||
# Check for YAML/lock files in workflows/ and any .github/ modifications
|
# 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 -- \
|
forbidden=$(git diff --name-only --diff-filter=ACM origin/${{ github.base_ref }}...HEAD -- \
|
||||||
'workflows/**/*.yml' \
|
'workflows/**/*.yml' \
|
||||||
'workflows/**/*.yaml' \
|
'workflows/**/*.yaml' \
|
||||||
'workflows/**/*.lock.yml' \
|
'workflows/**/*.lock.yml' \
|
||||||
'.github/*' \
|
'.github/*' \
|
||||||
'.github/**')
|
'.github/**' \
|
||||||
|
| grep -v '^\.github/aw/actions-lock\.json$')
|
||||||
|
|
||||||
if [ -n "$forbidden" ]; then
|
if [ -n "$forbidden" ]; then
|
||||||
echo "❌ Forbidden files detected:"
|
echo "❌ Forbidden files detected:"
|
||||||
|
|||||||
Reference in New Issue
Block a user