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
Copy file name to clipboardExpand all lines: docs/claude_code.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,12 @@ When the `@claude` handle is mentioned in the title of a SmartFix-created GitHub
22
22
23
23
***Contrast Assess:** You need an active Contrast Assess deployment identifying vulnerabilities in your application.
24
24
***GitHub:** Your project must be hosted on GitHub and use GitHub Actions. In the GitHub repository's Settings, enable the Actions > General > Workflow Permissions checkbox for "Allow GitHub Actions to create and approve pull requests".
25
-
***Claude Code Requirements:**
26
-
* GitHub repository with **Issues** and **GitHub Copilot** enabled
27
-
* GitHub Personal Access Token (PAT) with:
25
+
***Claude Code Requirements:**
26
+
* Follow the Claude setup docs: [Claude Code GitHub Actions](https://docs.claude.com/en/docs/claude-code/github-actions#setup)
27
+
* Install the [Claude Code GitHub App](https://github.com/apps/claude) on your GitHub repository.
28
+
* Copy the [claude.yml](https://github.com/anthropics/claude-code-action/blob/main/examples/claude.yml) workflow file example into your GitHub repository
# When using Claude Code, it is unnecessary to authenticate with an LLM API from this step.
74
+
# You must authenticate with your LLM provider in the claude.yml workflow file instead.
71
75
72
76
- name: Checkout repository
73
77
uses: actions/checkout@v4
@@ -106,6 +110,7 @@ jobs:
106
110
uses: Contrast-Security-OSS/contrast-ai-smartfix-action@v1 # Replace with the latest version
107
111
with:
108
112
run_task: merge
113
+
coding_agent: 'CLAUDE_CODE'
109
114
# --- GitHub Token ---
110
115
github_token: ${{ secrets.PAT_TOKEN }}
111
116
# --- Contrast API Credentials ---
@@ -131,6 +136,7 @@ jobs:
131
136
uses: Contrast-Security-OSS/contrast-ai-smartfix-action@v1 # Replace with the latest version
132
137
with:
133
138
run_task: closed
139
+
coding_agent: 'CLAUDE_CODE'
134
140
# --- GitHub Token ---
135
141
github_token: ${{ secrets.PAT_TOKEN }}
136
142
# --- Contrast API Credentials ---
@@ -193,7 +199,7 @@ SmartFix focuses on remediating:
193
199
194
200
## Configuration Inputs
195
201
196
-
The following are key inputs for the SmartFix GitHub Action using the GitHub Copilot coding agent. Refer to the `action.yml` in the SmartFix GitHub Action repository for a complete list and default values.
202
+
The following are key inputs for the SmartFix GitHub Action using the GitHub Claude code coding agent. Refer to the `action.yml` in the SmartFix GitHub Action repository for a complete list and default values.
0 commit comments