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 +4 -4
- data/lib/entitlements/backend/github_team/service.rb +5 -0
- data/lib/version.rb +1 -1
- metadata +44 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 684563b348978cba23282a6ea80a590b5a7335ec3ebf0278abb6a7a7b891c8ce
|
4
|
+
data.tar.gz: 360ddce764d1e3077216e066a3bdaba44a37e8df61c817f9df0eb887fcb3beca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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:
|
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-
|
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
|
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
|
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
|
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
|
97
|
-
-
|
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:
|
102
|
+
version: 13.2.1
|
111
103
|
- !ruby/object:Gem::Dependency
|
112
|
-
name: rspec
|
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.
|
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.
|
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
|
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
|
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
|
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
|
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.
|
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.
|
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:
|
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.
|
297
|
+
rubygems_version: 3.5.9
|
294
298
|
signing_key:
|
295
299
|
specification_version: 4
|
296
300
|
summary: GitHub dotcom provider for entitlements-app
|