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
Hi. Let me ask about Trusted Publishing here since I can't find where to ask.
(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:
No trusted publisher configured for this workflow found on https://rubygems.org/ for audience rubygems.org
# .github/workflows/release.yml in the gem repositoryjobs:
release:
uses: ybiquitous/.github/.github/workflows/ruby-release-reusable.yml@new-ruby-release
# The sharable workflow in a different repositoryjobs:
release:
runs-on: ubuntu-latestpermissions:
contents: writeid-token: writetimeout-minutes: 10steps:
- name: Checkoutuses: actions/checkout@v4
- name: Set up Ruby ${{ inputs.ruby-version }}uses: ruby/setup-ruby@v1with:
ruby-version: ${{ inputs.ruby-version }}bundler-cache: true
- name: Publish gem to RubyGems.orguses: rubygems/release-gem@v1
@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 #4285 (comment)
The text was updated successfully, but these errors were encountered: