Skip to main content

Why run Nuclei in CI/CD?

Adding Nuclei to CI/CD helps catch regressions earlier and keeps security checks close to code changes. Common patterns:
  • Scan staging endpoints on every push.
  • Run template-based regression checks for known issues.
  • Export SARIF and publish findings in GitHub Code Scanning.

GitHub Actions with nuclei-action

Use projectdiscovery/nuclei-action to install and run Nuclei directly in a workflow.

Minimal scan example

Install only + run manually

Use config file from repository

Upload SARIF to GitHub Code Scanning

Nuclei can export SARIF and upload it to GitHub Code Scanning.

Inputs and precedence

  • args passes CLI flags directly to Nuclei.
  • config passes inline Nuclei config.
  • config-path points to a config file in the repository.
  • Do not set config and config-path together.
  • If args is set, it takes precedence over config and config-path.

Best practices

  • Pin nuclei-action to @v3.
  • Store sensitive values in GitHub Secrets.
  • Keep custom templates/config in the repository for reproducibility.
  • Use SARIF upload when your team relies on GitHub-native triage.
For the full action interface and examples, see the official repository: github.com/projectdiscovery/nuclei-action.