@@ -54,6 +54,7 @@ Customize the scan with additional options:
5454 api_base : ' https://api.codeant.ai'
5555 include_paths : ' src/,lib/'
5656 exclude_paths : ' test/,docs/'
57+ scan_timeout : ' 600'
5758` ` `
5859
5960## Inputs
@@ -64,6 +65,7 @@ Customize the scan with additional options:
6465| `api_base` | CodeAnt API base URL | No | `https://api.codeant.ai` |
6566| `include_paths` | Comma-separated paths to include in scan | No | `''` (all files) |
6667| `exclude_paths` | Comma-separated paths to exclude from scan | No | `''` (none) |
68+ | `scan_timeout` | Scan timeout in seconds | No | `300` |
6769
6870# # Setup
6971
@@ -148,6 +150,17 @@ jobs:
148150 exclude_paths: 'src/tests/,backend/vendor/'
149151` ` `
150152
153+ # ## Custom Timeout Configuration
154+
155+ Configure a longer timeout for large repositories :
156+
157+ ` ` ` yaml
158+ - uses: CodeAnt-AI/codeant-ci-scan-action@v0.0.1
159+ with:
160+ access_token: ${{ secrets.ACCESS_TOKEN_GITHUB }}
161+ scan_timeout: '900' # 15 minutes (default: 300 seconds / 5 minutes)
162+ ` ` `
163+
151164# # Troubleshooting
152165
153166# ## Authentication Errors
@@ -162,6 +175,12 @@ jobs:
162175- Check that the API base URL is correct
163176- Review the action logs for specific error messages
164177
178+ # ## Timeout Issues
179+
180+ - If scans are timing out, increase the `scan_timeout` value (default : 300 seconds)
181+ - For large repositories, consider setting `scan_timeout : ' 900' ` or higher
182+ - Check network connectivity if timeouts persist
183+
165184## Support
166185
167186- 📧 Email: chinmay@codeant.ai
0 commit comments