Skip to content

Authenticate to GH Package Registry #515

Description

@kimegede

Add possibility to pass a Personal Access Token to authenticate to GitHub Package Registry.

Activity

  1. dentarg commented on Jul 27, 2023

    @dentarg

    You can just set the Bundler environment variable

  2. kimegede commented on Jul 27, 2023

    @kimegede
    Author

    Okay, I have tried with the following:
    But still required token it set.

          - name: Set up Ruby
            uses: ruby/setup-ruby@v1
            with:
              ruby-version: 2.7
            env:
              BUNDLE_GITHUB__COM: ${{ secrets.GH_PACKAGE_TOKEN }}:x-oauth-basic
              BUNDLE_RUBYGEMS__PKG__GITHUB__COM: ${{ secrets.GH_PACKAGE_TOKEN }}

    Currently using:

          - name: Set up Ruby
            uses: ruby/setup-ruby@v1
            with:
              ruby-version: 2.7
    
          - name: Install dependencies
            run: |
              bundle config set --global rubygems.pkg.github.com ${{ secrets.GH_PACKAGE_TOKEN }}:x-oauth-basic
              gem install bundler
              bundle install --jobs 4 --retry 3
  3. kimegede commented on Jul 28, 2023

    @kimegede
    Author

    @dentarg can you tell what I should do instead?

    @dtu96303e not sure I understand :D

  4. locked and limited conversation to collaborators on Jul 28, 2023
  5. converted this issue into a discussion #516 on Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions