From 8983704b3cf2c5b3f88e69048a964e5eabe4709e Mon Sep 17 00:00:00 2001 From: Ankit Honey Date: Wed, 29 May 2024 17:53:09 -0700 Subject: [PATCH] replace cargo_registry keyword with new keyword registry (#9853) --- cargo/lib/dependabot/cargo/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cargo/lib/dependabot/cargo/helpers.rb b/cargo/lib/dependabot/cargo/helpers.rb index d920f70b30..7da6bff679 100644 --- a/cargo/lib/dependabot/cargo/helpers.rb +++ b/cargo/lib/dependabot/cargo/helpers.rb @@ -17,7 +17,7 @@ def self.setup_credentials_in_environment(credentials) # (We must add these environment variables here, or 'cargo update' will not think it is # configured properly for the private registries.) - token_env_var = "CARGO_REGISTRIES_#{cred['cargo_registry'].upcase.tr('-', '_')}_TOKEN" + token_env_var = "CARGO_REGISTRIES_#{cred['registry'].upcase.tr('-', '_')}_TOKEN" token = "placeholder_token" if cred["token"].nil?