diff --git a/nyx-scan/action.yml b/nyx-scan/action.yml index d3a9884..f04af0b 100644 --- a/nyx-scan/action.yml +++ b/nyx-scan/action.yml @@ -24,7 +24,7 @@ runs: - name: Clone nyx from Forgejo mirror shell: bash run: | - git clone --depth=1 --branch master \ + git clone --depth=1 --branch v0.7.0 \ "https://oauth2:${{ inputs.forgejo_push_token }}@bitfreedom.net/code/apunkt/nyx.git" \ .nyx-src @@ -54,6 +54,17 @@ runs: shell: bash run: .nyx-src/target/release/nyx --version + - name: Debug fingerprints + if: always() + shell: bash + run: | + .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', []): + print(f.get('fingerprint','?'), '|', f.get('rule_id','?'), '|', f.get('path','?'), '|', f.get('line','?')) + " + - name: Run NYX scan id: nyx shell: bash