1
0
mirror of https://github.com/pypa/gh-action-pypi-publish synced 2024-11-30 21:22:28 +08:00

oidc-exchange: add workflow_ref to debug msg

Signed-off-by: William Woodruff <william@trailofbits.com>
This commit is contained in:
William Woodruff 2024-11-22 12:58:46 -05:00
parent 93e87954aa
commit 7c5c585c36
No known key found for this signature in database

View File

@ -83,6 +83,7 @@ If a claim is not present in the claim set, then it is rendered as `MISSING`.
* `repository`: `{repository}` * `repository`: `{repository}`
* `repository_owner`: `{repository_owner}` * `repository_owner`: `{repository_owner}`
* `repository_owner_id`: `{repository_owner_id}` * `repository_owner_id`: `{repository_owner_id}`
* `workflow_ref`: `{workflow_ref}`
* `job_workflow_ref`: `{job_workflow_ref}` * `job_workflow_ref`: `{job_workflow_ref}`
* `ref`: `{ref}` * `ref`: `{ref}`
@ -175,6 +176,7 @@ def render_claims(token: str) -> str:
repository=_get('repository'), repository=_get('repository'),
repository_owner=_get('repository_owner'), repository_owner=_get('repository_owner'),
repository_owner_id=_get('repository_owner_id'), repository_owner_id=_get('repository_owner_id'),
workflow_ref=_get('workflow_ref'),
job_workflow_ref=_get('job_workflow_ref'), job_workflow_ref=_get('job_workflow_ref'),
ref=_get('ref'), ref=_get('ref'),
) )