You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Store all sensitive values (API keys, tokens) as GitHub Secrets in your repository or Github organization settings.
156
156
* Replace `v1` with the specific version of the SmartFix GitHub Action you intend to use.
157
-
* The `contrast_app_id` must correspond to the Contrast Application ID for the code in the repository where this action runs.
157
+
* The `contrast_app_id` must correspond to the Contrast Application ID for the code in the repository where this action runs. To find the app ID, visit the application page in the Contrast web UI, then use the last UUID in the URL (immediately after `/applications/`) as the app ID value.
158
158
* The `build_command` configured for `generate_fixes` job must be an appropriate build command for your project and is required for the proper functioning of SmartFix. A `build_command` that runs your project's unit tests would be doubly useful as it would enable SmartFix to attempt to correct any changes that break your project's tests. Please remember to do any additional setup for your `build_command` (such as library installation) in the `generate_fixes` job as a new step preceeding the `Run Contrast AI SmartFix - Generate Fixes Action` step. For details about the libraries that come pre-installed with Github's Ubuntu runner, please visit https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md.
159
159
* The optional `formatting_command` will be run after SmartFix makes code changes to resolve the vulnerability and prior to any subsequent `build_command` invocations. We recommend supplying a `formatting_command` to fix code style issues in your project as it is an easy way to correct a common class of build-breaking problems.
160
160
***Suggestion:** Setup an API-only service user named “Contrast AI SmartFix” in your Organization Settings in your Contrast SaaS instance. At a minimum, it should have the “View Organization” permission and “Edit Application” permission for this application. This service user’s `contrast_authorization_key` value and the Organization’s `contrast_api_key` value should be used in the workflow.
@@ -169,7 +169,7 @@ For the Early Access release, SmartFix uses a "Bring Your Own LLM" (BYOLLM) mode
169
169
* Provide your `anthropic_api_key`.
170
170
* Option 2 - AWS Bedrock:
171
171
* Set `agent_model` to the appropriate model string (e.g., `bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0`).
*In order for the action to an AWS Bedrock LLM, you need to provide AWS credentials. We recommend using [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) to configure your credentials for a job.
173
173
174
174
***Experimental:****Google Gemini Pro (e.g., Gemini 2.5 Pro)**. Preliminary testing shows good results, but it has not been fully tested for this release.
175
175
* Set `agent_model` to the appropriate model string (e.g., `gemini/gemini-1.5-pro-latest`).
@@ -253,6 +253,27 @@ The following are key inputs for the GitHub Action. Refer to the `action.yml` in
253
253
|`debug_mode`| Enable verbose logging. | No |`false`|
254
254
|`skip_qa_review`| Skip the QA review step (not recommended). | No |`false`|
255
255
|`skip_writing_security_test`| Skip attempting to write a security test for the fix. | No |`false`|
256
+
|`enable_full_telemetry`| Control how much telemetry data is sent back to Contrast. When set to 'true' (default), sends complete log files and build commands. When 'false', sensitive build commands and full logs are omitted. | No |`true`|
257
+
258
+
## Telemetry
259
+
260
+
SmartFix collects telemetry data to help improve the service and diagnose issues. This data includes:
# Other Optional Inputs (see action.yml for defaults and more options)
87
+
# formatting_command: 'mvn spotless:apply' # Or the command appropriate for your project to correct the formatting of SmartFix\'s changes. This ensures that SmartFix follows your coding standards.
88
+
# max_open_prs: 5 # This is the maximum limit for the number of PRs that SmartFix will have open at single time
89
+
# enable_full_telemetry: 'false' # Set to false to disable full telemetry
0 commit comments