Commit 8047213
[ruby/rubygems] Honor explicit --attestation option regardless of platform and host
The send_push_request method previously skipped all attestation handling
on JRuby, non-rubygems.org hosts, or outside GitHub Actions. This meant
that even when a user explicitly passed --attestation with a local
sigstore bundle, the attestation was silently ignored. Now we check
options[:attestations] first and always use them when provided, only
gating the auto-attestation path behind the platform/host/CI checks.
ruby/rubygems@0178a0dc56
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 54ce911 commit 8047213
2 files changed
Lines changed: 13 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 106 | + | |
| 107 | + | |
112 | 108 | | |
113 | | - | |
114 | | - | |
115 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
116 | 112 | | |
117 | | - | |
| 113 | + | |
118 | 114 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
126 | 119 | | |
127 | 120 | | |
128 | 121 | | |
| |||
0 commit comments