entitlements-github-plugin 0.7.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9080cc49d01feac15d1437b9d665d00321106ef875daca827daa2f863e422065
4
- data.tar.gz: d351b657f2fefc75d4e629181bbe17204f41fdd8dc5cb83fb3a2df640ba7957e
3
+ metadata.gz: 684563b348978cba23282a6ea80a590b5a7335ec3ebf0278abb6a7a7b891c8ce
4
+ data.tar.gz: 360ddce764d1e3077216e066a3bdaba44a37e8df61c817f9df0eb887fcb3beca
5
5
  SHA512:
6
- metadata.gz: d90d3b9eb5663b77ed4e2098a1a06f26322aa7a8c01e75b91e73f1c5635030afe76d93cf819d4df19deff6e9b317247da230d31578acd61b7679e10700d0c6c4
7
- data.tar.gz: b2510ac0f9d8d318de6e2fe675c29e7c6c9de97c12da03a8661c31baf71e93e996d78f9c310254751007d088da0d691fc34edbbd46e8d512fa7fd0f35429c7fe
6
+ metadata.gz: c5d0ed6468aff36d7ca1047218273dc86173063896eaf4cbf88d47189c6daeb73e3eac8f84c6ecabc82b4293079bc06b0f6edb146a6168043cfe0629ecb5c014
7
+ data.tar.gz: a79d07768d11a62362b6dfe55a897805d763c4b493475b8e1607a211b0c82066aa284effb191554cabaaaf8b7ba2c94fc1d6712d706afba4bbbab98ff5cc9ddb
@@ -459,6 +459,11 @@ module Entitlements
459
459
  begin
460
460
  result = octokit.add_team_membership(team.team_id, user, role:)
461
461
  result[:state] == "active" || result[:state] == "pending"
462
+ rescue Octokit::UnprocessableEntity => e
463
+ raise e unless ignore_not_found && e.message =~ /Enterprise Managed Users must be part of the organization to be assigned to the team/
464
+
465
+ Entitlements.logger.warn "User #{user} not found in organization #{org}, ignoring."
466
+ false
462
467
  rescue Octokit::NotFound => e
463
468
  raise e unless ignore_not_found
464
469
 
data/lib/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Entitlements
4
4
  module Version
5
- VERSION = "0.7.0"
5
+ VERSION = "1.1.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entitlements-github-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc. Security Ops
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-28 00:00:00.000000000 Z
11
+ date: 2024-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contracts
@@ -72,44 +72,36 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.3'
75
+ version: '1.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.3'
82
+ version: '1.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 13.2.0
89
+ version: '13.2'
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 13.2.1
90
93
  type: :development
91
94
  prerelease: false
92
95
  version_requirements: !ruby/object:Gem::Requirement
93
96
  requirements:
94
97
  - - "~>"
95
98
  - !ruby/object:Gem::Version
96
- version: 13.2.0
97
- - !ruby/object:Gem::Dependency
98
- name: rspec
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '='
102
- - !ruby/object:Gem::Version
103
- version: 3.13.0
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '='
99
+ version: '13.2'
100
+ - - ">="
109
101
  - !ruby/object:Gem::Version
110
- version: 3.13.0
102
+ version: 13.2.1
111
103
  - !ruby/object:Gem::Dependency
112
- name: rspec-core
104
+ name: rspec
113
105
  requirement: !ruby/object:Gem::Requirement
114
106
  requirements:
115
107
  - - '='
@@ -126,58 +118,58 @@ dependencies:
126
118
  name: rubocop
127
119
  requirement: !ruby/object:Gem::Requirement
128
120
  requirements:
129
- - - '='
121
+ - - "~>"
130
122
  - !ruby/object:Gem::Version
131
- version: 1.63.3
123
+ version: '1.64'
132
124
  type: :development
133
125
  prerelease: false
134
126
  version_requirements: !ruby/object:Gem::Requirement
135
127
  requirements:
136
- - - '='
128
+ - - "~>"
137
129
  - !ruby/object:Gem::Version
138
- version: 1.63.3
130
+ version: '1.64'
139
131
  - !ruby/object:Gem::Dependency
140
132
  name: rubocop-github
141
133
  requirement: !ruby/object:Gem::Requirement
142
134
  requirements:
143
- - - '='
135
+ - - "~>"
144
136
  - !ruby/object:Gem::Version
145
- version: 0.20.0
137
+ version: '0.20'
146
138
  type: :development
147
139
  prerelease: false
