dependabot-helm 0.303.0 → 0.304.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dependabot/helm/helpers.rb +20 -5
- data/lib/dependabot/helm/update_checker.rb +14 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18b41f9a6d864c0db1f75d411cbd698e7685345b45739ca8b836dd0fcb298f9d
|
4
|
+
data.tar.gz: 4b47f765485a6789301ed5bf49ad69e9299b3db1e9701a68ed2d8b85655b7db6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e4f82c1f38579186498a0cf8a0de6613bd2336d36f7da1463156992e9232cd504e9b87ea7c1adaec323404fcb3ccca2e4a7588f7736597e34b6d3e6c8b8bda0
|
7
|
+
data.tar.gz: 96c2484a65b2fbc8008d1649791258a9327e1af177c702c4d25d85a02b6874605a970d643eaa1e6bcb3d509ac05dbbb0859447ec2836a440930586005151d45c
|
@@ -22,13 +22,13 @@ module Dependabot
|
|
22
22
|
).strip
|
23
23
|
end
|
24
24
|
|
25
|
-
sig { params(repo_name: String,
|
26
|
-
def self.add_repo(repo_name,
|
27
|
-
Dependabot.logger.info("Adding Helm repository: #{repo_name} (#{
|
25
|
+
sig { params(repo_name: String, repository_url: String).returns(String) }
|
26
|
+
def self.add_repo(repo_name, repository_url)
|
27
|
+
Dependabot.logger.info("Adding Helm repository: #{repo_name} (#{repository_url})")
|
28
28
|
|
29
29
|
Dependabot::SharedHelpers.run_shell_command(
|
30
|
-
"helm repo add #{repo_name} #{
|
31
|
-
fingerprint: "helm repo add <repo_name> <
|
30
|
+
"helm repo add #{repo_name} #{repository_url}",
|
31
|
+
fingerprint: "helm repo add <repo_name> <repository_url>"
|
32
32
|
)
|
33
33
|
end
|
34
34
|
|
@@ -51,6 +51,21 @@ module Dependabot
|
|
51
51
|
fingerprint: "helm dependency update"
|
52
52
|
)
|
53
53
|
end
|
54
|
+
|
55
|
+
sig { params(username: String, password: String, repository_url: String).returns(String) }
|
56
|
+
def self.registry_login(username, password, repository_url)
|
57
|
+
Dependabot.logger.info("Logging into Helm registry \"#{repository_url}\"")
|
58
|
+
|
59
|
+
Dependabot::SharedHelpers.run_shell_command(
|
60
|
+
"helm registry login --username #{username} --password #{password} #{repository_url}",
|
61
|
+
fingerprint: "helm registry login --username <username> --password <password> <repository_url>"
|
62
|
+
)
|
63
|
+
rescue StandardError => e
|
64
|
+
Dependabot.logger.error(
|
65
|
+
"Failed to authenticate for #{repository_url}: #{e.message}"
|
66
|
+
)
|
67
|
+
raise
|
68
|
+
end
|
54
69
|
end
|
55
70
|
end
|
56
71
|
end
|
@@ -151,6 +151,7 @@ module Dependabot
|
|
151
151
|
Dependabot.logger.info("Fetching releases for Helm chart: #{chart_name}")
|
152
152
|
|
153
153
|
if repo_name && repo_url
|
154
|
+
authenticate_registry_source(repo_url)
|
154
155
|
begin
|
155
156
|
Helpers.add_repo(repo_name, repo_url)
|
156
157
|
Helpers.update_repo
|
@@ -175,6 +176,19 @@ module Dependabot
|
|
175
176
|
end
|
176
177
|
end
|
177
178
|
|
179
|
+
sig { params(repo_url: T.nilable(String)).returns(T.nilable(String)) }
|
180
|
+
def authenticate_registry_source(repo_url)
|
181
|
+
return unless repo_url
|
182
|
+
|
183
|
+
repo_creds = Shared::Utils::CredentialsFinder.new(@credentials, private_repository_type: "helm_repository")
|
184
|
+
.credentials_for_registry(repo_url)
|
185
|
+
return unless repo_creds
|
186
|
+
|
187
|
+
Helpers.registry_login(T.must(repo_creds["username"]), T.must(repo_creds["password"]), repo_url)
|
188
|
+
rescue StandardError
|
189
|
+
raise PrivateSourceAuthenticationFailure, repo_url
|
190
|
+
end
|
191
|
+
|
178
192
|
sig { returns(T.nilable(Gem::Version)) }
|
179
193
|
def fetch_latest_chart_version
|
180
194
|
chart_name = dependency.name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-helm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.304.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03
|
11
|
+
date: 2025-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.304.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.304.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dependabot-docker
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.304.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.304.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: debug
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -271,7 +271,7 @@ licenses:
|
|
271
271
|
- MIT
|
272
272
|
metadata:
|
273
273
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
274
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
274
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.304.0
|
275
275
|
post_install_message:
|
276
276
|
rdoc_options: []
|
277
277
|
require_paths:
|