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 10 months ago

The best way to fix this problem is to change the protocol in the gem source URL on line 11 of the Gemfile from HTTP to HTTPS. Specifically, the URL passed to the source key of the gem method should be changed from "http://gems.salesloft.com" to "https://gems.salesloft.com".
This change should be made only on line 11 of the Gemfile, and no other edits or imports are necessary.


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