configure_trusted_publisher 0.1.7 → 0.1.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9618ca80722f42567b997bfc7f392a9c2265bf8bfe504a1a6e2b1fcea797d266
|
4
|
+
data.tar.gz: c64f6c0ec0ddbd143483fc4663826edfafb9c84e6d9a8a82d70c66444ef04347
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a1274ea1f7f908e57801322ecabfe9960d8e6a0a134ae1dd9c3b7238c4f89ec1e0911a86019c4d01e1ff7b99f68f37d2673dcf19dbd702e54b000f4d26b63a8
|
7
|
+
data.tar.gz: 3e49f2378150f87c043d7807031c84eba9b6bf45f402b486efc7ae45330332df4f3522019740a093e0c90b013d99db68adadd1bc7d4f9e1f47d682e80228a6e6
|
@@ -154,17 +154,18 @@ module ConfigureTrustedPublisher
|
|
154
154
|
puts "Configuring trusted publisher for #{rubygem_name} in #{File.expand_path(repository)} for " \
|
155
155
|
"#{github_repository.join('/')}"
|
156
156
|
|
157
|
-
|
157
|
+
environment = add_environment
|
158
|
+
write_release_action(repository, rubygem_name, environment:)
|
158
159
|
|
159
160
|
gc = GemcutterUtilities.new(
|
160
161
|
say: ->(msg) { puts msg },
|
161
162
|
ask: lambda { |msg|
|
162
163
|
puts
|
163
|
-
ask msg.chomp(":")
|
164
|
+
ask msg.strip.chomp(":")
|
164
165
|
},
|
165
166
|
ask_for_password: lambda { |msg|
|
166
167
|
puts
|
167
|
-
ask_secret msg.chomp(":")
|
168
|
+
ask_secret msg.strip.chomp(":")
|
168
169
|
},
|
169
170
|
terminate_interaction: lambda { |msg|
|
170
171
|
puts
|
@@ -179,8 +180,9 @@ module ConfigureTrustedPublisher
|
|
179
180
|
"trusted_publisher" => {
|
180
181
|
"repository_name" => name,
|
181
182
|
"repository_owner" => owner,
|
183
|
+
"environment" => environment,
|
182
184
|
"workflow_filename" => "push_gem.yml"
|
183
|
-
},
|
185
|
+
}.compact,
|
184
186
|
"trusted_publisher_type" => "OIDC::TrustedPublisher::GitHubAction"
|
185
187
|
}
|
186
188
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configure_trusted_publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Giddins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|