File tree Expand file tree Collapse file tree 4 files changed +48
-4
lines changed Expand file tree Collapse file tree 4 files changed +48
-4
lines changed Original file line number Diff line number Diff line change 113
113
releaser (1.0.0 )
114
114
minitest
115
115
rake (~> 13.0 )
116
+ sigstore-cli
116
117
117
118
GEM
118
119
remote: https://rubygems.org/
397
398
ruby2_keywords (~> 0.0.1 )
398
399
mutex_m (0.3.0 )
399
400
mysql2 (0.5.6 )
401
+ net-http (0.6.0 )
402
+ uri
400
403
net-http-persistent (4.0.5 )
401
404
connection_pool (~> 2.2 )
402
405
net-imap (0.5.5 )
433
436
actionpack (>= 7.0.0 )
434
437
activesupport (>= 7.0.0 )
435
438
rack
439
+ protobug (0.1.0 )
440
+ protobug_googleapis_field_behavior_protos (0.1.0 )
441
+ protobug (= 0.1.0 )
442
+ protobug_well_known_protos (= 0.1.0 )
443
+ protobug_sigstore_protos (0.1.0 )
444
+ protobug (= 0.1.0 )
445
+ protobug_googleapis_field_behavior_protos (= 0.1.0 )
446
+ protobug_well_known_protos (= 0.1.0 )
447
+ protobug_well_known_protos (0.1.0 )
448
+ protobug (= 0.1.0 )
436
449
psych (5.2.6 )
437
450
date
438
451
stringio
586
599
faraday (>= 0.17.5 , < 3.a )
587
600
jwt (>= 1.5 , < 3.0 )
588
601
multi_json (~> 1.10 )
602
+ sigstore (0.2.1 )
603
+ net-http
604
+ protobug_sigstore_protos (~> 0.1.0 )
605
+ uri
606
+ sigstore-cli (0.2.1 )
607
+ sigstore (= 0.2.1 )
608
+ thor
589
609
sinatra (4.1.1 )
590
610
logger (>= 1.6.0 )
591
611
mustermann (~> 3.0 )
Original file line number Diff line number Diff line change 4
4
releaser (1.0.0 )
5
5
minitest
6
6
rake (~> 13.0 )
7
+ sigstore-cli
7
8
8
9
GEM
9
10
remote: https://rubygems.org/
10
11
specs:
11
12
minitest (5.25.1 )
13
+ net-http (0.6.0 )
14
+ uri
15
+ protobug (0.1.0 )
16
+ protobug_googleapis_field_behavior_protos (0.1.0 )
17
+ protobug (= 0.1.0 )
18
+ protobug_well_known_protos (= 0.1.0 )
19
+ protobug_sigstore_protos (0.1.0 )
20
+ protobug (= 0.1.0 )
21
+ protobug_googleapis_field_behavior_protos (= 0.1.0 )
22
+ protobug_well_known_protos (= 0.1.0 )
23
+ protobug_well_known_protos (0.1.0 )
24
+ protobug (= 0.1.0 )
12
25
rake (13.2.1 )
26
+ sigstore (0.2.1 )
27
+ net-http
28
+ protobug_sigstore_protos (~> 0.1.0 )
29
+ uri
30
+ sigstore-cli (0.2.1 )
31
+ sigstore (= 0.2.1 )
32
+ thor
33
+ thor (1.3.2 )
34
+ uri (1.0.2 )
13
35
14
36
PLATFORMS
15
37
aarch64-linux
@@ -19,4 +41,4 @@ DEPENDENCIES
19
41
releaser !
20
42
21
43
BUNDLED WITH
22
- 2.5.17
44
+ 2.6.3
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def define
67
67
68
68
task push : :build do
69
69
Dir . chdir ( root ) do
70
- sh "gem push #{ gem_path ( framework ) } #{ gem_otp } "
70
+ sh "gem push #{ gem_path ( framework ) } #{ gem_otp ( gem_path ( framework ) ) } "
71
71
72
72
if File . exist? ( "#{ framework } /package.json" )
73
73
Dir . chdir ( "#{ framework } " ) do
@@ -314,10 +314,11 @@ def npm_otp
314
314
" --provenance --access public"
315
315
end
316
316
317
- def gem_otp
317
+ def gem_otp ( gem_path )
318
318
" --otp " + ykman ( "rubygems.org" )
319
319
rescue
320
- ""
320
+ sh "sigstore-cli sign #{ gem_path } --bundle #{ gem_path } .sigstore.json"
321
+ " --attestation #{ gem_path } .sigstore.json"
321
322
end
322
323
323
324
def ykman ( service )
Original file line number Diff line number Diff line change @@ -23,4 +23,5 @@ Gem::Specification.new do |s|
23
23
24
24
s . add_dependency "rake" , "~> 13.0"
25
25
s . add_dependency "minitest"
26
+ s . add_dependency "sigstore-cli"
26
27
end
You can’t perform that action at this time.
0 commit comments