148
140
  version_requirements: !ruby/object:Gem::Requirement
149
141
  requirements:
150
- - - '='
142
+ - - "~>"
151
143
  - !ruby/object:Gem::Version
152
- version: 0.20.0
144
+ version: '0.20'
153
145
  - !ruby/object:Gem::Dependency
154
146
  name: rubocop-performance
155
147
  requirement: !ruby/object:Gem::Requirement
156
148
  requirements:
157
- - - '='
149
+ - - "~>"
158
150
  - !ruby/object:Gem::Version
159
- version: 1.21.0
151
+ version: '1.21'
160
152
  type: :development
161
153
  prerelease: false
162
154
  version_requirements: !ruby/object:Gem::Requirement
163
155
  requirements:
164
- - - '='
156
+ - - "~>"
165
157
  - !ruby/object:Gem::Version
166
- version: 1.21.0
158
+ version: '1.21'
167
159
  - !ruby/object:Gem::Dependency
168
160
  name: ruby-lsp
169
161
  requirement: !ruby/object:Gem::Requirement
170
162
  requirements:
171
163
  - - "~>"
172
164
  - !ruby/object:Gem::Version
173
- version: 0.16.7
165
+ version: 0.19.1
174
166
  type: :development
175
167
  prerelease: false
176
168
  version_requirements: !ruby/object:Gem::Requirement
177
169
  requirements:
178
170
  - - "~>"
179
171
  - !ruby/object:Gem::Version
180
- version: 0.16.7
172
+ version: 0.19.1
181
173
  - !ruby/object:Gem::Dependency
182
174
  name: rugged
183
175
  requirement: !ruby/object:Gem::Requirement
@@ -202,28 +194,34 @@ dependencies:
202
194
  name: simplecov
203
195
  requirement: !ruby/object:Gem::Requirement
204
196
  requirements:
205
- - - '='
197
+ - - "~>"
206
198
  - !ruby/object:Gem::Version
207
199
  version: 0.22.0
208
200
  type: :development
209
201
  prerelease: false
210
202
  version_requirements: !ruby/object:Gem::Requirement
211
203
  requirements:
212
- - - '='
204
+ - - "~>"
213
205
  - !ruby/object:Gem::Version
214
206
  version: 0.22.0
215
207
  - !ruby/object:Gem::Dependency
216
208
  name: simplecov-erb
217
209
  requirement: !ruby/object:Gem::Requirement
218
210
  requirements:
219
- - - '='
211
+ - - "~>"
212
+ - !ruby/object:Gem::Version
213
+ version: '1.0'
214
+ - - ">="
220
215
  - !ruby/object:Gem::Version
221
216
  version: 1.0.1
222
217
  type: :development
223
218
  prerelease: false
224
219
  version_requirements: !ruby/object:Gem::Requirement
225
220
  requirements:
226
- - - '='
221
+ - - "~>"
222
+ - !ruby/object:Gem::Version
223
+ version: '1.0'
224
+ - - ">="
227
225
  - !ruby/object:Gem::Version
228
226
  version: 1.0.1
229
227
  - !ruby/object:Gem::Dependency
@@ -247,6 +245,9 @@ dependencies:
247
245
  - - "~>"
248
246
  - !ruby/object:Gem::Version
249
247
  version: '3.23'
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: 3.23.1
250
251
  type: :development
251
252
  prerelease: false
252
253
  version_requirements: !ruby/object:Gem::Requirement
@@ -254,6 +255,9 @@ dependencies:
254
255
  - - "~>"
255
256
  - !ruby/object:Gem::Version
256
257
  version: '3.23'
258
+ - - ">="
259
+ - !ruby/object:Gem::Version
260
+ version: 3.23.1
257
261
  description: Entitlements plugin to manage GitHub Orgs and Team memberships and access
258
262
  email: security@github.com
259
263
  executables: []
@@ -283,14 +287,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
283
287
  requirements:
284
288
  - - ">="
285
289
  - !ruby/object:Gem::Version
286
- version: '0'
290
+ version: 3.0.0
287
291
  required_rubygems_version: !ruby/object:Gem::Requirement
288
292
  requirements:
289
293
  - - ">="
290
294
  - !ruby/object:Gem::Version
291
295
  version: '0'
292
296
  requirements: []
293
- rubygems_version: 3.5.3
297
+ rubygems_version: 3.5.9
294
298
  signing_key:
295
299
  specification_version: 4
296
300
  summary: GitHub dotcom provider for entitlements-app