Skip to content

Commit 8a574fa

Browse files
Copilotniwo
andauthored
Address validation feedback for release workflow
Agent-Logs-Url: https://github.com/niwo/cloudstack_client/sessions/6e43498d-ff8d-4991-82bf-c21abfa5113b Co-authored-by: niwo <57439+niwo@users.noreply.github.com>
1 parent 668d8c1 commit 8a574fa

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
pull_request:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
test:
912
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types: [published]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
verify:
1013
runs-on: ubuntu-latest
@@ -29,8 +32,6 @@ jobs:
2932
runs-on: ubuntu-latest
3033
needs: verify
3134
environment: rubygems
32-
permissions:
33-
contents: read
3435

3536
steps:
3637
- name: Checkout repository
@@ -46,6 +47,6 @@ jobs:
4647
run: bundle exec rake build
4748

4849
- name: Publish gem to RubyGems
49-
env:
50-
RUBYGEMS_AUTH_TOKEN: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
51-
run: gem push "$(ls pkg/*.gem | sort | tail -n 1)"
50+
uses: rubygems/release-gem@v1
51+
with:
52+
api-key: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}

0 commit comments

Comments
 (0)