fix: exclude auto-generated README files from PR risk scan (#2454)

* fix: exclude auto-generated README files from PR risk scan

The scanner was processing README.md and docs/README.*.md which are
auto-generated by \
pm run build\ and shouldn't be reviewed for risk
patterns.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a278c6bb-22ad-4d43-8e68-60432773f987

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot-Session: a278c6bb-22ad-4d43-8e68-60432773f987
This commit is contained in:
Aaron Powell
2026-07-28 11:21:47 +10:00
committed by GitHub
parent 0d466ecec2
commit 7dc152f472
+3 -1
View File
@@ -26,7 +26,9 @@ jobs:
- name: Collect changed files
run: |
git diff --name-only --diff-filter=ACMR "origin/${{ github.base_ref }}...HEAD" > changed-files.txt
git diff --name-only --diff-filter=ACMR "origin/${{ github.base_ref }}...HEAD" \
| awk '!/^(README\.md|docs\/README\.[^/]+\.md)$/' \
> changed-files.txt
echo "Changed files:"
cat changed-files.txt || true