mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:20:43 +00:00
ci: right-size OpenGrep PR scan
* ci: right-size opengrep pr scan * ci: avoid opengrep rulepack self-scan * ci: opt opengrep workflows into node24 actions * ci: update opengrep workflow action majors
This commit is contained in:
@@ -127,7 +127,9 @@ if (( PATHS_PASSED == 0 )); then
|
||||
} | awk '/^(security\/opengrep\/|scripts\/run-opengrep\.sh$|\.semgrepignore$|\.github\/workflows\/opengrep-)/ { print }' | sort -u
|
||||
)
|
||||
if (( ${#SCAN_PATHS[@]} == 0 && ${#RULEPACK_CHANGED_PATHS[@]} > 0 )); then
|
||||
SCAN_PATHS=( "security/opengrep/precise.yml" )
|
||||
# Exercise rulepack loading without scanning the compiled YAML, which contains
|
||||
# rule pattern literals that can match themselves.
|
||||
SCAN_PATHS=( "scripts/run-opengrep.sh" )
|
||||
fi
|
||||
if (( ${#SCAN_PATHS[@]} == 0 )); then
|
||||
echo "→ No changed first-party paths for opengrep." >&2
|
||||
|
||||
Reference in New Issue
Block a user