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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79a4252f6734f8bd1ff7e005d0ad1feb8454d67adc9aa606378e508db270da78
4
- data.tar.gz: 312d95b14c8207368b6e3014ccbbc721260f15de2f7b8243ef80656aacd89df9
3
+ metadata.gz: e75354fcd97069450a7897bc3f0c4788fc502b6b7541c7bb1ef01f14779aaec3
4
+ data.tar.gz: c71e3cf39d50d4510f12d137e17ba63204aacedce829eb66f48c7da672cece39
5
5
  SHA512:
6
- metadata.gz: 6c1ac6235b527e8ca14df68b2d01a3518e86e7b4e85354c2009807ffa18d51380bac92232ea27dd116e0c1abdc0cfbd724b9eb3459989899df92618fdf92a768
7
- data.tar.gz: 11ecbdf6ced6cecfc4fd9db8634037ecb7edcd2bba930a05b108b41a49920b97cee8834d1c6905b8e1c1526ef42e620f81591f1f794038280d1a5340be59e90e
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
@@ -47,7 +47,10 @@ module Dependabot
47
47
  when Dependabot::BranchNotFound
48
48
  {
49
49
  "error-type": "branch_not_found",
50
- "error-detail": { "branch-name": error.branch_name }
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": { "branch-name": error.branch_name }
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["username"] && cred["password"]
374
+ next unless cred["host"]
375
375
 
376
- authenticated_url =
377
- "https://#{cred.fetch('username')}:#{cred.fetch('password')}" \
378
- "@#{cred.fetch('host')}"
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
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Dependabot
5
- VERSION = "0.327.0"
5
+ VERSION = "0.330.0"
6
6
  end
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.327.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.327.0
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