Skip to content

Commit 83a06ed

Browse files
committed
ci fixes
1 parent 7f6555f commit 83a06ed

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/agent-boundary-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
3434
for f in "${CHANGED[@]}"; do
3535
[ -f "$f" ] || continue
36+
# Don't scan CI/workflow files
37+
[[ "$f" == .github/* ]] && continue
3638
case "$f" in
3739
*.md|*.txt|*.yml|*.yaml|*.json|*.toml|*.ts|*.tsx|*.js|*.jsx|*.sh|*.py|*.rb|*.tf|*.hcl)
3840
if grep -Einq "$FORBIDDEN" "$f"; then

.github/workflows/quality-gate.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- uses: dorny/paths-filter@v3
2121
id: filter
2222
with:
23+
list-files: shell
2324
filters: |
2425
source:
2526
- '**/*.ts'
@@ -33,6 +34,8 @@ jobs:
3334
- '**/*.sh'
3435
- '!**/*.test.*'
3536
- '!**/*.spec.*'
37+
- '!.github/**'
38+
- '!**/*.md'
3639
tests:
3740
- '**/*.test.*'
3841
- '**/*.spec.*'
@@ -44,9 +47,15 @@ jobs:
4447
if: needs.changed-files.outputs.source_changed == 'true'
4548
runs-on: ubuntu-latest
4649
steps:
50+
- name: Report changed files
51+
run: |
52+
echo "Source files changed: ${{ needs.changed-files.outputs.source_changed }}"
53+
echo "Test files changed: ${{ needs.changed-files.outputs.tests_changed }}"
54+
4755
- name: Require test updates when source changes
4856
run: |
4957
if [ "${{ needs.changed-files.outputs.tests_changed }}" != "true" ]; then
50-
echo "Source files changed without accompanying test changes."
58+
echo "::error::Source files changed without accompanying test changes."
59+
echo "Note: .md, .github/*, and test files are excluded from source filter."
5160
exit 1
5261
fi

0 commit comments

Comments
 (0)