GitHub Actions Integration
Trigger Detectify scans from your GitHub Actions workflows using the Detectify REST API.
How It Works
You can integrate Detectify into any GitHub Actions workflow by calling the API directly:
- Trigger a scan after deployment using the REST API
- Poll for completion to wait for scan results
- Evaluate results against your security thresholds
Example Workflow
- name: Trigger Detectify Scan
run: |
SCAN_RESPONSE=$(curl -s -X POST \
"https://api.detectify.com/rest/v2/scans/${{ secrets.DETECTIFY_SCAN_PROFILE }}/" \
-H "X-Detectify-Key: ${{ secrets.DETECTIFY_API_KEY }}")
echo "Scan triggered"See the Developer API documentation for full API reference and the CI/CD integration overview for general best practices.
Last updated on