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
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.Configuration options
| Setting | Description |
|---|---|
| Name | Identifier for the pipeline action |
| Target | URL or IP address to scan |
| Scan type | light or deep |
| Output format | text or json |
| Fail condition | Severity threshold to fail |
Fail conditions
| Condition | Pipeline fails when… |
|---|---|
| None | Never fails based on findings |
| Low | Low or higher severity found |
| Medium | Medium or higher severity found |
| High | High or higher severity found |
| Critical | Critical severity found |
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