Open segiddins opened 10 months ago
https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/using-openid-connect-with-reusable-workflows#how-the-token-works-with-reusable-workflows dropping this here for my future reference.
Another possibly useful cross-reference: https://github.com/pypi/warehouse/issues/11096
@ybiquitous there's some work we'd have to do here to support re-usable workflows outside of the calling repository.
Likely this will involve an extra (optional) input field for the reusable workflow, and the existing field will continue to refer to the calling (top-level) workflow (and be the job_workflow_ref
as well if the reusable workflow is not specified).
Likely this will involve an extra (optional) input field for the reusable workflow, and the existing field will continue to refer to the calling (top-level) workflow
I'm okay if reusable workflows are supported. 👌🏼
(Please tell me a different place if my question is inappropriate 🙏🏼 )
First, my try in the suggested way by the RubyGems document was successful! 🎉 (For details, see my repo's Actions log)
However, my try through a reusable workflow failed, unfortunately. I'm not sure about the failure cause, but
rubygems/configure-rubygems-credentials
failed with the following error:See also the failure Actions log.
Here's a part of my Actions workflow settings:
For the sharable workflow code, see https://github.com/ybiquitous/.github/pull/31/files.
In short, is Trusted Publishing unsupported in a sharable workflow?
Last, this feature is fantastic! Thanks a lot. 👏🏼
Originally posted by @ybiquitous in https://github.com/rubygems/rubygems.org/issues/4285#issuecomment-1855990785