Skip to content

Conversation

@james-ball-qualcomm
Copy link
Collaborator

Still need a fix for Python.

ruby "3.2.3"

source "https://rubygems.org"
source "http://rubygems.org"

Check failure

Code scanning / CodeQL

Dependency download using unencrypted communication channel High

Dependency source URL uses the unencrypted protocol HTTP. Use HTTPS instead.

Copilot Autofix

AI 11 months ago

The best way to fix the problem is to change the protocol of the source URL from HTTP to HTTPS. This ensures that the communication channel used to download the dependencies is encrypted, protecting against potential MITM attacks.

To implement this fix, we need to modify the Gemfile to use the HTTPS protocol for the source URL. Specifically, we will change the line source "http://rubygems.org" to source "https://rubygems.org".

Suggested changeset 1
Gemfile

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/Gemfile b/Gemfile
--- a/Gemfile
+++ b/Gemfile
@@ -4,3 +4,3 @@
 
-source "http://rubygems.org"
+source "https://rubygems.org"
 
EOF
@@ -4,3 +4,3 @@

source "http://rubygems.org"
source "https://rubygems.org"

Copilot is powered by AI and may make mistakes. Always verify output.
@james-ball-qualcomm
Copy link
Collaborator Author

I'm getting this Code scanning result (CodeQL) failing in the smoke test. How do we handle this? We intentionally changed from https to http.

image

@dhower-qc
Copy link
Collaborator

I think we determined this was a configuration issue with your machine. Re-open if I'm mis-remembering.

@dhower-qc dhower-qc closed this Jan 14, 2025
@james-ball-qualcomm james-ball-qualcomm deleted the 388-cant-install-python-into-devcontainer-ssl-certificate-failure branch May 16, 2025 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't install python into devcontainer (SSL certificate failure)

3 participants