Skip to content

Commit 05ed92e

Browse files
committed
Fix Sonar
1 parent a0b5875 commit 05ed92e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/sonarcloud.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: SonarCloud QA Gate
22

33
on:
4-
push:
54
pull_request:
5+
push:
6+
branches:
7+
- main
68

79
jobs:
810
sonarcloud:
@@ -34,7 +36,7 @@ jobs:
3436
args: >
3537
-Dsonar.host.url=https://sonarcloud.io
3638
-Dsonar.organization=codingworkflow
37-
-Dsonar.projectKey=codingworkflow_claude-code-a-api
39+
-Dsonar.projectKey=codingworkflow_claude-code-api
3840
3941
- name: SonarCloud quality gate
4042
uses: SonarSource/sonarqube-quality-gate-action@v1.1.0

claude_code_api/core/security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def ensure_directory_within_base(
136136
resolved_path = resolve_path_within_base(path_value, base_path)
137137
_ensure_within_base(path_value, base_path, resolved_path)
138138
try:
139-
os.makedirs(resolved_path, exist_ok=True)
139+
os.makedirs(resolved_path, exist_ok=True) # codeql[py/path-injection]
140140
except FileExistsError as e:
141141
raise _bad_request(
142142
f"Invalid path: {resolved_path} exists and is not a directory"

0 commit comments

Comments
 (0)