Skip to content

Commit a07cf06

Browse files
committed
Try out sigstore attestation
Found the sign command in rubygems/release-gem#11 Based on sigstore/sigstore-ruby#225, the sigstore-cli sign command only works when run in GitHub Actions, right now. Locally, I got $ ruby -S gem exec sigstore-cli:0.2.1 sign slenips --bundle attestation.sigstore.json Fetching protobug-0.1.0.gem Fetching sigstore-cli-0.2.1.gem Fetching protobug_well_known_protos-0.1.0.gem Fetching protobug_googleapis_field_behavior_protos-0.1.0.gem Fetching protobug_sigstore_protos-0.1.0.gem Fetching sigstore-0.2.1.gem Failed to detect an ambient identity token, please provide one via --identity-token (Sigstore::Error::InvalidIdentityToken)
1 parent 6bd3fe3 commit a07cf06

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,11 @@ jobs:
2222
- uses: rubygems/[email protected]
2323
- run: gem build slenips.gemspec
2424
- run: gem install ./slenips-*.gem
25-
- run: gem push ./slenips-*.gem
25+
- run: |
26+
ruby -S gem exec sigstore-cli:0.2.1 sign slenips --bundle attestation.sigstore.json
27+
- uses: actions/upload-artifact@v4
28+
with:
29+
name: attestation
30+
path: attestation.sigstore.json
31+
- run: |
32+
gem push --attestation attestation.sigstore.json ./slenips-*.gem

0 commit comments

Comments
 (0)