Add options for json and jsonl ouputs #102

Open
ansereb wants to merge 3 commits from ansereb/main into main
ansereb commented 2025-12-18 13:00:31 -05:00 (Migrated from github.com)

Currently presented option json is not working with latest nuclei version. Seems like it is deleted from CLI and i receive following error when using this action:

uses: projectdiscovery/nuclei-action@main
with:
   target: https://example.com
   json: true
/opt/hostedtoolcache/nuclei/3.6.1/x64/nuclei -target https://example.com -se=nuclei.sarif -o=nuclei.log -json -irr
flag provided but not defined: -json
Error: The process '/opt/hostedtoolcache/nuclei/3.6.1/x64/nuclei' failed with exit code 2

I decided to not touch current option json and added two new options json-export and jsonl-export by analogy with sarif-export

Currently presented option `json` is not working with latest nuclei version. Seems like it is deleted from CLI and i receive following error when using this action: ``` uses: projectdiscovery/nuclei-action@main with: target: https://example.com json: true ``` ``` /opt/hostedtoolcache/nuclei/3.6.1/x64/nuclei -target https://example.com -se=nuclei.sarif -o=nuclei.log -json -irr flag provided but not defined: -json Error: The process '/opt/hostedtoolcache/nuclei/3.6.1/x64/nuclei' failed with exit code 2 ``` I decided to not touch current option `json` and added two new options `json-export` and `jsonl-export` by analogy with `sarif-export`
dwisiswant0 (Migrated from github.com) reviewed 2025-12-18 13:00:31 -05:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin ansereb/main:ansereb/main
git switch ansereb/main

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff ansereb/main
git switch ansereb/main
git rebase main
git switch main
git merge --ff-only ansereb/main
git switch ansereb/main
git rebase main
git switch main
git merge --no-ff ansereb/main
git switch main
git merge --squash ansereb/main
git switch main
git merge --ff-only ansereb/main
git switch main
git merge ansereb/main
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
projectdiscovery/nuclei-action!102
No description provided.