When investigating using this for managing github org membership for a new github org that my team is looking to make. In our case we are getting the output below. The github PAT I am using I've given all possible permissions just to validate that it is not the issue. I have uploaded my configs here, https://github.com/sean-smith-test/entitlements/tree/test-config in case that would help, and have verified that the GITHUB_API_BASE base is set.
Any assistance in understanding the permissions issue would be greatly appreciated.
Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!
Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!
D, [2022-08-19T12:07:19.491235 #77990] DEBUG -- : Loading people from "config/orgchart.yaml"
D, [2022-08-19T12:07:19.491624 #77990] DEBUG -- : Begin prefetch and validate for all groups
D, [2022-08-19T12:07:19.491864 #77990] DEBUG -- : Begin prefetch and validate for sean-smith-test
D, [2022-08-19T12:07:19.491954 #77990] DEBUG -- : Loading organization members and roles for sean-smith-test
D, [2022-08-19T12:07:19.492015 #77990] DEBUG -- : Setting up GitHub API connection to https://api.github.com/
WARNING: Unexpected middleware set after the adapter. This won't be supported from Faraday 1.0.
D, [2022-08-19T12:07:19.872553 #77990] DEBUG -- : Currently sean-smith-test has 0 admin(s) and 0 member(s)
D, [2022-08-19T12:07:19.872983 #77990] DEBUG -- : Finished prefetch and validate for sean-smith-test in 0.381097
D, [2022-08-19T12:07:19.873150 #77990] DEBUG -- : Finished all prefetch and validate in 0.381486
D, [2022-08-19T12:07:19.873214 #77990] DEBUG -- : Begin all calculations
D, [2022-08-19T12:07:19.873320 #77990] DEBUG -- : Calculating all groups for sean-smith-test
D, [2022-08-19T12:07:19.874561 #77990] DEBUG -- : Calculating members from /Users/sesmith/git/entitlements-config/github.com/sean-smith-test/org/member.txt
D, [2022-08-19T12:07:19.882282 #77990] DEBUG -- : Calculating members from /Users/sesmith/git/entitlements-config/github.com/sean-smith-test/org/member.yaml
D, [2022-08-19T12:07:19.884808 #77990] DEBUG -- : Calculating members from /Users/sesmith/git/entitlements-config/github.com/sean-smith-test/org/admin.txt
D, [2022-08-19T12:07:19.889698 #77990] DEBUG -- : Calculating members from /Users/sesmith/git/entitlements-config/github.com/sean-smith-test/org/admin.yaml
E, [2022-08-19T12:07:20.179811 #77990] ERROR -- : Got HTTP 401 POSTing to https://api.github.com/graphql
E, [2022-08-19T12:07:20.179916 #77990] ERROR -- : {"message":"Bad credentials","documentation_url":"https://docs.github.com/graphql"}
F, [2022-08-19T12:07:20.179985 #77990] FATAL -- : Abort due to GraphQL failure on "{\norganization(login: \"sean-smith-test\") {\npendingMembers(first: 100) {\nedges {\nnode {\nlogin\n}\ncursor\n}\n}\n}\n}"
Traceback (most recent call last):
30: from ./bin/deploy-entitlements:29:in `<main>'
29: from ./bin/deploy-entitlements:29:in `load'
28: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/entitlements-0.1.7/bin/deploy-entitlements:16:in `<top (required)>'
27: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
26: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'
25: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'
24: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/entitlements-0.1.7/lib/entitlements/cli.rb:34:in `run'
23: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
22: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'
21: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'
20: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/entitlements-0.1.7/lib/entitlements.rb:390:in `calculate'
19: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/entitlements-0.1.7/lib/entitlements.rb:390:in `map'
18: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/entitlements-0.1.7/lib/entitlements.rb:390:in `each'
17: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/entitlements-0.1.7/lib/entitlements.rb:391:in `block in calculate'
16: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
15: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'
14: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'
13: from /Users/sesmith/git/entitlements-config/plugins/backend/github_org/controller.rb:85:in `calculate'
12: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
11: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'
10: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'
9: from /Users/sesmith/git/entitlements-config/plugins/backend/github_org/controller.rb:251:in `changes'
8: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
7: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'
6: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'
5: from /Users/sesmith/git/entitlements-config/plugins/backend/github_org/provider.rb:79:in `pending_members'
4: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
3: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'
2: from /Users/sesmith/git/entitlements-config/vendor/gems/ruby/2.7.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'
1: from /Users/sesmith/git/entitlements-config/plugins/service/github.rb:109:in `pending_members'
/Users/sesmith/git/entitlements-config/plugins/service/github.rb:288:in `pending_members_from_graphql': GraphQL query failure (RuntimeError)
When investigating using this for managing github org membership for a new github org that my team is looking to make. In our case we are getting the output below. The github PAT I am using I've given all possible permissions just to validate that it is not the issue. I have uploaded my configs here, https://github.com/sean-smith-test/entitlements/tree/test-config in case that would help, and have verified that the
GITHUB_API_BASEbase is set.Any assistance in understanding the permissions issue would be greatly appreciated.