Skip to content

Commit e82f99a

Browse files
authored
Merge pull request #186 from virtuald/virtuald-patch-1
Mention in the docs that reusable workflows aren't supported right now
2 parents e080e00 + 415d7a6 commit e82f99a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ tag, or opt-in to [use a full Git commit SHA] and Dependabot.
2525

2626
### Trusted publishing
2727

28+
> [!NOTE] Trusted publishing cannot be used from within a reusable workflow at this
29+
> time. It is recommended to instead create a non-reusable workflow that contains a
30+
> job calling your reusable workflow, and then do the trusted publishing step from
31+
> a separate job within that non-reusable workflow. Alternatively, you can still
32+
> use a username/token inside the reusable workflow.
33+
2834
> [!NOTE]
2935
> Trusted publishing is sometimes referred to by its
3036
> underlying technology -- OpenID Connect, or OIDC for short.

oidc-exchange.py

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
* `repository_owner_id`: `{repository_owner_id}`
7272
* `job_workflow_ref`: `{job_workflow_ref}`
7373
* `ref`: `{ref}`
74+
75+
See https://docs.pypi.org/trusted-publishers/troubleshooting/ for more help.
76+
7477
"""
7578

7679
# Rendered if the package index's token response isn't valid JSON.

0 commit comments

Comments
 (0)