Skip to content

Commit e1810ce

Browse files
author
CID Agent
committed
Switch RubyGems publish to OIDC trusted publishing
Replace GEM_HOST_API_KEY with rubygems/configure-rubygems-credentials action for keyless OIDC authentication. Requires trusted publisher configured on rubygems.org for iscc/iscc-lib + release.yml.
1 parent 7b9a1a9 commit e1810ce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -775,11 +775,14 @@ jobs:
775775
runs-on: ubuntu-latest
776776
permissions:
777777
contents: read
778+
id-token: write
778779
steps:
779780
- uses: actions/checkout@v4
780781
- uses: ruby/setup-ruby@v1
781782
with:
782783
ruby-version: '3.3'
784+
- name: Configure RubyGems credentials (OIDC trusted publishing)
785+
uses: rubygems/configure-rubygems-credentials@main
783786
- name: Get workspace version
784787
id: version
785788
run: |
@@ -808,7 +811,7 @@ jobs:
808811
working-directory: crates/iscc-rb
809812
- name: Publish gems
810813
if: steps.check.outputs.skip != 'true'
811-
run: |
814+
run: |-
812815
# Publish precompiled platform gems
813816
for gem in gems/*.gem; do
814817
echo "Publishing $gem"
@@ -819,5 +822,3 @@ jobs:
819822
echo "Publishing $gem"
820823
gem push "$gem"
821824
done
822-
env:
823-
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}

0 commit comments

Comments
 (0)