mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
ci: skip symlinks in opengrep changed scan (#79930)
This commit is contained in:
@@ -114,6 +114,14 @@ if (( PATHS_PASSED == 0 )); then
|
|||||||
if (( CHANGED_ONLY )); then
|
if (( CHANGED_ONLY )); then
|
||||||
SCAN_PATHS=()
|
SCAN_PATHS=()
|
||||||
while IFS= read -r path; do
|
while IFS= read -r path; do
|
||||||
|
# OpenGrep errors when an explicit changed path is a symlink; scan the
|
||||||
|
# real target content, not duplicate guide aliases such as CLAUDE.md.
|
||||||
|
if [[ -L "$path" ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if [[ ! -f "$path" && ! -d "$path" ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
SCAN_PATHS+=( "$path" )
|
SCAN_PATHS+=( "$path" )
|
||||||
done < <(
|
done < <(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user