You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,14 @@ There are three ways to configure RubyGems credentials:
33
33
2.**OIDC API Key Role**: Uses OIDC with a pre-configured API Key Role on RubyGems.org.
34
34
3.**Static API token**: Uses a RubyGems API token stored in repository secrets.
35
35
36
+
> **Note**: The OIDC-based configurations (**Trusted Publisher** and **OIDC API Key Role**) require the `id-token: write` permission in your workflow, for example:
37
+
>
38
+
> ```yaml
39
+
> permissions:
40
+
> id-token: write
41
+
> contents: read
42
+
> ```
43
+
36
44
### Trusted Publisher (recommended)
37
45
38
46
The simplest approach is to use [Trusted Publishing](https://guides.rubygems.org/trusted-publishing/).
0 commit comments