When to Integrate VulnScan
Use CI/CD integration when:- The application has a stable staging or preview environment.
- Development teams want web/API security feedback before release.
- Release governance requires security test evidence.
- JSON/CSV output should be imported into issue tracking or data platforms.
- Important endpoints should be scanned after selected builds.
Recommended Pipeline Model
- Build the application.
- Deploy to staging or a preview environment.
- Run smoke tests.
- Run the VulnScan CLI against the staging URL.
- Export JSON/CSV into the build artifacts directory.
- Import results into issue tracking or report storage.
- Optionally block release on Critical or new High findings.
CLI Example
GitHub Actions
GitLab CI
Jenkins Pipeline
Release Gates
A practical starting policy:- Block release on Critical findings.
- Require security approval for new High findings.
- Allow Medium/Low findings when remediation is tracked.
- Always archive JSON/CSV for traceability.
Secret Handling
- Store tokens in the CI/CD secret store.
- Do not print tokens in logs.
- Use staging-specific tokens.
- Revoke tokens when the pipeline no longer needs them.
- Grant only the permissions required for testing.