ci: skip symlinks in opengrep changed scan (#79930) · openclaw/openclaw@2f8cb86
steipete
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -114,6 +114,14 @@ if (( PATHS_PASSED == 0 )); then
|
114 | 114 | if (( CHANGED_ONLY )); then |
115 | 115 | SCAN_PATHS=() |
116 | 116 | while IFS= read -r path; do |
| 117 | +# OpenGrep errors when an explicit changed path is a symlink; scan the |
| 118 | +# real target content, not duplicate guide aliases such as CLAUDE.md. |
| 119 | +if [[ -L "$path" ]]; then |
| 120 | +continue |
| 121 | +fi |
| 122 | +if [[ ! -f "$path" && ! -d "$path" ]]; then |
| 123 | +continue |
| 124 | +fi |
117 | 125 | SCAN_PATHS+=( "$path" ) |
118 | 126 | done < <( |
119 | 127 | { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。