diff --git a/nyx-scan/action.yml b/nyx-scan/action.yml index f04af0b..3340299 100644 --- a/nyx-scan/action.yml +++ b/nyx-scan/action.yml @@ -61,7 +61,8 @@ runs: .nyx-src/target/release/nyx scan --format json --index off 2>/dev/null | python3 -c " import json, sys data = json.load(sys.stdin) - for f in data.get('findings', []): + findings = data if isinstance(data, list) else data.get('findings', []) + for f in findings: print(f.get('fingerprint','?'), '|', f.get('rule_id','?'), '|', f.get('path','?'), '|', f.get('line','?')) "