Skip to content
Open
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
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

ruby '2.1.2'

gem 'rails', '~> 4.0.0'
gem 'rails', '~> 5.0.0'

gem 'omniauth'
gem 'omniauth', '>= 1.3.1'

gem 'dotenv-rails'

gem 'omniauth-salesloft', source: "http://gems.salesloft.com"
gem 'omniauth-salesloft', '>= 1.0.0', source: "http://gems.salesloft.com"

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 about 2 months ago

To fix the vulnerability, change the protocol of the custom gem source URL in the Gemfile from http:// to https://. This way, dependencies are fetched over an encrypted connection, mitigating the risk of MITM attacks during gem installation. Specifically, update line 11 of Gemfile so that "http://gems.salesloft.com" becomes "https://gems.salesloft.com". No additional imports or changes are required, as this is a simple string change within the Gemfile.


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
@@ -8,7 +8,7 @@
 
 gem 'dotenv-rails'
 
-gem 'omniauth-salesloft', '>= 1.0.0', source: "http://gems.salesloft.com"
+gem 'omniauth-salesloft', '>= 1.0.0', source: "https://gems.salesloft.com"
 
 group :development do
   gem 'sqlite3'
EOF
@@ -8,7 +8,7 @@

gem 'dotenv-rails'

gem 'omniauth-salesloft', '>= 1.0.0', source: "http://gems.salesloft.com"
gem 'omniauth-salesloft', '>= 1.0.0', source: "https://gems.salesloft.com"

group :development do
gem 'sqlite3'
Copilot is powered by AI and may make mistakes. Always verify output.

group :development do
gem 'sqlite3'
Expand Down