Prerequisites
Before configuring your pipeline, you’ll need:- API Key — Generate one from the MindFort Dashboard under Settings > API Keys.
- Target ID — Find this in Target Inventory by clicking on the target you want to assess.
- Template ID (optional) — For templated tasks, find this under Tasks > Templates.
GitHub Actions Examples
Trigger an Assessment
Runs a security assessment against your target on every push or PR tomain. Configure the assessment method with the MINDFORT_ASSESSMENT_METHOD variable (turbo, balanced, or deep).
Required secrets and variables
Required secrets and variables
| Type | Name | Description |
|---|---|---|
| Secret | MINDFORT_API_KEY | Your MindFort API key |
| Variable | MINDFORT_TARGET_ID | UUID of the target to assess |
| Variable | MINDFORT_ASSESSMENT_METHOD | Optional — turbo (default), balanced, or deep |
List Targets and Findings
Use the organization-wide endpoints when you want to discover targets first, then list findings across all targets or within one target. These endpoints uselimit and offset pagination and include a total count.
GET /v1/findings returns finding summaries with id, title, severity, severity_score, status, created_at, and target_id. Defaults to status=ACTIVE; set exclude_secured=true to match the dashboard Open tab (vulnerabilities only). Use assessment_id to scope to one assessment run. See Findings API for all filters.
Use GET /v1/findings/{finding_id} to fetch full details, including description, impact, evidence, approach, and remediation_advice.
Cancel an Assessment
Use theassessment_id returned by POST /v1/assessments/run or copied from the Assessments page.
Update Finding Status
Use status updates to keep triage state in sync from automation.ACTIVE, RESOLVED, and ARCHIVED.
Start a New Task
Runs a custom security task with a natural-language instruction against your target.Required secrets and variables
Required secrets and variables
| Type | Name | Description |
|---|---|---|
| Secret | MINDFORT_API_KEY | Your MindFort API key |
| Variable | MINDFORT_TARGET_ID | UUID of the target to test |
| Variable | MINDFORT_TASK_MESSAGE | Natural-language instruction for the task |
| Variable | MINDFORT_TASK_MODEL | Optional — MF1_FAST (default) or MF1_SMART |
task_id returned by the start endpoint:
Start a Templated Task
Runs a pre-configured task template — no request body needed. Set up the template once in the MindFort dashboard and trigger it from your pipeline.Required secrets and variables
Required secrets and variables
| Type | Name | Description |
|---|---|---|
| Secret | MINDFORT_API_KEY | Your MindFort API key |
| Variable | MINDFORT_TEMPLATE_ID | UUID of the task template to run |
task_id; use that returned value when calling POST /v1/tasks/{task_id}/cancel.