nyx-scan/action.yml aktualisiert
This commit is contained in:
parent
f8a5c7df76
commit
62d5af9d63
1 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue