Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"utopia-php/framework": "0.33.*",
"utopia-php/cache": "1.*",
"utopia-php/pools": "1.*",
"utopia-php/mongo": "1.*"
"utopia-php/mongo": "1.*",
"utopia-php/query": "0.1.*"
},
"require-dev": {
"fakerphp/faker": "1.23.*",
Expand All @@ -58,6 +59,12 @@
"mongodb/mongodb": "Needed to support MongoDB Database Adapter"

},
"repositories": [
{
"type": "vcs",
"url": "git@github.com:utopia-php/query.git"
}
Comment on lines +62 to +66
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

cat -n composer.json | head -70

Repository: utopia-php/database

Length of output: 2871


🏁 Script executed:

python - <<'PY'
import json
from pathlib import Path

data = json.loads(Path("composer.json").read_text())
repos = data.get("repositories", [])
for idx, repo in enumerate(repos):
    url = repo.get("url", "")
    if url.startswith("git@"):
        print(f"Repository[{idx}] uses SSH URL: {url}")
    else:
        print(f"Repository[{idx}] URL type: {url}")
PY

Repository: utopia-php/database

Length of output: 126


Use HTTPS for the VCS repository URL to prevent install failures in CI.

Line 65 uses an SSH URL (git@github.com:utopia-php/query.git), which fails in non-interactive CI environments that lack SSH key configuration. Change to the HTTPS equivalent:

🔧 Proposed fix
     "repositories": [
         {
             "type": "vcs",
-            "url": "git@github.com:utopia-php/query.git"
+            "url": "https://github.com/utopia-php/query.git"
         }
     ],
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"repositories": [
{
"type": "vcs",
"url": "git@github.com:utopia-php/query.git"
}
"repositories": [
{
"type": "vcs",
"url": "https://github.com/utopia-php/query.git"
}
],
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@composer.json` around lines 62 - 66, Replace the SSH Git URL in the
composer.json "repositories" entry with its HTTPS equivalent to avoid CI SSH
auth issues; locate the "repositories" array and update the url value currently
set to "git@github.com:utopia-php/query.git" to use
"https://github.com/utopia-php/query.git" so installs succeed in non-interactive
CI environments.

],
"config": {
"allow-plugins": {
"php-http/discovery": false,
Expand Down
124 changes: 94 additions & 30 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading