dependabot-common 0.327.0 → 0.330.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/dependency.rb +13 -0
- data/lib/dependabot/errors.rb +8 -2
- data/lib/dependabot/shared_helpers.rb +6 -4
- data/lib/dependabot.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e75354fcd97069450a7897bc3f0c4788fc502b6b7541c7bb1ef01f14779aaec3
|
4
|
+
data.tar.gz: c71e3cf39d50d4510f12d137e17ba63204aacedce829eb66f48c7da672cece39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 844f8f4ad3fb9b201791b0499fa8c733667ed792701d19fe0791aaad172170b1dfa399244b32477e440ba97d8f2f2862a882c41eb9ab40e029b96affc8c75a9a
|
7
|
+
data.tar.gz: dd31e1be979b0a984c896be9ba4bc5060175deb1feea9ac0278e03666034dbdc5b711314603c8b56089bd7e2aa93e2e8cbbaa9e552deb75e565d26a3e49129ae
|
@@ -88,6 +88,19 @@ module Dependabot
|
|
88
88
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
89
89
|
attr_reader :metadata
|
90
90
|
|
91
|
+
# Attribution metadata for group membership tracking
|
92
|
+
sig { returns(T.nilable(String)) }
|
93
|
+
attr_accessor :attribution_source_group
|
94
|
+
|
95
|
+
sig { returns(T.nilable(Symbol)) }
|
96
|
+
attr_accessor :attribution_selection_reason
|
97
|
+
|
98
|
+
sig { returns(T.nilable(String)) }
|
99
|
+
attr_accessor :attribution_directory
|
100
|
+
|
101
|
+
sig { returns(T.nilable(Time)) }
|
102
|
+
attr_accessor :attribution_timestamp
|
103
|
+
|
91
104
|
# rubocop:disable Metrics/AbcSize
|
92
105
|
# rubocop:disable Metrics/PerceivedComplexity
|
93
106
|
sig do
|
data/lib/dependabot/errors.rb
CHANGED
@@ -47,7 +47,10 @@ module Dependabot
|
|
47
47
|
when Dependabot::BranchNotFound
|
48
48
|
{
|
49
49
|
"error-type": "branch_not_found",
|
50
|
-
"error-detail": {
|
50
|
+
"error-detail": {
|
51
|
+
"branch-name": error.branch_name,
|
52
|
+
message: error.message
|
53
|
+
}
|
51
54
|
}
|
52
55
|
when Dependabot::DirectoryNotFound
|
53
56
|
{
|
@@ -152,7 +155,10 @@ module Dependabot
|
|
152
155
|
when Dependabot::BranchNotFound
|
153
156
|
{
|
154
157
|
"error-type": "branch_not_found",
|
155
|
-
"error-detail": {
|
158
|
+
"error-detail": {
|
159
|
+
"branch-name": error.branch_name,
|
160
|
+
message: error.message
|
161
|
+
}
|
156
162
|
}
|
157
163
|
when Dependabot::DependencyFileNotParseable
|
158
164
|
{
|
@@ -371,11 +371,13 @@ module Dependabot
|
|
371
371
|
git_store_content = ""
|
372
372
|
deduped_credentials.each do |cred|
|
373
373
|
next unless cred["type"] == "git_source"
|
374
|
-
next unless cred["
|
374
|
+
next unless cred["host"]
|
375
375
|
|
376
|
-
|
377
|
-
|
378
|
-
|
376
|
+
has_creds = cred["username"] && cred["password"]
|
377
|
+
|
378
|
+
# Build authenticated URL with credentials if available
|
379
|
+
creds = has_creds ? "#{cred.fetch('username')}:#{cred.fetch('password')}@" : ""
|
380
|
+
authenticated_url = "https://#{creds}#{cred.fetch('host')}"
|
379
381
|
|
380
382
|
git_store_content += authenticated_url + "\n"
|
381
383
|
configure_git_to_use_https(cred.fetch("host"))
|
data/lib/dependabot.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.330.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
@@ -625,7 +625,7 @@ licenses:
|
|
625
625
|
- MIT
|
626
626
|
metadata:
|
627
627
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
628
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
628
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.330.0
|
629
629
|
rdoc_options: []
|
630
630
|
require_paths:
|
631
631
|
- lib
|