Commit f0c1d2e
Add sigstore attestations for our published gems (#12025)
This adds sigstore attestations for our published gems.
We do not need to provide an OIDC token to the sigstore client because
by default it will request the token from the GitHub Actions environment:
https://github.com/sigstore/sigstore-ruby/blob/9ac72d3c27edcd791c8c831316447f0ab7dfb407/cli/lib/sigstore/cli/id_token.rb#L45-L68
The code inspiration for this change came from:
* 84codes/rubocop-eightyfourcodes#16
* rubygems/release-gem#11
You can see an example of how this attestation will look on RubyGems here:
https://rubygems.org/gems/sigstore/versions/0.2.1
Co-authored-by: Nish Sinha <nishnha@github.com>1 parent a7c610f commit f0c1d2e
2 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
95 | | - | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
0 commit comments