mirror of
https://github.com/github/awesome-copilot.git
synced 2026-08-02 07:22:32 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user