Skip to main content
The GitHub Actions integration lets you run Pentest-Tools.com scans as part of your CI/CD pipeline.
Available on WebNetSec and Pentest Suite plans.

Benefits

Shift left security

Catch vulnerabilities before they reach production.

Automated testing

Run security scans automatically on every push or PR.

Fail conditions

Fail builds when vulnerabilities exceed your threshold.

Flexible output

Get results in text or JSON format.

Setting up GitHub Actions

1

Create an action

Go to Settings > Integrations > GitHub Actions and click Create action.
2

Configure the action

Set the target, scan type, output format, fail condition, and the name of the GitHub secret that will hold your Pentest-Tools API key.
3

Add your API key to GitHub Secrets

In your GitHub repository, go to Settings > Secrets and variables > Actions. Add your Pentest-Tools API key using the secret name from step 2.
4

Add to your workflow

Copy the generated YAML and add it to a file in .github/workflows/.

Action configuration

Fail conditions

Configure when your pipeline should fail:

Example workflow

The integration generates a YAML snippet using the pentesttoolscom/pentesttools-github-action action. Add it to a file in .github/workflows/. The action handles scan execution and output. No polling required.
The key references the GitHub repository secret you configured. Set fail to the severity level that should fail the build: high means the job fails if any high or critical findings are found.

Scan types

Use Light scans for PR validation to keep CI times short, and schedule Deep scans for nightly or weekly runs.

Output formats

Text output

Human-readable summary of findings, ideal for quick review in logs.

JSON output

Structured data for programmatic processing:

Best practices

Store your action secret in GitHub Secrets, never commit it to your repository.
  • Use fail conditions appropriate to your pipeline stage
  • Run Light scans on PRs, Deep scans on main branch
  • Review findings before merging, even if build passes
  • Set up notifications for failed security checks

Troubleshooting

  • Verify the action secret is correct
  • Check that the action exists and is enabled
  • Review GitHub Actions logs for errors
  • Review the fail condition setting
  • Check if findings meet the threshold
  • Verify the target is accessible