entitlements-github-plugin 1.2.1 → 1.2.3

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: 63c03f0243b0e1b51bcf58b214a4cf70bc856522209b07f721d4e6b5c219dbe1
4
- data.tar.gz: 1fc7c61f4ca66cc75a4c212f4f0a40a21b6e5c7e4011dabef46bc6293d4220e0
3
+ metadata.gz: 39178775eee3074e73cc8fa83b13e6047b67f0b8aa05932f41254a9e74265b60
4
+ data.tar.gz: 3b73afc1b8e2685adddecc9a9943f96816209d545519c925c0f1080342defa5b
5
5
  SHA512:
6
- metadata.gz: b4344c74a359dc828711ceaea05cf083fc699218a43af046a8fddcd98fc8fe7651dc71e108c2d6f9abc9b5f1aa9f9b7a7b2f70d525927f1b3a179fca2f4e5d5c
7
- data.tar.gz: ca57d0790b548d6039b48163d38753cacbfd80d86fef7888835f0c70426273188d7533c2e04ce9ecd370ec5553996beb7613aba5fa2788d9ce6ffbde623b5285
6
+ metadata.gz: 593b0ccbbb09c47864290d1c9ec1f7ac519e769628159a0cff2357ba48167c2843a9c29e8d52a51f4e5a2d2545eb8f7b9fa6b613e01d149d04d1082e25d9468b
7
+ data.tar.gz: 698ee25bc5878a969bafbda9e591409c3c7152b4052b1d3de0fc9c1eaa264d8868378a1b20bd88414ec5c9e6923501ce4d550935940031cef31c455a7da2bad1
@@ -54,6 +54,9 @@ module Entitlements
54
54
 
55
55
  Entitlements.logger.warn "User #{user} not found in GitHub instance #{identifier}, ignoring."
56
56
  return false
57
+ rescue Octokit::UnprocessableEntity => e
58
+ Entitlements.logger.warn "Unprocessable entity when adding #{user} to organization #{org} with role #{role}: #{e.message}. This likely means the user blocked the invite, so we're ignoring them, but someone should check it."
59
+ return false
57
60
  end
58
61
 
59
62
  # Happy path
@@ -477,8 +477,6 @@ module Entitlements
477
477
 
478
478
  result[:state] == "active" || result[:state] == "pending"
479
479
  rescue Octokit::UnprocessableEntity => e
480
- raise e unless ignore_not_found && e.message =~ /Enterprise Managed Users must be part of the organization to be assigned to the team/
481
-
482
480
  Entitlements.logger.warn "User #{user} not found in organization #{org}, ignoring."
483
481
  false
484
482
  rescue Octokit::NotFound => e
data/lib/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Entitlements
4
4
  module Version
5
- VERSION = "1.2.1"
5
+ VERSION = "1.2.3"
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: 1.2.1
4
+ version: 1.2.3
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: 2026-05-05 00:00:00.000000000 Z
11
+ date: 2026-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contracts