Available on WebNetSec and Pentest Suite plans.
Benefits
Platform agnostic
Works with any CI/CD system that can make HTTP requests.
Automated security
Run scans as part of your deployment pipeline.
Fail conditions
Stop deployments when vulnerabilities are detected.
Flexible output
Get results in text or JSON format.
Setting up CI/CD integration
1
Create a pipeline action
Go to Settings > Integrations > Generic CI/CD and click Create action.
2
Configure settings
Set the target URL, scan type, output format, and fail condition.
3
Get your API key
The Docker command takes your Pentest-Tools API key as the
--key argument. Store it as a secret in your CI/CD system, not directly in pipeline files.4
Run the Docker command
Copy the generated Docker command and add it to your pipeline. It runs in any CI/CD system that supports Docker.
Configuration options
Fail conditions
Running the scan
The integration generates a Docker command using thepentesttoolscom/ptt-scan image. Run it from any pipeline that supports Docker: GitLab CI, Jenkins, CircleCI, Azure DevOps, or anything else.
<API_KEY>. The other values come from your action configuration in Pentest-Tools.com.
Output handling
Text format
Suitable for console output and log review:JSON format
Parse programmatically for custom handling:This is a simplified example. See the API reference for the complete finding schema.
Best practices
- Run Light scans for quick validation, Deep scans for thorough testing
- Set fail conditions based on your pipeline stage (stricter for production)
- Store scan results as artifacts for later review
- Set appropriate timeouts for scan completion
Troubleshooting
Authentication failed
Authentication failed
- Verify the secret is correctly configured
- Check that the secret hasn’t expired
- Check that the environment variable is accessible
Scan timeout
Scan timeout
- Deep scans may take longer; adjust pipeline timeout
- Verify the target is accessible from the internet
- Check for network restrictions
Pipeline fails unexpectedly
Pipeline fails unexpectedly
- Review the fail condition setting
- Check scan results for findings above threshold
- Verify the action name is correct