/harness:configure-repo-scanfrom Harness DevOps
Configures SAST/SCA code scanning in Harness CI pipelines using STO security scanners. Automatically detects pipeline structure, recommends scanners (e.g., Bandit, CodeQL, Checkmarx), and injects scanning steps with proper connector references.
Ships in Harness DevOps. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Add code scanning steps to existing Harness pipelines using STO security scanners.
Ask the user for the organization, project, and pipeline identifier if not already known. This skill only works with existing pipelines.
Once you have the identifiers, fetch the pipeline definition:
Call MCP tool: harness_get
Parameters:
resource_type: "pipeline"
resource_id: "<pipeline_identifier>"
org_id: "<organization>"
project_id: "<project>"
Parse the pipeline YAML from Step 1 to automatically identify the repository connector used in the pipeline.
Look for the connector reference in the pipeline structure:
pipeline.properties.ci.codebase.connectorRefIf no connector is found in the pipeline, inform the user that the pipeline does not have a codebase configuration and cannot proceed with repo scanning.
Parse the pipeline YAML from Step 1 to identify:
Present a structured view to the user showing:
Pipeline: <name>
Stage 1: <stage_name> (type: <stage_type>)
- Step 1: <step_name> (type: <step_type>)
- Step 2: <step_name> (type: <step_type>)
...
Stage 2: <stage_name> (type: <stage_type>)
- Step 1: <step_name> (type: <step_type>)
...
Ask the user where they would like to insert the code scanner step:
Present the available SAST scanners supported in Harness STO:
Available SAST Scanners:
Default recommendation: Use Harness Code as the native Harness SAST scanner. It provides integrated security scanning with minimal configuration and seamless integration with Harness STO.
Ask the user which scanner they prefer. If they don't specify, use Harness Code as the default.
Based on the scanner choice and connector from Step 2, generate the appropriate step YAML. The scanner step should be a native Harness STO step, not a Run step.
For Harness Code (default):
- step:
identifier: harness_code_scan
name: Harness Code Scan
type: HarnessSAST
spec:
mode: orchestration
config: sast_sca
target:
type: repository
detection: auto
advanced:
log:
level: info
For Bandit (Python):
- step:
identifier: bandit_scan
name: Bandit SAST
type: Bandit
spec:
mode: orchestration
config: default
target:
type: repository
detection: auto
advanced:
log:
level: info
For Semgrep:
- step:
identifier: semgrep_scan
name: Semgrep SAST
type: Semgrep
spec:
mode: orchestration
config: default
target:
type: repository
detection: auto
advanced:
log:
level: info
For other scanners: Reference references/scanner-types.md for scanner-specific configuration.
Insert the generated scanner step YAML at the location chosen in Step 3. Ensure proper indentation and structure.
Key rules:
cloneCodebase: true setting, the scanner will have access to the source codeexecution.steps array within the chosen stageCreate the updated pipeline YAML with the scanner step inserted.
Update the pipeline with the new scanner step:
Call MCP tool: harness_update
Parameters:
resource_type: "pipeline"
resource_id: "<pipeline_identifier>"
org_id: "<organization>"
project_id: "<project>"
body: { yamlPipeline: "<updated pipeline YAML string>" }
Report the results to the user:
## Code Scanner Configured
**Pipeline:** <pipeline_name>
**Scanner:** <scanner_type>
**Location:** Stage "<stage_name>", <position description>
**Connector:** <connector_name>
**Pipeline URL:** https://app.harness.io/ng/account/<account_id>/module/ci/orgs/<org_id>/projects/<project_id>/pipelines/<pipeline_id>/pipeline-studio/
**Note:** The scanner step has been configured with default settings. You can review and modify the configuration in the pipeline studio if you need to customize scan behavior, add exclusions, or adjust other parameters.
### Next Steps
1. Run the pipeline to verify the scanner step executes successfully
2. View scan results in the Security Tests tab of the execution
3. Configure exemptions for false positives via `/security-report` skill
4. Set up policies to fail pipelines on critical vulnerabilities via `/create-policy` skill
/configure-repo-scan
I want to add code scanning to my backend-api pipeline in the platform project
/configure-repo-scan
Set up SAST scanning for my Python service. Use Bandit and add it after the test step.
/configure-repo-scan
Add Harness Code scanner to my CI pipeline. Scan after build but before pushing to registry.
cloneCodebase: true so source code is availableharness_list (resource_type: "pipeline")pipeline.properties.ci.codebase.connectorRef for v0 pipelinescloneCodebase: true is set on the CI stageharness_diagnose for specific scanner errors^[a-zA-Z_][0-9a-zA-Z_]{0,127}$spec.execution.steps structureWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub harness/harness-ai --plugin harness73 skills in this plugin
/ai-operationsConfigure Harness AI-powered operations (AIDA) via MCP. Set up predictive failure analysis with ML models for memory leaks, disk exhaustion, connection pool saturation, and latency degradation. Configure intelligent alert correlation and noise reduction to reduce alert volume. Use when asked to set up predictive failure analysis, configure AI-powered alerting, reduce alert noise, or enable ML-based anomaly detection. Do NOT use for pipeline debugging (use debug-pipeline instead) or SLO management (use manage-slos instead). Trigger phrases: AIDA, predictive failure, alert correlation, noise reduction, anomaly detection, AI ops, predictive analysis, alert fatigue, ML alerting, intelligent alerting./analyze-costsAnalyze cloud costs, find optimization opportunities, and track anomalies using Harness CCM via MCP. Use when user says "cloud costs", "analyze costs", "cost optimization", "reduce spending", "cost report", or asks about cloud bills./approve-exemptApprove pending Harness STO security exemptions (waivers) at their current scope or elevate them to Project, Org, or Account scope. Users say "approve" for both in-scope approval and higher-scope elevation — do not require the word "promote". Supports approving one exemption or a mixed list where each row has a different approval scope. Default workflow lists pending exemptions in chat (paginated preview) so the user picks by row number — no copying from the Harness UI. Use when a user wants to approve, sign off on, or clear pending exemptions, waive approvals, org-wide approval, or account-wide approval. Trigger phrases: approve exempt, approve exemption, approve waiver, sign off exemption, clear pending exemption, approve for org, approve for account, org-wide approval, account-wide approval, pending exemptions.Other plugins' skills for the same job