contrast-security-oss/Contrast AI SmartFix

Automatically generate fixes for vulnerabilities detected by Contrast Security

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 11, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: contrast-security-oss/contrast-ai-smartfix-action@f242b1ddad6ccedd0fab89ca2cee6cac606fc0c1 # v1.0.19

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
build_commandCommand to build the applicationno
formatting_commandCommand to format code (optional)no
max_open_prsMaximum number of open PRsno5
max_events_per_agentMaximum number of events per agent run before terminating (default: 120)no120
github_tokenGitHub token for PR operationsyes
base_branchBase branch for PRsno${{ github.event.repository.default_branch }}
contrast_hostContrast Security API hostyes
contrast_org_idContrast Organization IDyes
contrast_app_idContrast Application ID (use contrast_app_ids for monorepo support)no
contrast_app_idsJSON array of Contrast Application IDs for monorepo support (e.g. '["app-id-1", "app-id-2"]'). If contrast_app_id is also set, it takes precedence.no
contrast_authorization_keyContrast Authorization Keyyes
contrast_api_keyContrast API Keyyes
gemini_api_keyGemini API key for Google AI Studiono
anthropic_api_keyAnthropic API keyno
aws_bearer_token_bedrockAWS Bedrock API Bearer Token (alternative to AWS IAM credentials)no
aws_regionAWS Region for Bedrock (required for ALL Bedrock authentication methods: IAM credentials or bearer token)no
azure_api_keyAzure API Key for Azure OpenAIno
azure_api_baseAzure API Base URLno
azure_api_versionAzure API Versionno
agent_modelLLM model path to use for the agentno
skip_writing_security_testWhether to attempt writing security testsnofalse
use_smartfix_instructionsRead SMARTFIX_INSTRUCTIONS.md from the repo root and inject it into the fix agent prompt.notrue
use_repo_agent_instructionsFall back to existing agent instruction files (.github/copilot-instructions.md, AGENTS.md, CLAUDE.md, .cursorrules) if SMARTFIX_INSTRUCTIONS.md is absent or disabled. notrue
debug_modeEnable debug mode for verbose loggingnofalse
vulnerability_severitiesArray of vulnerability severity levels to process (allowed: CRITICAL, HIGH, MEDIUM, LOW, NOTE)no["CRITICAL", "HIGH", "MEDIUM"]
run_task[DEPRECATED] This input is now automatically determined. Setting this will be ignored.noauto
enable_full_telemetryEnable full telemetry, including potentially sensitive data. Defaults to true.notrue
coding_agentSpecifies the coding agent to use for generating fixes. Allowed values: SMARTFIX, GITHUB_COPILOT, CLAUDE_CODE.noSMARTFIX
use_contrast_llmUse Contrast LLM as your default LLM provider. Set to false if using your own LLM.nofalse
enable_anthropic_prompt_cachingEnable Anthropic prompt caching for supported models (bedrock/claude and anthropic/claude). Defaults to true.notrue

no outputs