entitlements-gitrepo-auditor-plugin 1.0.0 → 1.1.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 +4 -4
- data/lib/entitlements/auditor/gitrepo.rb +4 -3
- data/lib/version.rb +1 -1
- metadata +7 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 053cd09f82fcb52b4a5112336e91c9099c0ad496614ed639e8626a7a76f7845d
|
|
4
|
+
data.tar.gz: fab361b4b445403dfbaf559b0728e81176e45d1902df3665254277c1e4149476
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 618683c9c4117cbfb50dadb3f8923556945f0bb66a9d20770c4325007e76cabe65db7ae482748e9f71a3c093b9aa6f61072d78a54b05a2362c93f1d106b8baa7
|
|
7
|
+
data.tar.gz: 4f48d037bcf66f20b6d3ce3fe9e35d40d099993203e8aa4bd9f151bceb0dc9234d98a31a8843ed42c0f6c66b80df9d2e9b68c5e66355275bc2b440f8e66559c9
|
|
@@ -29,7 +29,9 @@ module Entitlements
|
|
|
29
29
|
logger:
|
|
30
30
|
)
|
|
31
31
|
@repo.github = config["github_override"] if config["github_override"]
|
|
32
|
+
# rubocop:disable GitHub/AvoidObjectSendWithDynamicMethod
|
|
32
33
|
@repo.send(operation, checkout_directory)
|
|
34
|
+
# rubocop:enable GitHub/AvoidObjectSendWithDynamicMethod
|
|
33
35
|
@repo.configure(checkout_directory, config["git_name"], config["git_email"])
|
|
34
36
|
logger.debug "Directory #{checkout_directory} prepared"
|
|
35
37
|
end
|
|
@@ -56,6 +58,7 @@ module Entitlements
|
|
|
56
58
|
commitable_actions = actions_with_membership_change(actions)
|
|
57
59
|
action_hash = commitable_actions.map { |action| [action.dn, action] }.to_h
|
|
58
60
|
|
|
61
|
+
# rubocop:disable GitHub/AvoidObjectSendWithDynamicMethod
|
|
59
62
|
%w[update_files delete_files].each do |m|
|
|
60
63
|
send(
|
|
61
64
|
m.to_sym,
|
|
@@ -65,6 +68,7 @@ module Entitlements
|
|
|
65
68
|
valid_changes:
|
|
66
69
|
)
|
|
67
70
|
end
|
|
71
|
+
# rubocop:enable GitHub/AvoidObjectSendWithDynamicMethod
|
|
68
72
|
|
|
69
73
|
# If there is anything out-of-sync and the provider did not throw an exception, create
|
|
70
74
|
# a special sync commit to update things.
|
|
@@ -203,9 +207,6 @@ module Entitlements
|
|
|
203
207
|
logger.warn "Sync change (update #{filename}) required"
|
|
204
208
|
sync_changes[filename] = group_expected_contents
|
|
205
209
|
end
|
|
206
|
-
elsif group.member_strings.empty?
|
|
207
|
-
# The group does not currently exist in the file system nor is it created in the
|
|
208
|
-
# provider because it has no members. We can skip over this case.
|
|
209
210
|
else
|
|
210
211
|
logger.warn "Sync change (create #{filename}) required"
|
|
211
212
|
sync_changes[filename] = group_expected_contents
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: entitlements-gitrepo-auditor-plugin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitHub, Inc. Security Ops
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: contracts
|
|
@@ -44,14 +43,14 @@ dependencies:
|
|
|
44
43
|
requirements:
|
|
45
44
|
- - "<="
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 1.
|
|
46
|
+
version: 1.12.0
|
|
48
47
|
type: :development
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - "<="
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 1.
|
|
53
|
+
version: 1.12.0
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
55
|
name: rake
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -78,14 +77,14 @@ dependencies:
|
|
|
78
77
|
requirements:
|
|
79
78
|
- - '='
|
|
80
79
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: 3.
|
|
80
|
+
version: 3.13.2
|
|
82
81
|
type: :development
|
|
83
82
|
prerelease: false
|
|
84
83
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
84
|
requirements:
|
|
86
85
|
- - '='
|
|
87
86
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: 3.
|
|
87
|
+
version: 3.13.2
|
|
89
88
|
- !ruby/object:Gem::Dependency
|
|
90
89
|
name: rubocop
|
|
91
90
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -229,7 +228,6 @@ homepage: https://github.com/github/entitlements-gitrepo-auditor-plugin
|
|
|
229
228
|
licenses:
|
|
230
229
|
- MIT
|
|
231
230
|
metadata: {}
|
|
232
|
-
post_install_message:
|
|
233
231
|
rdoc_options: []
|
|
234
232
|
require_paths:
|
|
235
233
|
- lib
|
|
@@ -244,8 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
244
242
|
- !ruby/object:Gem::Version
|
|
245
243
|
version: '0'
|
|
246
244
|
requirements: []
|
|
247
|
-
rubygems_version: 3.
|
|
248
|
-
signing_key:
|
|
245
|
+
rubygems_version: 3.6.9
|
|
249
246
|
specification_version: 4
|
|
250
247
|
summary: Entitlements GitRepo Auditor
|
|
251
248
|
test_files: []
|