Skip to content

Commit 41dc8c8

Browse files
- updating README.md
- revert test poll duration
1 parent b1f121c commit 41dc8c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ This is an example variation of the workflow file for use with the Claude Code C
254254
contrast_api_key: ${{ secrets.CONTRAST_API_KEY }}
255255
256256
# GitHub Configuration
257-
github_token: ${{ secrets.GITHUB_TOKEN }} # Necessary for creating Issues and mentioning Claude Code (@claude).
257+
github_token: ${{ secrets.PAT_TOKEN }} # Necessary for creating Issues and mentioning Claude Code (@claude). This token should have read permission for metadata and read-write permission for issues and pulls. A best practice is to have an GitHub Organization service account create the PAT (an Organization admin may need to approve it)
258258
base_branch: '${{ github.event.repository.default_branch }}' # This will default to your repo default branch (other common base branches are 'main', 'master' or 'develop')
259259
coding_agent: 'CLAUDE_CODE' # Specify the use of Claude Code instead of the default SmartFix internal coding agent
260260

src/external_coding_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def generate_fixes(self, vuln_uuid: str, remediation_id: str, vuln_title: str, i
190190
log(f"Waiting for external agent to create a PR for issue #{issue_number}")
191191

192192
# Poll for a PR to be created by the external agent (100 attempts, 5 seconds apart = ~8.3 minutes max)
193-
pr_info = self._poll_for_pr(issue_number, remediation_id, vulnerability_label, remediation_label, max_attempts=1, sleep_seconds=400)
193+
pr_info = self._poll_for_pr(issue_number, remediation_id, vulnerability_label, remediation_label, max_attempts=100, sleep_seconds=5)
194194

195195
log("\n::endgroup::")
196196
if pr_info:

0 commit comments

Comments
 (0)